public class PolyLine extends Link
Segment compose Branch, Branch compose the PolyLine.
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
blinkingObject |
protected java.util.List |
branchs |
protected java.util.List |
segments |
alarmState, businessObject, clientProperties, delegate, displayName, elements, iconUrl, id, imageUrl, name, parent, propertyChangeSupport, selected, toolTipText, userObject, userProperties, visible
Constructor and Description |
---|
PolyLine()
Create a polyline object
|
PolyLine(Node from,
Node to)
Create a polyline object by given from node and to node.
|
PolyLine(java.lang.Object id)
Create a polyline object by given id object
|
PolyLine(java.lang.Object id,
Node from,
Node to)
Create a polyline object by specified id, from node and to node.
|
Modifier and Type | Method and Description |
---|---|
void |
addBranch(Branch branch)
Add a branch into the polyline object.
|
void |
addSegment(Segment segment)
Add a segment into this polyline
|
void |
clearBranchs()
Clear all contained branch objects.
|
void |
clearSegments()
Clear all internal link segments.
|
java.util.List |
getAllNodes()
Retrieve all nodes connected in this polyline
|
java.lang.Object |
getBlinkingObject()
Get the blinking object of this polyline.
|
java.util.List |
getBranchs()
Get all branches of this polyline
|
java.util.List |
getOrderSegments()
Get the segments orderly, that is, the segments
ordered from first branch to last branch.
|
java.util.List |
getSegments()
Get all segments of this polyline.
|
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.
|
protected void |
handleNodePropertyChange(java.beans.PropertyChangeEvent evt) |
void |
insertSegment(int index,
Segment segment)
Insert a segment into the polyline at the specified position.
|
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 |
isBlinking(Segment segment)
Tells whether the given segment of this polyline is blinking.
|
void |
removeBranch(Branch branch)
Remove a branch object from this polyline object
|
void |
removeSegment(Segment segment)
Remove a internal link segment from this polyline.
|
void |
setBlinkingObject(java.lang.Object blinkingObject)
Set the blinking object of this polyline.
|
void |
setBranchs(java.util.List branchs)
Set all specified branch objects as the internal
branches of this polyline.
|
void |
setSegments(java.util.List segments)
Set all specified segment objects as the internal
link segments of this polyline.
|
checkAgentNode, copy, copy, copy, copy, copy, copy, copy, copy, getBounds, getCenterLocation, getFrom, getFromAgent, getHeight, getLinkBlinkingColor, getLinkBundleID, getLinkBundleIndex, getLinkBundleSize, getLinkColor, getLinkCornerType, getLinkCornerXRadius, getLinkCornerYRadius, getLinkExtend, getLinkFlowingColor, getLinkFlowingWidth, getLinkFromArrowColor, getLinkFromArrowOutlineColor, getLinkFromArrowStyle, getLinkFromArrowXOffset, getLinkFromArrowYOffset, getLinkFromPosition, getLinkFromXOffset, getLinkFromYOffset, getLinkHandlerPosition, getLinkHandlerXOffset, getLinkHandlerYOffset, getLinkOrthogonalDirection, getLinkOutlineColor, getLinkOutlineWidth, getLinkProportion, getLinkSplitValue, getLinkStyle, getLinkToArrowColor, getLinkToArrowOutlineColor, getLinkToArrowStyle, getLinkToArrowXOffset, getLinkToArrowYOffset, getLinkToPosition, getLinkToXOffset, getLinkToYOffset, getLinkType, getLinkWidth, getLocation, getTo, getToAgent, getWidth, getX, getY, isBundleAgent, isLink3D, isLinkAntialias, isLinkBlinking, isLinkBundleExpand, isLinkFlowing, isLinkFlowingConverse, isLinkFromArrow, isLinkFromArrowCenter, isLinkFromArrowOutline, isLinkHandlerVisible, isLinkHollow, isLinkLabelRotatable, isLinkToArrow, isLinkToArrowCenter, isLinkToArrowOutline, isLoop, isShapeFrozen, putClientProperty, putLink3D, putLinkAntialias, putLinkBlinking, putLinkBlinkingColor, putLinkBundleExpand, putLinkBundleID, putLinkBundleIndex, putLinkBundleSize, putLinkColor, putLinkCornerType, putLinkCornerXRadius, putLinkCornerYRadius, putLinkExtend, putLinkFlowing, putLinkFlowingColor, putLinkFlowingConverse, putLinkFlowingWidth, putLinkFromArrow, putLinkFromArrowCenter, putLinkFromArrowColor, putLinkFromArrowOutline, putLinkFromArrowOutlineColor, putLinkFromArrowStyle, putLinkFromArrowXOffset, putLinkFromArrowYOffset, putLinkFromPosition, putLinkFromXOffset, putLinkFromYOffset, putLinkHandlerPosition, putLinkHandlerVisible, putLinkHandlerXOffset, putLinkHandlerYOffset, putLinkHollow, putLinkLabelRotatable, putLinkOrthogonalDirection, putLinkOutlineColor, putLinkOutlineWidth, putLinkProportion, putLinkSplitValue, putLinkStyle, putLinkToArrow, putLinkToArrowCenter, putLinkToArrowColor, putLinkToArrowOutline, putLinkToArrowOutlineColor, putLinkToArrowStyle, putLinkToArrowXOffset, putLinkToArrowYOffset, putLinkToPosition, putLinkToXOffset, putLinkToYOffset, putLinkWidth, setBundleExpand, setCenterLocation, setCenterLocation, setFrom, setLinkType, setLocation, setLocation, setLocation, setShapeFrozen, setTo
addAttachment, addChartBubble, addChartValue, addChartValue, addChild, addChild, addPropertyChangeListener, addPropertyChangeListener, children, childrenSize, clearChartValues, clearChildren, containsAttachment, 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
protected java.util.List segments
protected java.util.List branchs
protected java.lang.Object blinkingObject
public PolyLine()
public PolyLine(java.lang.Object id)
id
- Object the polyline idpublic PolyLine(Node from, Node to)
from
- Node from node objectto
- Node to node objectprotected void handleNodePropertyChange(java.beans.PropertyChangeEvent evt)
public boolean isAdjustToBottom()
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 addBranch(Branch branch)
branch
- Branch branch object.public void removeBranch(Branch branch)
branch
- Branch the branch object need to be removedpublic void clearBranchs()
public void setBranchs(java.util.List branchs)
branchs
- List the new branchespublic void setSegments(java.util.List segments)
segments
- List the new segments.public void clearSegments()
public void addSegment(Segment segment)
segment
- Segment the link segment need to addpublic void removeSegment(Segment segment)
segment
- Segment the segment object need to removepublic void insertSegment(int index, Segment segment)
index
- int the insert positionsegment
- Segment the segment need to insertpublic java.util.List getAllNodes()
public java.util.List getOrderSegments()
public java.lang.String getUIClassID()
getUIClassID
in interface Element
getUIClassID
in class Link
ElementUI
public java.lang.String getSVGUIClassID()
getSVGUIClassID
in interface Element
getSVGUIClassID
in class Link
ElementSVGUI
,
TSVGNetwork
public java.util.List getSegments()
public java.util.List getBranchs()
public java.lang.Object getBlinkingObject()
public void setBlinkingObject(java.lang.Object blinkingObject)
blinkingObject
- Object the blinking object of this polyline.public boolean isBlinking(Segment segment)
segment
- Segment the segment need to checkCopyright © 2002 - 2010 Serva Software. All Rights Reserved.