Class draw2d.Node

Object
   |
   +--draw2d.Figure
         |
         +--draw2d.Node
Direct Known Subclasses:
draw2d.SVGFigure, draw2d.ImageFigure, draw2d.CompartmentFigure, draw2d.VectorFigure

class draw2d.Node
extends draw2d.Figure


A Node is the base class for all figures which can have draw2d.Ports. A draw2d.Port is the anchor for a draw2d.Connection line.

Hint: A draw2d.Port is a green dot which can be draged and droped over another port.

Version: 0.9.14

Author: Andreas Herz
Defined in Node.js


Constructor Summary
draw2d.Node ()
           
 
Method Summary
 void addPort( <draw2d.Port> port, <int> x, <int> y)
          
 draw2d.Color getBackgroundColor()
           Get the background color of the node.
 draw2d.Port getPort( <String> portName)
           Return the port with the corresponding name.
 draw2d.ArrayList getPorts()
           Return all ports of the node.
 void removePort( <draw2d.Port> port)
          
 void setBackgroundColor( <draw2d.Color> color)
           Set the background color of the node.
 void setColor( color)
          
 void setLineWidth( w)
          
 
Methods inherited from class draw2d.Figure
getProperties, getProperty, setProperty, getId, getWorkflow, getParent, getZOrder, setZOrder, hasFixedPosition, getMinWidth, getMinHeight, setBorder, getContextMenu, onDoubleClick, onMouseEnter, onMouseLeave, onDragstart, setCanDrag, setAlpha, setDimension, setPosition, isResizeable, setResizeable, isSelectable, setSelectable, isStrechable, isDeleteable, setDeleteable, setCanSnapToHelper, getCanSnapToHelper, getSnapToGridAnchor, setSnapToGridAnchor, getBounds, getWidth, getHeight, getY, getX, getAbsoluteY, getAbsoluteX, onKeyDown, getPosition, isOver, attachMoveListener, detachMoveListener
 

Constructor Detail

draw2d.Node

draw2d.Node()

Method Detail

addPort

void addPort( <draw2d.Port> port, <int> x, <int> y)

getBackgroundColor

draw2d.Color getBackgroundColor()

getPort

draw2d.Port getPort( <String> portName)

getPorts

draw2d.ArrayList getPorts()

removePort

void removePort( <draw2d.Port> port)

setBackgroundColor

void setBackgroundColor( <draw2d.Color> color)

setColor

void setColor( color)

setLineWidth

void setLineWidth( w)


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