|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--draw2d.Line
|
+--draw2d.Connection
A Connection is the line between two draw2d.Ports.
Version: 0.9.14
Author: Andreas Herz
Defined in Connection.js
| Field Summary | |
Object |
children
|
<static> Object |
defaultRouter
|
| Fields inherited from class draw2d.Line |
zOrder
|
| Constructor Summary | |
draw2d.Connection
()
|
|
| Method Summary | |
void
|
addFigure( <draw2d.Figure> figure, <draw2d.ConnectionLocator> locator)
Add a child figure to the Connection. |
void
|
addPoint( p)
|
boolean
|
containsPoint( <int> px, <int> py)
Checks if the hands over coordinate hits the line. |
void
|
finishStroke()
|
Object
|
getEndAngle()
|
draw2d.Point
|
getEndPoint()
Return the recalculated position of the start point if we have set an anchor. |
draw2d.ArrayList
|
getPoints()
Returns the fulcrms of the connection |
draw2d.ConnectionRouter
|
getRouter()
Return the current active router of this connection. |
draw2d.Port
|
getSource()
Returns the source port of this connection. |
Object
|
getStartAngle()
|
draw2d.Point
|
getStartPoint()
Return the recalculated position of the start point if we have set an anchor. |
draw2d.Port
|
getTarget()
Returns the target port of this connection. |
boolean
|
isResizeable()
You can't drag&drop the resize handles of a connector. |
void
|
setRouter( router)
Set the ConnectionRouter for this object. |
void
|
setSource( <draw2d.Port> port)
Set the new source port of this connection. |
void
|
setSourceAnchor( anchor)
Set the ConnectionAnchor for this object. |
void
|
setSourceDecorator( decorator)
Set the ConnectionDecorator for this object. |
void
|
setTarget( <draw2d.Port> port)
Set the target port of this connection. |
void
|
setTargetAnchor( anchor)
Set the ConnectionAnchor for this object. |
void
|
setTargetDecorator( decorator)
Set the ConnectionDecorator for this object. |
void
|
startStroke()
|
<static> void
|
setDefaultRouter( router)
|
| Methods inherited from class draw2d.Line |
getZOrder, setZOrder, getWorkflow, attachMoveListener, detachMoveListener, setLineWidth, setColor, getColor, setAlpha, setStartPoint, setEndPoint, getStartX, getStartY, getEndX, getEndY, isSelectable, setSelectable, isDeleteable, setDeleteable, getLength, getAngle, getContextMenu, onDoubleClick
|
| Field Detail |
Object children
<static> Object defaultRouter
| Constructor Detail |
draw2d.Connection()
| Method Detail |
void addFigure( <draw2d.Figure> figure, <draw2d.ConnectionLocator> locator)
figure - the figure to add as decoration to the connection.
locator - the locator for the child.
void addPoint( p)
boolean containsPoint( <int> px, <int> py)
px - the x coordinate of the test point
py - the y coordinate of the test point
void finishStroke()
Object getEndAngle()
draw2d.Point getEndPoint()
draw2d.ArrayList getPoints()
draw2d.ConnectionRouter getRouter()
draw2d.Port getSource()
Object getStartAngle()
draw2d.Point getStartPoint()
draw2d.Port getTarget()
boolean isResizeable()
void setRouter( router)
void setSource( <draw2d.Port> port)
port - The new source port of this connection.
void setSourceAnchor( anchor)
void setSourceDecorator( decorator)
void setTarget( <draw2d.Port> port)
port - The new target port of this connection
void setTargetAnchor( anchor)
void setTargetDecorator( decorator)
void startStroke()
<static> void setDefaultRouter( router)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||