public class Group extends Node
Modifier and Type | Field and Description |
---|---|
protected boolean |
expand |
protected int |
groupType |
agentLinksSet, allAgentLinks, allFollowers, allLinks, fromAgentLinks, fromLinks, linksSet, loopLinks, toAgentLinks, toLinks
xLocation, yLocation
alarmState, businessObject, clientProperties, delegate, displayName, elements, iconUrl, id, imageUrl, name, parent, propertyChangeSupport, selected, toolTipText, userObject, userProperties, visible
Constructor and Description |
---|
Group()
Creates a group instance.
|
Group(java.lang.Object id)
Constructs a group instance by specified id.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Rectangle |
getBounds()
Gets the current bounds of this element.
|
int |
getGroupAngle()
Get group for the parallelogram angle.
|
int |
getGroupChamferEdge() |
int |
getGroupChildrenOutcrop()
Gets the height value for the all contained children outcrop of the group.
|
int |
getGroupDeep()
Get the 3d deep value when 3d enabled.
|
java.awt.Color |
getGroupFillColor()
Gets the fill color of the group.
|
java.awt.Color |
getGroupGradientColor()
Gets the group gradient color.
|
int |
getGroupGradientFactory()
Gets the group gradient factory
|
java.lang.String |
getGroupHandlerCloseIcon()
Gets the closed icon url for the group handler.
|
java.lang.String |
getGroupHandlerEmptyIcon()
Gets the empty icon url for the group handler.
|
java.lang.String |
getGroupHandlerExpandIcon()
Gets the expanded icon url for the group handler.
|
int |
getGroupHandlerPosition()
Gets the group handler's position where the group handler appears on the element.
|
int |
getGroupHandlerXOffset()
Gets the group handler location horizontal offset.
|
int |
getGroupHandlerYOffset()
Gets the group handler location vertical offset.
|
java.awt.Insets |
getGroupInsets()
Gets the group insets
|
java.awt.Color |
getGroupOutlineColor()
Gets the outline color of this group.
|
java.lang.String |
getGroupOutlineStroke()
Gets the outline stroke type of this group.
|
int |
getGroupType()
Gets the type of this group.
|
int |
getHeight()
Gets the current height of this element.
|
java.awt.Point |
getLocation()
Gets this element's current location.
|
java.awt.Rectangle |
getShape() |
java.lang.String |
getSVGUIClassID()
Returns a string that specifies the full qualified name of the ui class
that responsible for converting this element to svg content.
|
java.lang.String |
getUIClassID()
Returns a string that specifies the fully qualified name of
the ui class that renders this element in network canvas.
|
int |
getWidth()
Gets the current width of this element.
|
void |
invalidateGroupShape()
Call this method to invalidate group shape.
|
boolean |
isAdjusting() |
boolean |
isAdjustToBottom()
When returns true, if this element has children, this element is
always adjusted to the bottom of its children in network canvas.
|
boolean |
isExpand()
Whether this group now is expanded.
|
boolean |
isGroup3D()
Whether display this group with a 3d shape
|
boolean |
isGroupAntialias()
Gets whether use anti alias mode to paint the group.
|
boolean |
isGroupDoubleClickEnable()
Gets whether this group is double click enabled.
|
boolean |
isGroupFill()
Gets whether or not fill the group body.
|
boolean |
isGroupGradient()
Gets whether the group's body is drawed by gradient paint.
|
boolean |
isGroupHandlerVisible()
Gets whether or not the group handler is visible.
|
boolean |
isGroupOpaque()
Gets whether this group is opaque.
|
boolean |
isGroupOutline()
Gets whether display outline of this group.
|
void |
putClientProperty(java.lang.Object key,
java.lang.Object value)
Adds an arbitrary key/value "client property" to this element.
|
void |
putGroup3D(boolean group3D)
Use this boolean flag to tell group whether display
this group with a 3d shape
|
void |
putGroupAngle(int groupAngle)
Set group for the parallelogram angle.
|
void |
putGroupAntialias(boolean groupAntialias)
Set whether use anti alias mode to paint the group.
|
void |
putGroupChamferEdge(int chamferLength) |
void |
putGroupChildrenOutcrop(int groupChildrenOutcrop)
Set the height value for the all contained children outcrop of the group.
|
void |
putGroupDeep(int groupDeep)
Set the 3d deep value when 3d enabled.
|
void |
putGroupDoubleClickEnabled(boolean groupDoubleClickEnabled)
Set whether this group is double click enabled.
|
void |
putGroupFill(boolean groupFill)
Set whether fill this group.
|
void |
putGroupFillColor(java.awt.Color groupFillColor)
Set the group fill color.
|
void |
putGroupGradient(boolean groupGradient)
Sets group gradient value for the group.
|
void |
putGroupGradientColor(java.awt.Color groupGradientColor)
Sets the group gradient fill color.
|
void |
putGroupGradientFactory(int groupGradientFactory)
Sets the group gradient factory.
|
void |
putGroupHandlerCloseIcon(java.lang.String groupHandlerCloseIcon)
Set the closed icon for the group handler.
|
void |
putGroupHandlerEmptyIcon(java.lang.String groupHandlerEmptyIcon)
Set the empty icon for the group handler.
|
void |
putGroupHandlerExpandIcon(java.lang.String groupHandlerExpandIcon)
Set the expanded icon for the group handler.
|
void |
putGroupHandlerPosition(int groupHandlerPosition)
Determines where the group handler appears on the element.
|
void |
putGroupHandlerVisible(boolean groupHandlerVisible)
Shows or hides the group handler.
|
void |
putGroupHandlerXoffset(int groupHandlerXoffset)
Sets the group handler location a horizontal offset.
|
void |
putGroupHandlerYoffset(int groupHandlerYoffset)
Sets the group handler location a vertical offset.
|
void |
putGroupInsets(java.awt.Insets groupInsets)
Set the group insets.
|
void |
putGroupOpaque(boolean groupOpaque)
Set whether this group is opaque.
|
void |
putGroupOutline(boolean groupOutline)
Set whether display outline of this group.
|
void |
putGroupOutlineColor(java.awt.Color groupOutlineColor)
Set the group outline color.
|
void |
putGroupOutlineStroke(java.lang.String groupOutlineStroke)
Set outline stroke type of this group.
|
void |
setExpand(boolean expand)
Set new group expand status to specified value.
|
void |
setGroupType(int groupType)
Sets the type of this group.
|
void |
setLocation(java.awt.geom.Point2D.Double location)
Set the location of the element.
|
getAllAgentLinks, getAllFollowers, getAllLinks, getFromAgentLinks, getFromLinks, getLoopLinks, getToAgentLinks, getToLinks, hasAgentLinks, isDrawImageShape, putDrawImageShape
getBodyColor, getCenterLocation, getCustomDrawFillColor, getCustomDrawGradientColor, getCustomDrawGradientFactory, getCustomDrawOutlineColor, getCustomDrawOutlineStroke, getCustomDrawShapeFactory, getX, getY, isBodyFill, isBodyRaised, isCustomDraw, isCustomDrawAntialias, isCustomDrawDefaultBorder, isCustomDrawFill, isCustomDrawFill3D, isCustomDrawGradient, isCustomDrawOutline, isCustomDrawOutline3D, putBodyColor, putBodyFill, putBodyRaised, putCustomDraw, putCustomDrawAntialias, putCustomDrawDefaultBorder, putCustomDrawFill, putCustomDrawFill3D, putCustomDrawFillColor, putCustomDrawGradient, putCustomDrawGradientColor, putCustomDrawGradientFactory, putCustomDrawOutline, putCustomDrawOutline3D, putCustomDrawOutlineColor, putCustomDrawOutlineStroke, putCustomDrawShapeFactory, setCenterLocation, setCenterLocation, setLocation, setLocation, setLocation
addAttachment, addChartBubble, addChartValue, addChartValue, addChild, addChild, addPropertyChangeListener, addPropertyChangeListener, children, childrenSize, clearChartValues, clearChildren, containsAttachment, copy, copy, copy, copy, createAlarmState, createChildrenList, createChildrenMap, equals, exportValues, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlarmBalloonAlpha, getAlarmBalloonDirection, getAlarmBalloonOutlineColor, getAlarmBalloonPosition, getAlarmBalloonShadowColor, getAlarmBalloonShadowOffset, getAlarmBalloonTextColor, getAlarmBalloonTextFont, getAlarmBalloonXOffset, getAlarmBalloonYOffset, getAlarmState, getAttachmentOrientation, getAttachmentPosition, getAttachmentXGap, getAttachmentXOffset, getAttachmentYGap, getAttachmentYOffset, getBorderAntialias, getBorderColor, getBorderFillColor, getBorderInsets, getBorderShapeFactory, getBorderStroke, getBorderType, getBusinessObject, getChartBubbleShapeBubbleVisible, getChartBubbleShapeLineVisible, getChartBubbleStyle, getChartColor, getChartDialHandLength, getChartDialHandStyle, getChartFormat, getChartInflexionStyle, getChartMarkers, getChartMax, getChartMin, getChartPercentMarkerPostion, getChartPercentSpareColor, getChartPercentSpareCoverColor, getChartPercentSpareFill, getChartPercentStyle, getChartSectorDivisionPosition, getChartSectorStroke, getChartStroke, getChartValue, getChartValues, getChartValueTextPosition, getChildren, getChildrenByID, getClientProperties, getClientProperty, getDisplayName, getElementTreeIcon, getGeoCoordinate, getIcon, getIconURL, getID, getImage, getImageURL, getLabelBackground, getLabelBorderColor, getLabelBorderStroke, getLabelColor, getLabelFont, getLabelHighlightBackground, getLabelHighlightForeground, getLabelIcon, getLabelMaxLength, getLabelOrientation, getLabelPosition, getLabelUnderlineColor, getLabelUnderlineStroke, getLabelXGap, getLabelXOffset, getLabelYGap, getLabelYOffset, getLayerID, getMessageArc, getMessageBackground, getMessageBorderColor, getMessageBorderStroke, getMessageComponent, getMessageContent, getMessageDirection, getMessageFont, getMessageForeground, getMessageGradientColor, getMessageGradientFactory, getMessageHeight, getMessageMinimizedIcon, getMessagePosition, getMessageShadowColor, getMessageStyle, getMessageTail, getMessageWidth, getMessageXGap, getMessageXOffset, getMessageYGap, getMessageYOffset, getName, getParent, getPropertyChangeSupport, getPropertyValue, getRenderAlpha, getRenderColor, getStateOutlineColor, getStateOutlineInsets, getStateOutlineWidth, getTextureFactory, getToolTipText, getUserObject, getUserProperties, getUserProperty, isAlarmBalloonShownOnTop, isAlarmBalloonTextBlinkable, isAlarmBalloonVisible, isBorderFill, isBorderUnderneath, isBorderVisible, isBorderXormode, isDescendantOf, isDrawIconShape, isEmpty, isEnableAlarmPropagationFromChildren, isLabelBorder, isLabelHighlightable, isLabelSelectable, isLabelUnderline, isLabelVisible, isMessageAutoAdjustDirection, isMessageBorderVisible, isMessageClosable, isMessageGradient, isMessageMinimizable, isMessageMinimized, isMessageOpaque, isMessageShadowVisible, isMessageShownOnTop, isMessageShrinkable, isMessageShrinked, isParentOf, isSelected, isVisible, putAlarmBalloonAlpha, putAlarmBalloonDirection, putAlarmBalloonOutlineColor, putAlarmBalloonPosition, putAlarmBalloonShadowColor, putAlarmBalloonShadowOffset, putAlarmBalloonShownOnTop, putAlarmBalloonTextBlinkable, putAlarmBalloonTextColor, putAlarmBalloonTextFont, putAlarmBalloonVisible, putAlarmBalloonXoffset, putAlarmBalloonYoffset, putAttachmentOrientation, putAttachmentPosition, putAttachmentXGap, putAttachmentXOffset, putAttachmentYGap, putAttachmentYOffset, putBorderAntialias, putBorderColor, putBorderFill, putBorderFillColor, putBorderInsets, putBorderShapeFactory, putBorderStroke, putBorderType, putBorderUnderneath, putBorderVisible, putBorderXormode, putChartBubbleShapeBubbleVisible, putChartBubbleShapeLineVisible, putChartBubbleStyle, putChartColor, putChartDialHandLength, putChartDialHandStyle, putChartFormat, putChartInflexionStyle, putChartMarkers, putChartMax, putChartMin, putChartPercentMarkerPostion, putChartPercentSpareColor, putChartPercentSpareCoverColor, putChartPercentSpareFill, putChartPercentStyle, putChartSectorDivisionPosition, putChartSectorStroke, putChartStroke, putChartValue, putChartValues, putChartValueTextPosition, putClientProperty, putClientProperty, putClientProperty, putDrawIconShape, putElementTreeIcon, putLabelBackground, putLabelBorder, putLabelBorderColor, putLabelBorderStroke, putLabelColor, putLabelFont, putLabelHighlightable, putLabelHighlightBackground, putLabelHighlightForeground, putLabelIcon, putLabelMaxLength, putLabelOrientation, putLabelPosition, putLabelSelectable, putLabelUnderline, putLabelUnderlineColor, putLabelUnderlineStroke, putLabelVisible, putLabelXGap, putLabelXOffset, putLabelYGap, putLabelYOffset, putMessageArc, putMessageAutoAdjustDirection, putMessageBackground, putMessageBorderColor, putMessageBorderStroke, putMessageBorderVisible, putMessageClosable, putMessageComponent, putMessageContent, putMessageDirection, putMessageFont, putMessageForeground, putMessageGradient, putMessageGradientColor, putMessageGradientFactory, putMessageHeight, putMessageMinimizable, putMessageMinimized, putMessageMinimizedIcon, putMessageOpaque, putMessagePosition, putMessageShadowColor, putMessageShadowVisible, putMessageShownOnTop, putMessageShrinkable, putMessageShrinked, putMessageStyle, putMessageTail, putMessageWidth, putMessageXGap, putMessageXOffset, putMessageYGap, putMessageYOffset, putRenderAlpha, putRenderColor, putStateOutlineColor, putStateOutlineInsets, putStateOutlineWidth, putTextureFactory, putUserProperty, putUserProperty, putUserProperty, removeAttachment, removeChild, removeFromParent, removePropertyChangeListener, removePropertyChangeListener, setAlarmState, setBusinessObject, setChartValues, setDisplayName, setEnableAlarmPropagationFromChildren, setGeoCoordinate, setIcon, setImage, setLayerID, setName, setParent, setPropertyValue, setSelected, setToolTipText, setUserObject, setVisible, toString, updateUI
public Group()
public Group(java.lang.Object id)
id
- group id.public java.lang.String getUIClassID()
getUIClassID
in interface Element
getUIClassID
in class Node
ElementUI
public java.lang.String getSVGUIClassID()
getSVGUIClassID
in interface Element
getSVGUIClassID
in class Node
ElementSVGUI
,
TSVGNetwork
public boolean isExpand()
public boolean isAdjustToBottom()
AbstractElement
When returns false, normally when you select elements then them will be adjusted to showing on the top relative to other unselected elements in network canvas.
isAdjustToBottom
in interface Element
isAdjustToBottom
in class AbstractElement
public void setExpand(boolean expand)
expand
- expand value.public java.awt.Rectangle getBounds()
getBounds
in interface Element
getBounds
in class BaseElement
public final java.awt.Point getLocation()
getLocation
in interface Element
getLocation
in class BaseElement
public final int getWidth()
getWidth
in interface Element
getWidth
in class BaseElement
public final int getHeight()
getHeight
in interface Element
getHeight
in class BaseElement
public final java.awt.Rectangle getShape()
public void setLocation(java.awt.geom.Point2D.Double location)
setLocation
in interface Element
setLocation
in class BaseElement
location
- Doublepublic boolean isAdjusting()
public void invalidateGroupShape()
public int getGroupType()
setGroupType(int)
public void setGroupType(int groupType)
TWaverConst.GROUP_TYPE_REGULAR
TWaverConst.GROUP_TYPE_ELLIPSE
TWaverConst.GROUP_TYPE_PARALLELOGRAM
TWaverConst.GROUP_TYPE_ROUND
TWaverConst.GROUP_TYPE_ROUND_RECTANGLE
TWaverConst.GROUP_TYPE_OCTAGON
groupType
- intgetGroupType()
public void putClientProperty(java.lang.Object key, java.lang.Object value)
putClientProperty
in interface Element
putClientProperty
in class AbstractElement
key
- the client property keyvalue
- the new client property value;AbstractElement.getClientProperty(Object)
,
AbstractElement.addPropertyChangeListener(PropertyChangeListener)
,
AbstractElement.putUserProperty(Object, Object)
public void putGroupOutline(boolean groupOutline)
groupOutline
- boolean true show outline, false otherwise.public void putGroupOutlineStroke(java.lang.String groupOutlineStroke)
groupOutlineStroke
- outline stroke of this group.public void putGroupFill(boolean groupFill)
groupFill
- boolean true fill group, false not fill grouppublic void putGroupOpaque(boolean groupOpaque)
groupOpaque
- boolean true if opaque, false otherwise.public void putGroupOutlineColor(java.awt.Color groupOutlineColor)
groupOutlineColor
- Color the group outline color.public void putGroupFillColor(java.awt.Color groupFillColor)
groupFillColor
- Color the group fill color.public void putGroupChildrenOutcrop(int groupChildrenOutcrop)
groupChildrenOutcrop
- int the outcrop of children.public void putGroupInsets(java.awt.Insets groupInsets)
groupInset
- Insets the group insets.public void putGroupHandlerExpandIcon(java.lang.String groupHandlerExpandIcon)
groupHandlerExpandIcon
- String the expanded icon for the grouppublic void putGroupHandlerCloseIcon(java.lang.String groupHandlerCloseIcon)
groupHandlerCloseIcon
- String the closed icon for the group.public void putGroupHandlerEmptyIcon(java.lang.String groupHandlerEmptyIcon)
groupHandlerEmptyIcon
- String the empty icon for the group.public void putGroupDoubleClickEnabled(boolean groupDoubleClickEnabled)
groupDoubleClickEnabled
- boolean true if enable double click action,
false otherwise.public void putGroupAngle(int groupAngle)
groupAngle
- int the parallelogram angle
measured in degrees.public void putGroup3D(boolean group3D)
group3D
- boolean true use 3d, false otherwise.public void putGroupAntialias(boolean groupAntialias)
groupAntialias
- boolean whether use anti alias mode to paint the group.public void putGroupDeep(int groupDeep)
groupDeep
- int the 3d deep value.public void putGroupHandlerVisible(boolean groupHandlerVisible)
groupHandlerVisible
- boolean if true shows group handler, otherwise, hides group handler.public void putGroupHandlerPosition(int groupHandlerPosition)
TWaverConst.POSITION_BOTTOM
TWaverConst.POSITION_CENTER
TWaverConst.POSITION_TOP
TWaverConst.POSITION_LEFT
TWaverConst.POSITION_RIGHT
TWaverConst.POSITION_TOPLEFT
TWaverConst.POSITION_TOPRIGHT
TWaverConst.POSITION_BOTTOMLEFT
TWaverConst.POSITION_BOTTOMRIGHT
TWaverConst.POSITION_INNER_BOTTOM
TWaverConst.POSITION_INNER_TOP
TWaverConst.POSITION_INNER_LEFT
TWaverConst.POSITION_INNER_RIGHT
TWaverConst.POSITION_INNER_TOPLEFT
TWaverConst.POSITION_INNER_TOPRIGHT
TWaverConst.POSITION_INNER_BOTTOMLEFT
TWaverConst.POSITION_INNER_BOTTOMRIGHT
groupHandlerPosition
- int the group handler's positionpublic void putGroupHandlerXoffset(int groupHandlerXoffset)
groupHandlerXoffset
- int the new horizontal offset.public void putGroupHandlerYoffset(int groupHandlerYoffset)
groupHandlerYoffset
- int the new vertical offset.public void putGroupGradient(boolean groupGradient)
groupGradient
- boolean the new group gradient value.public void putGroupGradientColor(java.awt.Color groupGradientColor)
groupGradientColor
- color the new group gradient colorpublic void putGroupGradientFactory(int groupGradientFactory)
TWaverConst.GRADIENT_LINE_SW
TWaverConst.GRADIENT_LINE_SE
TWaverConst.GRADIENT_LINE_NW
TWaverConst.GRADIENT_LINE_NE
TWaverConst.GRADIENT_LINE_N
TWaverConst.GRADIENT_LINE_S
TWaverConst.GRADIENT_LINE_W
TWaverConst.GRADIENT_LINE_E
TWaverConst.GRADIENT_RADIAL_C
TWaverConst.GRADIENT_RADIAL_SW
TWaverConst.GRADIENT_RADIAL_SE
TWaverConst.GRADIENT_RADIAL_NW
TWaverConst.GRADIENT_RADIAL_NE
TWaverConst.GRADIENT_RADIAL_N
TWaverConst.GRADIENT_RADIAL_S
TWaverConst.GRADIENT_RADIAL_W
TWaverConst.GRADIENT_RADIAL_E
TWaverConst.GRADIENT_EXTEND_HORIZONTAL
TWaverConst.GRADIENT_EXTEND_VERTICAL
TWaverConst.GRADIENT_EXTEND_DIAGONAL
TWaverConst.GRADIENT_EXTEND_ANTIDIAGONAL
TWaverConst.GRADIENT_EXTEND_N
TWaverConst.GRADIENT_EXTEND_S
TWaverConst.GRADIENT_EXTEND_W
TWaverConst.GRADIENT_EXTEND_E
groupGradientFactory
- int the new group gradient factory.public int getGroupAngle()
public boolean isGroup3D()
public int getGroupDeep()
public boolean isGroupOutline()
putGroupOutline(boolean)
public java.lang.String getGroupOutlineStroke()
putGroupOutlineStroke(String)
public boolean isGroupFill()
putGroupFill(boolean)
public boolean isGroupOpaque()
putGroupOpaque(boolean)
public java.awt.Color getGroupOutlineColor()
putGroupOutlineColor(Color)
public java.awt.Color getGroupFillColor()
putGroupOutlineColor(Color)
public boolean isGroupAntialias()
putGroupAntialias(boolean)
public java.awt.Insets getGroupInsets()
putGroupInsets(Insets)
public int getGroupChildrenOutcrop()
putGroupChildrenOutcrop(int)
public boolean isGroupDoubleClickEnable()
putGroupDoubleClickEnabled(boolean)
public java.lang.String getGroupHandlerExpandIcon()
putGroupHandlerExpandIcon(String)
public java.lang.String getGroupHandlerCloseIcon()
putGroupHandlerCloseIcon(String)
public java.lang.String getGroupHandlerEmptyIcon()
putGroupHandlerEmptyIcon(String)
public boolean isGroupHandlerVisible()
putGroupHandlerVisible(boolean)
public int getGroupHandlerPosition()
putGroupHandlerPosition(int)
public int getGroupHandlerXOffset()
putGroupHandlerXoffset(int)
public int getGroupHandlerYOffset()
putGroupHandlerYoffset(int)
public boolean isGroupGradient()
putGroupGradient(boolean)
public java.awt.Color getGroupGradientColor()
putGroupGradientColor(Color)
public int getGroupGradientFactory()
putGroupGradientFactory(int)
public void putGroupChamferEdge(int chamferLength)
public int getGroupChamferEdge()
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.