public class ShapeLink extends Link
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
points |
protected int |
shapeLinkType |
alarmState, businessObject, clientProperties, delegate, displayName, elements, iconUrl, id, imageUrl, name, parent, propertyChangeSupport, selected, toolTipText, userObject, userProperties, visible
Constructor and Description |
---|
ShapeLink()
Creates a link object.
|
ShapeLink(Node from,
Node to)
Creates a link object by given from node and to node.
|
ShapeLink(java.lang.Object id)
Creates a link object with given id.
|
ShapeLink(java.lang.Object id,
Node from,
Node to)
Creates a link object between from node and to node
with given id.
|
Modifier and Type | Method and Description |
---|---|
void |
addPoint(java.awt.geom.Point2D point)
Add a control point into the shape node.
|
void |
clear()
Clear all control points
|
void |
firePointsChange()
Fires control points change event.
|
java.awt.geom.Point2D |
getPoint(int index)
Gets the control point at the specified position index.
|
java.util.List |
getPoints()
Get all control points
|
int |
getShapeLinkType()
Gets the type of this shape link.
|
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.
|
void |
insertPoint(int index,
java.awt.geom.Point2D point)
Insert control point into the specified index
|
void |
removePoint(int index)
Remove a control point from the specified index
|
void |
setPoint(int index,
java.awt.geom.Point2D point)
Set control point at the specified index
|
void |
setPoints(java.util.List points)
Set the control points for this shape node.
|
void |
setShapeLinkType(int shapeLinkType)
Sets the type of this shape link.
|
java.awt.geom.Point2D[] |
toPoints()
Get an array of all control points
|
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, isAdjustToBottom, 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 ShapeLink()
public ShapeLink(java.lang.Object id)
id
- Object the link id.public ShapeLink(Node from, Node to)
from
- Node start nodeto
- Node end nodepublic 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 getPoints()
public java.awt.geom.Point2D[] toPoints()
public java.awt.geom.Point2D getPoint(int index)
index
- the specified position index.public void setPoints(java.util.List points)
points
- List a list contain all control points.public void setPoint(int index, java.awt.geom.Point2D point)
index
- int the point indexpoint
- Point the point objectpublic void insertPoint(int index, java.awt.geom.Point2D point)
index
- int the insert indexpoint
- Point the point need to insertpublic void removePoint(int index)
index
- int index locationpublic void addPoint(java.awt.geom.Point2D point)
point
- Point a new point need to addpublic void clear()
public void firePointsChange()
public int getShapeLinkType()
setShapeLinkType(int)
public void setShapeLinkType(int shapeLinkType)
TWaverConst.SHAPELINK_STRAIGHT_LINE
TWaverConst.SHAPELINK_QUADRATIC_CURVE
TWaverConst.SHAPELINK_BEZIER_CURVE
TWaverConst.SHAPELINK_ORTHOGONAL_LINE
shapeLinkType
- the type of this shape link.getShapeLinkType()
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.