constructor
a reference to the flow component
The origin node of the link to create.
The destination node of the link to create.
Optional
text: stringA string to be displayed in the node to create.
Optional
pinOrg: numberThe pin of the origin node of the link to create.
Optional
pinDst: numberThe pin of the destination node of the link to create.
Returns/sets the shape of the link destination arrow head
Returns/sets the shape of the link origin arrow head
The color used to fill the item
A reference of the AddFlow component containing this item
The font used to display the text of the item
The color used to create a gradient with the fillStyle color
Determines if a context handle is displayed when the link is selected
true
Determines whether the item is excluded by a layout algorithm
false
Determines whether the item is hidden
false
Determines whether the item can be hit tested
true
Determines whether the background of the text of the link is opaque.
false
Determines whether the text of the link is aligned with the link.
false
Determines whether the item is selectable by clicking on it with the mouse or unselectable (readonly or inactive)
true
Determines whether a shadow is displayed for the item
false
Determines whether the link can be stretched or not
true
Returns/sets the size of the jumps at the intersection of links.<
3
The thickness of the lines used to draw the item
1
The opacity of the item
1
The margin used to display orthogonal links
The collection of link points. Don't use this property which is only provided for the AddFlow infrastructure. To manipulate the collection of link points, you should use instead the methods addPoint, removePoint, clearPoints, countPoints, getPoint and setPoint.
Determines the size of the rounded corner at the intersection point of 2 segments. This property will have not any effect if the style property of the link is bezier.
0
The color used to draw the item
Sets or returns a tag associated with the item.
null
Sets or returns the text associated with the item. If the item is a node, the text is displayed inside the node. It is a multiline display. The text is wrapped automatically inside the node. Linefeed and carriage return characters are allowed.
The color used to display the text of the item
Returns/sets a boolean value indicating whether the last link point can be changed.
false
Returns/sets a boolean value indicating whether the first link point can be changed.
false
Returns/sets a flag indicating if the item is selected or not.
Returns/sets the pin index of destination node of the link
Returns/sets the pin index of origin node of the link
Add a point to the collection of points of a link. This method will work only if the link lineStyle allows adding points to the link. For instance, it will not work if the link has a bezier lineStyle.
Clears the collection of points of the link, removing all points except the first and the last since a link points collection is never empty and contains at least 2 points. This method will work only if the link lineStyle allows removing points to the link. For instance, it will not work if the link has a bezier lineStyle.
Private
drawPrivate
drawSets a point at the specified index.
Generated using TypeDoc
Represents a Link object.
Implements