public class Link extends AbstractElement
alarmState, businessObject, clientProperties, delegate, displayName, elements, iconUrl, id, imageUrl, name, parent, propertyChangeSupport, selected, toolTipText, userObject, userProperties, visible
Constructor and Description |
---|
Link()
Creates a link object.
|
Link(Node from,
Node to)
Creates a link object by given from node and to node.
|
Link(java.lang.Object id)
Creates a link object with given id.
|
Link(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 |
checkAgentNode()
Check link agent node.
|
Element |
copy()
Copy a new element instance from this element.
|
Link |
copy(Node from,
Node to)
Copy a new link with given from/to node.
|
Link |
copy(Node from,
Node to,
TDataBox box)
Copy a new element with given data box and from/to node.
|
Element |
copy(java.lang.Object id)
Copy a new link with given id.
|
Link |
copy(java.lang.Object id,
Node from,
Node to)
Copy a new link with given id and from/to node.
|
Link |
copy(java.lang.Object id,
Node from,
Node to,
TDataBox box)
Copy a new element with given id, data box and from/to node.
|
Element |
copy(java.lang.Object id,
TDataBox box)
Copy a new element with given id and data box.
|
Element |
copy(TDataBox box)
Copy a new element with given data box.
|
java.awt.Rectangle |
getBounds()
Return null.
|
java.awt.Point |
getCenterLocation()
Return null.
|
Node |
getFrom()
Return the from node.
|
Node |
getFromAgent()
Get the agent of from node.
|
int |
getHeight()
Return 0.
|
java.awt.Color |
getLinkBlinkingColor()
Gets the color when the link is blinking.
|
int |
getLinkBundleID()
Gets the link bundle id.
|
int |
getLinkBundleIndex()
Gets the bundle index when the link is bundled with other links.
|
int |
getLinkBundleSize()
Gets the total number of the link bundle this link located in.
|
java.awt.Color |
getLinkColor()
Gets the color of the link.
|
int |
getLinkCornerType()
Gets the link corner type.
|
int |
getLinkCornerXRadius()
Gets the link corner xradius.
|
int |
getLinkCornerYRadius()
Gets the link corner yradius.
|
int |
getLinkExtend()
Gets the extend of the link.
|
java.awt.Color |
getLinkFlowingColor()
Gets the color when the link is flowing.
|
int |
getLinkFlowingWidth()
Gets the flowing width of the link.
|
java.awt.Color |
getLinkFromArrowColor()
Gets the color of the link's from arrow.
|
java.awt.Color |
getLinkFromArrowOutlineColor()
Gets the outline color of the link's from arrow.
|
int |
getLinkFromArrowStyle()
Gets the link from arrow style.
|
int |
getLinkFromArrowXOffset()
Gets the link from arrow location a horizontal offset.
|
int |
getLinkFromArrowYOffset()
Gets the link from arrow location a vertical offset.
|
int |
getLinkFromPosition()
Gets the position where the link from appear on the element.
|
int |
getLinkFromXOffset()
Gets the link from location a horizontal offset.
|
int |
getLinkFromYOffset()
Gets the link from location a vertical offset.
|
int |
getLinkHandlerPosition()
Gets the position where the link handler appear on the element.
|
int |
getLinkHandlerXOffset()
Gets the link handler location a horizontal offset.
|
int |
getLinkHandlerYOffset()
Gets the link handler location a vertical offset.
|
OrthogonalLinkDirectionType |
getLinkOrthogonalDirection()
Get the bend direction of the orthogonal path.
|
java.awt.Color |
getLinkOutlineColor()
Gets the outline color of the link.
|
int |
getLinkOutlineWidth()
Gets the outline width of the link.
|
double |
getLinkProportion()
Gets the proportion of the link.
|
double |
getLinkSplitValue()
Gets the split value of the link.
|
java.lang.String |
getLinkStyle()
Gets the link style.
|
java.awt.Color |
getLinkToArrowColor()
Gets the color of the link's to arrow.
|
java.awt.Color |
getLinkToArrowOutlineColor()
Gets the outline color of the link's to arrow.
|
int |
getLinkToArrowStyle()
Gets the link to arrow style.
|
int |
getLinkToArrowXOffset()
Gets the link to arrow location a horizontal offset.
|
int |
getLinkToArrowYOffset()
Gets the link to arrow location a vertical offset.
|
int |
getLinkToPosition()
Gets the position where the link to appear on the element.
|
int |
getLinkToXOffset()
Gets the link to location a horizontal offset.
|
int |
getLinkToYOffset()
Gets the link to location a vertical offset.
|
int |
getLinkType()
Gets the type of this link.
|
int |
getLinkWidth()
Gets the width of the link.
|
java.awt.Point |
getLocation()
Return null.
|
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.
|
Node |
getTo()
Get the to node for this link.
|
Node |
getToAgent()
Get the agent of to node.
|
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()
Return 0.
|
double |
getX()
Return -1.
|
double |
getY()
Return -1.
|
boolean |
isBundleAgent()
Checks whether this link is bundle agent.
|
boolean |
isLink3D()
Gets whether the link shows as 3D style.
|
boolean |
isLinkAntialias()
Gets whether draw this link with antialies mode.
|
boolean |
isLinkBlinking()
Gets whether the link is blink.
|
boolean |
isLinkBundleExpand()
Gets Whether expand the link bundle, if this link is bundled with other links.
|
boolean |
isLinkFlowing()
Gets whether the link is flowing
This method is a wrap for #getClientProperty with key of TWaverConst.PROPERTYNAME_LINK_FLOWING.
|
boolean |
isLinkFlowingConverse()
Gets whether the link is flowing in the converse direction.
|
boolean |
isLinkFromArrow()
Gets whether the link has from arrow.
|
boolean |
isLinkFromArrowCenter() |
boolean |
isLinkFromArrowOutline()
Gets whether draw the outline of the link's from arrow.
|
boolean |
isLinkHandlerVisible()
Determines whether to display link handler.
|
boolean |
isLinkHollow()
Gets whether the link is hollow.
|
boolean |
isLinkLabelRotatable()
Gets whether this link label is rotated to parallel the link.
|
boolean |
isLinkToArrow()
Gets whether the link has to arrow.
|
boolean |
isLinkToArrowCenter() |
boolean |
isLinkToArrowOutline()
Gets whether draw the outline of the link's to arrow.
|
boolean |
isLoop()
Check whether this link is a loop, that is,
the from node and to node are the same node.
|
boolean |
isShapeFrozen()
Checks whether this link is frozen.
|
void |
putClientProperty(java.lang.Object key,
java.lang.Object value)
Adds an arbitrary key/value "client property" to this element.
|
void |
putLink3D(boolean link3D)
Set whether enable 3d border for this link
This method is a wrap for #putClientProperty with key of TWaverConst.PROPERTYNAME_LINK_3D.
|
void |
putLinkAntialias(boolean linkAntialias)
Whether draw this link with antialies mode.
|
void |
putLinkBlinking(boolean linkBlinking)
Whether enable link blinking.
|
void |
putLinkBlinkingColor(java.awt.Color linkBlinkingColor)
Set the link blinking color.
|
void |
putLinkBundleExpand(boolean linkBundleExpand)
Whether expand the link bundle, if this link is
bundled with other links.
|
void |
putLinkBundleID(int id)
Set link bundle id.
|
void |
putLinkBundleIndex(int linkBundleIndex)
Set the bundle index when the link is bundled with other links.
|
void |
putLinkBundleSize(int linkBundleSize)
Set the total number of the link bundle this link located in.
|
void |
putLinkColor(java.awt.Color linkColor)
Set link color.
|
void |
putLinkCornerType(int cornerType)
Set link corner type.
|
void |
putLinkCornerXRadius(int radius)
Set link corner xradius.
|
void |
putLinkCornerYRadius(int radius)
Set link corner yradius.
|
void |
putLinkExtend(int linkExtend)
Set the link extend
This method is a wrap for #putClientProperty with key of TWaverConst.PROPERTYNAME_LINK_EXTEND.
|
void |
putLinkFlowing(boolean linkFlowing)
Enable or disable the link flowing.
|
void |
putLinkFlowingColor(java.awt.Color linkFlowingColor)
Sets the link flowing block's color.
|
void |
putLinkFlowingConverse(boolean linkFlowingConverse)
Set whether the link flowing is in conversed direction.
|
void |
putLinkFlowingWidth(int linkFlowingWidth)
Set the link flowing block's width.
|
void |
putLinkFromArrow(boolean linkFromArrow)
Set whether show link from arrow.
|
void |
putLinkFromArrowCenter(boolean linkFromArrowCenter) |
void |
putLinkFromArrowColor(java.awt.Color linkFromArrowColor)
Set the link from arrow color.
|
void |
putLinkFromArrowOutline(boolean linkFromArrowOutline)
Set whether draw the link's from arrow outline.
|
void |
putLinkFromArrowOutlineColor(java.awt.Color linkFromArrowOutlineColor)
Set the link from arrow outline color.
|
void |
putLinkFromArrowStyle(int linkFromArrowStyle)
Set the link from arrow style.
|
void |
putLinkFromArrowXOffset(int linkFromArrowXOffset)
Sets the link from arrow location a horizontal offset.
|
void |
putLinkFromArrowYOffset(int linkFromArrowYOffset)
Sets the link from arrow location a vertical offset.
|
void |
putLinkFromPosition(int linkFromPosition)
Sets the position where the link from appear on the element.
|
void |
putLinkFromXOffset(int linkFromXOffset)
Sets the link from location a horizontal offset.
|
void |
putLinkFromYOffset(int linkFromYOffset)
Sets the link from location a vertical offset.
|
void |
putLinkHandlerPosition(int linkHandlerPosition)
Sets the position where the link handler appear on the element.
|
void |
putLinkHandlerVisible(boolean linkHandlerVisible)
Sets whether to display link handler.
|
void |
putLinkHandlerXOffset(int linkHandlerXOffset)
Sets the link handler location a horizontal offset.
|
void |
putLinkHandlerYOffset(int linkHandlerYOffset)
Sets the link handler location a vertical offset.
|
void |
putLinkHollow(boolean linkHollow)
Determines whether or not this link is hollow
This method is a wrap for #putClientProperty with key of TWaverConst.PROPERTYNAME_LINK_STYLE.
|
void |
putLinkLabelRotatable(boolean linkLabelRotatable)
Set whether this link label is rotated to parallel the link.
|
void |
putLinkOrthogonalDirection(OrthogonalLinkDirectionType direction)
Set the bend direction of the orthogonal path.
|
void |
putLinkOutlineColor(java.awt.Color linkOutlineColor)
Set link outline color.
|
void |
putLinkOutlineWidth(int linkOutlineWidth)
Set link outline width.
|
void |
putLinkProportion(double linkProportion)
Set the link proportion
This method is a wrap for #putClientProperty with key of TWaverConst.PROPERTYNAME_LINK_PROPORTION.
|
void |
putLinkSplitValue(double splitValue)
Set the link split value
This method is a wrap for #putClientProperty with key of TWaverConst.PROPERTYNAME_LINK_SPLIT_VALUE.
|
void |
putLinkStyle(java.lang.String linkStyle)
Set link style.
|
void |
putLinkToArrow(boolean linkToArrow)
Set whether show link to arrow.
|
void |
putLinkToArrowCenter(boolean linkToArrowCenter) |
void |
putLinkToArrowColor(java.awt.Color linkToArrowColor)
Set the link to arrow outline color.
|
void |
putLinkToArrowOutline(boolean linkToArrowOutline)
Set whether draw the link's to arrow outline.
|
void |
putLinkToArrowOutlineColor(java.awt.Color linkToArrowOutlineColor)
Set the link to arrow outline color.
|
void |
putLinkToArrowStyle(int linkToArrowStyle)
Set the link to arrow style.
|
void |
putLinkToArrowXOffset(int linkToArrowXOffset)
Sets the link from arrow location a horizontal offset.
|
void |
putLinkToArrowYOffset(int linkToArrowYOffset)
Sets the link to arrow location a vertical offset.
|
void |
putLinkToPosition(int linkToPosition)
Sets the position where the link to appear on the element.
|
void |
putLinkToXOffset(int linkToXOffset)
Sets the link to location a horizontal offset.
|
void |
putLinkToYOffset(int linkToYOffset)
Sets the link to location a vertical offset.
|
void |
putLinkWidth(int linkWidth)
Set the link width
This method is a wrap for #putClientProperty with key of TWaverConst.PROPERTYNAME_LINK_WIDTH.
|
void |
setBundleExpand(boolean bundleExpand)
Set the bundle expand status with given value.
|
void |
setCenterLocation(double x,
double y)
Do nothing here.
|
void |
setCenterLocation(java.awt.geom.Point2D location) |
void |
setFrom(Node from)
Set from node for this link.
|
void |
setLinkType(int linkType)
Sets the type of this link.
|
void |
setLocation(double x,
double y)
Do nothing here.
|
void |
setLocation(java.awt.Point location)
Do nothing here.
|
void |
setLocation(java.awt.geom.Point2D.Double location)
Do nothing here.
|
void |
setShapeFrozen(boolean shapeFrozen)
Sets whether this link is frozen.
|
void |
setTo(Node to)
Set the to node for this link.
|
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 Link()
public Link(java.lang.Object id)
id
- Object the link id.public Link(Node from, Node to)
from
- Node start nodeto
- Node end nodepublic int getLinkType()
setLinkType(int)
public void setLinkType(int linkType)
TWaverConst.LINK_TYPE_STRAIGHT
TWaverConst.LINK_TYPE_FLEXIONAL
TWaverConst.LINK_TYPE_ORTHOGONAL
TWaverConst.LINK_TYPE_CURVOUS
TWaverConst.LINK_TYPE_ZIGZAG
TWaverConst.LINK_TYPE_XSPLIT
TWaverConst.LINK_TYPE_YSPLIT
TWaverConst.LINK_TYPE_TOP
TWaverConst.LINK_TYPE_BOTTOM
TWaverConst.LINK_TYPE_LEFT
TWaverConst.LINK_TYPE_RIGHT
linkType
- new link type.getLinkType()
public java.lang.String getUIClassID()
ElementUI
public java.lang.String getSVGUIClassID()
ElementSVGUI
,
TSVGNetwork
public Node getFrom()
public void setFrom(Node from)
from
- Node the new from node for this linkpublic Node getTo()
public void setTo(Node to)
to
- Node the new to node of this linkpublic Node getFromAgent()
public Node getToAgent()
public boolean isLoop()
public java.awt.Point getLocation()
public int getWidth()
public int getHeight()
public java.awt.Rectangle getBounds()
public void setLocation(double x, double y)
x
- doubley
- doublepublic void setLocation(java.awt.Point location)
location
- Pointpublic void setLocation(java.awt.geom.Point2D.Double location)
location
- Doublepublic java.awt.Point getCenterLocation()
Element.setCenterLocation(double, double)
public void setCenterLocation(double x, double y)
x
- doubley
- doublepublic void setCenterLocation(java.awt.geom.Point2D location)
public double getX()
public double getY()
public Element copy()
Copy element isn't a easy job, may be you want to deeply clone some properties, may be you just want the new copied element referencing to the value object of some properties. so if the default isn't fit your requirement, you can use twaver.TUIManager#registerPredefinedPropertyCopied("certain property name", false) to disable twaver's default implementation on the "certain property name", and extend the twaver.DefaultExportValuesInterceptor and register it via twaver.TWaverUtil#setExportValuesInterceptor(ExportValuesInterceptor), or override the copy() method to do the copy by yourself.
copy
in interface Element
copy
in class AbstractElement
TUIManager.registerPredefinedPropertyCopied(String, boolean)
,
TUIManager.isPredefinedPropertyCopied(String)
,
ExportValuesInterceptor
,
TWaverUtil.setExportValuesInterceptor(ExportValuesInterceptor)
public Element copy(java.lang.Object id)
copy
in interface Element
copy
in class AbstractElement
id
- the copied element's id.copy()
public Link copy(Node from, Node to)
from
- the from nodeto
- the to nodecopy()
public Link copy(java.lang.Object id, Node from, Node to)
id
- new link's idfrom
- the from nodeto
- the to nodecopy()
public Element copy(TDataBox box)
copy
in interface Element
copy
in class AbstractElement
box
- the given data box object.copy()
public Element copy(java.lang.Object id, TDataBox box)
copy
in interface Element
copy
in class AbstractElement
id
- the copied element's id.box
- the given data box object.copy()
public Link copy(Node from, Node to, TDataBox box)
from
- the from nodeto
- the to nodebox
- the given data box object.copy()
public Link copy(java.lang.Object id, Node from, Node to, TDataBox box)
id
- the new element's id.from
- the from nodeto
- the to nodebox
- the given data box object.copy()
public void checkAgentNode()
public void setBundleExpand(boolean bundleExpand)
bundleExpand
- the new expand status.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 boolean isBundleAgent()
TDataBox.setLinkBundleAgentGenerator(Generator)
,
TUIManager.setLinkBundleAgentGenerator(Generator)
public void putLinkCornerType(int cornerType)
TWaverConst.LINK_CORNER_NONE
TWaverConst.LINK_CORNER_BEVEL
TWaverConst.LINK_CORNER_ROUND
cornerType
- int the new link corner typepublic void putLinkCornerXRadius(int radius)
radius
- int the new link corner xradiuspublic void putLinkCornerYRadius(int radius)
radius
- int the new link corner yradiuspublic void putLinkBundleID(int id)
id
- int the new link bundle idpublic void putLinkStyle(java.lang.String linkStyle)
TWaverConst.LINK_STYLE_SOLID
TWaverConst.LINK_STYLE_DASH
TWaverConst.LINK_STYLE_CHAIN
TWaverConst.LINK_STYLE_DOT
TWaverConst.LINK_STYLE_ZIGZAG
linkStyle
- String the new link stylepublic void putLinkColor(java.awt.Color linkColor)
linkColor
- Color the new link colorpublic void putLinkOutlineColor(java.awt.Color linkOutlineColor)
linkOutlineColor
- Color the link outline colorpublic void putLinkOutlineWidth(int linkOutlineWidth)
linkOutlineWidth
- int the link outline widthpublic void putLinkWidth(int linkWidth)
linkWidth
- int the link width.public void putLinkExtend(int linkExtend)
linkExtend
- int the link extend.public void putLinkProportion(double linkProportion)
linkProportion
- int the link proportion.public void putLinkFlowingWidth(int linkFlowingWidth)
linkFlowingWidth
- int the link flowing block widthpublic void putLinkFromArrow(boolean linkFromArrow)
linkFromArrow
- boolean true show from arrow, false otherwise.public void putLinkToArrow(boolean linkToArrow)
linkToArrow
- boolean true show to arrow, false otherwise.public void putLinkFlowing(boolean linkFlowing)
linkFlowing
- boolean true enable link flowing, false disable link flowing.public void putLinkFlowingConverse(boolean linkFlowingConverse)
linkFlowingConverse
- boolean true to converse link
flowing direction, false use default direction.public void putLinkBlinking(boolean linkBlinking)
linkBlinking
- boolean true start blink, false disable blinkingpublic void putLinkBlinkingColor(java.awt.Color linkBlinkingColor)
linkBlinkingColor
- Color the link blinking color.public void putLinkFlowingColor(java.awt.Color linkFlowingColor)
linkFlowingColor
- Color the new link flowing block colorpublic void putLinkBundleExpand(boolean linkBundleExpand)
linkBundleExpand
- boolean true expand link bundle,
false close the link bundle.public void putLinkBundleIndex(int linkBundleIndex)
linkBundleIndex
- int new link bundle index.public void putLinkBundleSize(int linkBundleSize)
linkBundleSize
- int the link bundle size.public void putLink3D(boolean link3D)
link3D
- boolean true use 3d, false disable 3d.public void putLinkLabelRotatable(boolean linkLabelRotatable)
linkLabelRotatable
- boolean true to rotated to parallel link,
false otherwise.public void putLinkAntialias(boolean linkAntialias)
linkAntialias
- boolean true to enable antialias,false otherwise.public void putLinkFromArrowCenter(boolean linkFromArrowCenter)
public void putLinkToArrowCenter(boolean linkToArrowCenter)
public void putLinkFromArrowStyle(int linkFromArrowStyle)
linkFromArrowStyle
- int the new link from arrow style.public void putLinkToArrowStyle(int linkToArrowStyle)
linkToArrowStyle
- int the new link to arrow style.public void putLinkFromArrowColor(java.awt.Color linkFromArrowColor)
linkFromArrowColor
- Color the new link from arrow color.public void putLinkToArrowColor(java.awt.Color linkToArrowColor)
linkToArrowColor
- Color the new link to arrow color.public void putLinkFromArrowOutline(boolean linkFromArrowOutline)
linkFromArrowOutline
- boolean the new link from arrow outline.public void putLinkToArrowOutline(boolean linkToArrowOutline)
linkToArrowOutline
- boolean the new link to arrow outline.public void putLinkFromArrowOutlineColor(java.awt.Color linkFromArrowOutlineColor)
linkFromArrowOutlineColor
- Color the new link from outline arrow color.public void putLinkToArrowOutlineColor(java.awt.Color linkToArrowOutlineColor)
linkToArrowOutlineColor
- Color the new link to arrow outline color.public void putLinkHollow(boolean linkHollow)
linkHollow
- boolean true to make this link hollow, false otherwise.public void putLinkHandlerPosition(int linkHandlerPosition)
linkHandlerPosition
- the position where the link handler appear on the element.public void putLinkHandlerXOffset(int linkHandlerXOffset)
linkHandlerXOffset
- a new horizontal offset.public void putLinkHandlerYOffset(int linkHandlerYOffset)
linkHandlerYOffset
- a new vertical offset.public void putLinkHandlerVisible(boolean linkHandlerVisible)
linkHandlerVisible
- True to display, false to hide.TNetwork.setShowLinkBundleHandler(boolean)
public void putLinkFromArrowXOffset(int linkFromArrowXOffset)
linkFromArrowXOffset
- int a new horizontal offset.public void putLinkFromArrowYOffset(int linkFromArrowYOffset)
linkFromArrowYOffset
- int a new vertical offset.public void putLinkToArrowXOffset(int linkToArrowXOffset)
linkFromArrowXOffset
- int a new horizontal offset.public void putLinkToArrowYOffset(int linkToArrowYOffset)
linkToArrowYOffset
- int a new vertical offset.public void putLinkToPosition(int linkToPosition)
linkToPosition
- int the position where the link to appear on the element.public void putLinkFromPosition(int linkFromPosition)
linkFromPosition
- int the position where the link from appear on the element.public void putLinkToXOffset(int linkToXOffset)
linkToXOffset
- int a new horizontal offset.public void putLinkToYOffset(int linkToYOffset)
linkToYOffset
- int a new vertical offset.public void putLinkFromXOffset(int linkFromXOffset)
linkFromXOffset
- int a new horizontal offset.public void putLinkFromYOffset(int linkFromYOffset)
linkFromYOffset
- int a new vertical offset.public void putLinkOrthogonalDirection(OrthogonalLinkDirectionType direction)
direction
- OrthogonalLinkDirectionType link directionpublic int getLinkCornerType()
putLinkCornerType(int)
public int getLinkCornerXRadius()
putLinkCornerXRadius(int)
public int getLinkCornerYRadius()
putLinkCornerYRadius(int)
public int getLinkBundleID()
putLinkBundleID(int)
public java.lang.String getLinkStyle()
putLinkStyle(String)
public boolean isLinkHollow()
putLinkHollow(boolean)
public java.awt.Color getLinkColor()
putLinkColor(Color)
public java.awt.Color getLinkOutlineColor()
putLinkOutlineColor(Color)
public int getLinkOutlineWidth()
putLinkOutlineWidth(int)
public int getLinkWidth()
putLinkWidth(int)
public int getLinkExtend()
putLinkExtend(int)
public double getLinkProportion()
#putLinkProportion(int)
public void putLinkSplitValue(double splitValue)
splitValue
- double the link split value.public double getLinkSplitValue()
putLinkSplitValue(double)
public int getLinkFlowingWidth()
putLinkFlowingWidth(int)
public boolean isLinkFromArrow()
putLinkFromArrow(boolean)
public boolean isLinkToArrow()
putLinkToArrow(boolean)
public boolean isLinkFlowing()
putLinkFlowing(boolean)
public boolean isLinkFlowingConverse()
putLinkFlowingConverse(boolean)
public boolean isLinkBlinking()
putLinkBlinking(boolean)
public java.awt.Color getLinkBlinkingColor()
putLinkBlinkingColor(Color)
public boolean isLink3D()
putLink3D(boolean)
public java.awt.Color getLinkFlowingColor()
putLinkFlowingColor(Color)
public boolean isLinkBundleExpand()
putLinkBundleExpand(boolean)
public int getLinkBundleIndex()
putLinkBundleIndex(int)
public int getLinkBundleSize()
putLinkBundleSize(int)
public boolean isLinkLabelRotatable()
putLinkLabelRotatable(boolean)
public boolean isLinkAntialias()
putLinkAntialias(boolean)
public boolean isLinkFromArrowCenter()
public boolean isLinkToArrowCenter()
public int getLinkFromArrowStyle()
putLinkFromArrowStyle(int)
public int getLinkToArrowStyle()
putLinkToArrowStyle(int)
public java.awt.Color getLinkFromArrowColor()
putLinkFromArrowColor(Color)
public java.awt.Color getLinkToArrowColor()
putLinkToArrowColor(Color)
public java.awt.Color getLinkFromArrowOutlineColor()
putLinkFromArrowOutlineColor(Color)
public java.awt.Color getLinkToArrowOutlineColor()
putLinkToArrowOutlineColor(Color)
public boolean isLinkFromArrowOutline()
#putLinkFromArrowOutline(Boolean)
public boolean isLinkToArrowOutline()
#putLinkToArrowOutline(Boolean)
public int getLinkHandlerPosition()
putLinkHandlerPosition(int)
public int getLinkToPosition()
putLinkToPosition(int)
public int getLinkFromPosition()
putLinkFromPosition(int)
public int getLinkHandlerXOffset()
putLinkHandlerXOffset(int)
public int getLinkHandlerYOffset()
putLinkHandlerYOffset(int)
public boolean isLinkHandlerVisible()
putLinkHandlerVisible(boolean)
public int getLinkFromArrowXOffset()
putLinkFromArrowXOffset(int)
public int getLinkFromArrowYOffset()
putLinkFromArrowYOffset(int)
public int getLinkToArrowXOffset()
putLinkToArrowXOffset(int)
public int getLinkToArrowYOffset()
putLinkToArrowYOffset(int)
public int getLinkToXOffset()
putLinkToXOffset(int)
public int getLinkToYOffset()
putLinkToYOffset(int)
public int getLinkFromXOffset()
putLinkFromXOffset(int)
public int getLinkFromYOffset()
putLinkFromYOffset(int)
public OrthogonalLinkDirectionType getLinkOrthogonalDirection()
public boolean isShapeFrozen()
public void setShapeFrozen(boolean shapeFrozen)
shapeFrozen
- True if this link is froze, false otherwise.Copyright © 2002 - 2010 Serva Software. All Rights Reserved.