Class draw2d.Connection

Object
   |
   +--draw2d.Line
         |
         +--draw2d.Connection

class draw2d.Connection
extends draw2d.Line


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

children

Object children

defaultRouter

<static> Object defaultRouter

Constructor Detail

draw2d.Connection

draw2d.Connection()

Method Detail

addFigure

void addFigure( <draw2d.Figure> figure, <draw2d.ConnectionLocator> locator)

addPoint

void addPoint( p)

containsPoint

boolean containsPoint( <int> px, <int> py)

finishStroke

void finishStroke()

getEndAngle

Object getEndAngle()

getEndPoint

draw2d.Point getEndPoint()

getPoints

draw2d.ArrayList getPoints()

getRouter

draw2d.ConnectionRouter getRouter()

getSource

draw2d.Port getSource()

getStartAngle

Object getStartAngle()

getStartPoint

draw2d.Point getStartPoint()

getTarget

draw2d.Port getTarget()

isResizeable

boolean isResizeable()

setRouter

void setRouter( router)

setSource

void setSource( <draw2d.Port> port)

setSourceAnchor

void setSourceAnchor( anchor)

setSourceDecorator

void setSourceDecorator( decorator)

setTarget

void setTarget( <draw2d.Port> port)

setTargetAnchor

void setTargetAnchor( anchor)

setTargetDecorator

void setTargetDecorator( decorator)

startStroke

void startStroke()

setDefaultRouter

<static> void setDefaultRouter( router)


Documentation generated by JSDoc on Thu Feb 7 23:45:47 2008