public class GroupUI extends NodeUI
Group
object.
This UI only willing to received a Group instance element,
and draw group image. And besides, it paint a group expand
status handler icon. User can click the handler icon to
change group expand stauts.drawImageShape
bodyFill, bodyRaised, color, customDraw, customDrawAntialias, customDrawDefaultBorder, customDrawFill, customDrawFill3D, customDrawFillColor, customDrawGradient, customDrawGradientColor, customDrawOutline, customDrawOutline3D, customDrawOutlineColor, customDrawOutlineStroke, defaultBorder, gradientFactory, shapeFactory
alarmAttachment, attachmentOrientation, attachmentPosition, attachments, attachmentXGap, attachmentXOffset, attachmentYGap, attachmentYOffset, borderInsets, element, labelAttachment, network, renderAlpha, stateOutlineInsets, textureFactory
Constructor and Description |
---|
GroupUI(TNetwork network,
Group group)
Construct group ui by given network and group.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(int x,
int y)
Checks whether this ui "contains" the specified point,
where x and y are defined to be relative to the coordinate
system of this UI.
|
protected java.awt.Shape |
createShape() |
int |
getAngle() |
java.awt.Shape |
getBorderShape() |
int |
getDeep() |
Group |
getGroup() |
java.awt.Insets |
getGroupInsets() |
java.awt.Point |
getHotspot()
Get the hotspot location.
|
int |
getOutcrop() |
java.awt.Shape |
getShape() |
java.awt.Rectangle |
getUIBounds()
For this abstract element UI, it return a rectangle box encloses
the element and it's border.
|
void |
invalidateShape() |
protected boolean |
isCustomDraw() |
void |
paint(java.awt.Graphics2D g2d)
Paint specified group instance on specified graph.
|
void |
performAction(int gesture,
java.awt.event.MouseEvent e)
Called when user do some interaction on me.
|
protected void |
reverseExpand() |
protected void |
updateCacheShape() |
void |
updateClientProperty(java.lang.String propertyName)
Update the specified client property.
|
getDrillDownChassis, getImageShape, getNode, isDrawImageShape, paintBody, paintStateOutline
getBaseElement, getBorder, getColor, getShapeFactory, isBodyFill, isCustomDrawDefaultBorder, paintCustomDraw, paintCustomDrawBody, paintCustomDrawOutline, paintCustomDrawStateOutline
addAttachment, attachments, containInAttachments, elementPropertyChange, getAlarmAttachment, getAttachementsArea, getAttachementsBounds, getAttachmentAt, getAttachmentOrientation, getAttachmentPosition, getAttachmentXGap, getAttachmentXOffset, getAttachmentYGap, getAttachmentYOffset, getBlinkStruct, getDefaultBorderInset, getElement, getLabelAttachment, getNetwork, getPaintBodyColor, getSeletableAttachementsArea, getStateOutlineColor, installAttachments, isBodyDark, isOutlineDark, mouseClicked, paintAttachments, paintBorder, removeAttachment, setBodyPaint, setLabelAttachment, setStateOutline
public Group getGroup()
public boolean contains(int x, int y)
public void performAction(int gesture, java.awt.event.MouseEvent e)
performAction
in interface ElementUI
performAction
in class NodeUI
e
- gesture
- the action gesture.protected void reverseExpand()
protected boolean isCustomDraw()
isCustomDraw
in class BaseElementUI
public java.awt.Point getHotspot()
BaseElementUI
getHotspot
in interface ElementUI
getHotspot
in class BaseElementUI
public void updateClientProperty(java.lang.String propertyName)
updateClientProperty
in interface ElementUI
updateClientProperty
in class NodeUI
propertyName
- the property name which was changed.public void paint(java.awt.Graphics2D g2d)
paint
in interface ElementUI
paint
in class BaseElementUI
g
- graph object.element
- elment object.public java.awt.Rectangle getUIBounds()
BaseElementUI
getUIBounds
in interface ElementUI
getUIBounds
in class BaseElementUI
protected java.awt.Shape createShape()
protected void updateCacheShape()
public java.awt.Shape getShape()
public void invalidateShape()
public int getAngle()
public int getDeep()
public java.awt.Insets getGroupInsets()
public int getOutcrop()
public java.awt.Shape getBorderShape()
getBorderShape
in interface ElementUI
getBorderShape
in class AbstractElementUI
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.