Class draw2d.Port

Object
   |
   +--draw2d.Figure
         |
         +--draw2d.Rectangle
               |
               +--draw2d.Port
Direct Known Subclasses:
draw2d.OutputPort, draw2d.InputPort

class draw2d.Port
extends draw2d.Rectangle


A Port is the anchor for a draw2d.Connection. A draw2d.Connection must have a start and a end Port.

Version: 0.9.14

Author: Andreas Herz
Defined in Port.js


Field Summary
 Object connectedUIRepresentation
          
 Object currentUIRepresentation
          
 Object disconnectedUIRepresentation
          
 Object hideIfConnected
          
 Object uiRepresentationAdded
          
 
Constructor Summary
draw2d.Port ( disconnectedUIRepresentation, connectedUIRepresentation)
           
 
Method Summary
 void attachMoveListener( <draw2d.Figure> figure)
          
 void detachMoveListener( <draw2d.Figure> figure)
          
 draw2d.Point getAbsoluteBounds()
           Returns the absolute y-position of the port.
 draw2d.Point getAbsolutePosition()
           Returns the absolute y-position of the port.
 int getAbsoluteX()
           Returns the absolute x-position of the port.
 int getAbsoluteY()
           Returns the absolute y-position of the port.
 draw2d.Color getBackgroundColor()
           Returns the background color of this port.
 draw2d.Color getColor()
           Returns the foreground color of the port.
 draw2d.ArrayList getConnections()
           Returns a array of Connection of all related connections to this port.
 int getCoronaWidth()
           Returns the corona width of the Port.
 int getLineWidth()
           Returns the line with of the port border.
 String getName()
           Return the name of this port.
 draw2d.Node getParent()
           Return the parentNode draw2d.Node of this port.
 Object isOver( iX , iY)
          
 void onOtherFigureMoved( <draw2d.Figure> figure)
           Callback method of the movemoent of a figure
 void setBackgroundColor( <draw2d.Color> color)
           Set the background color of the port
 void setColor( <draw2d.Color> color)
           Set the foreground color of the port
 void setCoronaWidth( <int> width)
           Set the corona width of the Port.
 void setDimension( <int> width, height)
           Set the dimension of this port.
 void setHideIfConnected( flag)
           Hide the port if a connector has been attach to this.
 void setLineWidth( width)
           Set the foreground color of the port
 void setName( <String> name)
           Set the name of this port.
 void setPosition( <int> xPos, <int> yPos)
           Set the position of this port
 void setUiRepresentation( <draw2d.Figure> figure)
           Set the representation of this port.
<static> void setZOrderBaseIndex( <int> index)
           Set the common z-index of the window element.
 
Methods inherited from class draw2d.Rectangle
getWidth, getHeight
   
Methods inherited from class draw2d.Figure
getProperties, getProperty, setProperty, getId, getWorkflow, getZOrder, setZOrder, hasFixedPosition, getMinWidth, getMinHeight, setBorder, getContextMenu, onDoubleClick, onDragstart, setCanDrag, setAlpha, isResizeable, setResizeable, isSelectable, setSelectable, isStrechable, isDeleteable, setDeleteable, setCanSnapToHelper, getCanSnapToHelper, getSnapToGridAnchor, setSnapToGridAnchor, getBounds, getY, getX, onKeyDown, getPosition
 

Field Detail

connectedUIRepresentation

Object connectedUIRepresentation

currentUIRepresentation

Object currentUIRepresentation

disconnectedUIRepresentation

Object disconnectedUIRepresentation

hideIfConnected

Object hideIfConnected

uiRepresentationAdded

Object uiRepresentationAdded

Constructor Detail

draw2d.Port

draw2d.Port( disconnectedUIRepresentation, connectedUIRepresentation)

Method Detail

attachMoveListener

void attachMoveListener( <draw2d.Figure> figure)

detachMoveListener

void detachMoveListener( <draw2d.Figure> figure)

getAbsoluteBounds

draw2d.Point getAbsoluteBounds()

getAbsolutePosition

draw2d.Point getAbsolutePosition()

getAbsoluteX

int getAbsoluteX()

getAbsoluteY

int getAbsoluteY()

getBackgroundColor

draw2d.Color getBackgroundColor()

getColor

draw2d.Color getColor()

getConnections

draw2d.ArrayList getConnections()

getCoronaWidth

int getCoronaWidth()

getLineWidth

int getLineWidth()

getName

String getName()

getParent

draw2d.Node getParent()

isOver

Object isOver( iX , iY)

onOtherFigureMoved

void onOtherFigureMoved( <draw2d.Figure> figure)

setBackgroundColor

void setBackgroundColor( <draw2d.Color> color)

setColor

void setColor( <draw2d.Color> color)

setCoronaWidth

void setCoronaWidth( <int> width)

setDimension

void setDimension( <int> width, height)

setHideIfConnected

void setHideIfConnected( flag)

setLineWidth

void setLineWidth( width)

setName

void setName( <String> name)

setPosition

void setPosition( <int> xPos, <int> yPos)

setUiRepresentation

void setUiRepresentation( <draw2d.Figure> figure)

setZOrderBaseIndex

<static> void setZOrderBaseIndex( <int> index)


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