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
| 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
|
draw2d.Node
draw2d.Node()
Version: 0.9.14
Author: Andreas Herz
addPort
void addPort( <draw2d.Port> port, <int> x, <int> y)
Parameters:
port - The new port to add.
getBackgroundColor
draw2d.Color getBackgroundColor()
Get the background color of the node.
getPort
draw2d.Port getPort( <String> portName)
Return the port with the corresponding name.
Parameters:
portName - The name of the port to return.
Returns:
Returns the port with the hands over name or null.
getPorts
draw2d.ArrayList getPorts()
Return all ports of the node.
removePort
void removePort( <draw2d.Port> port)
Parameters:
port - The port to remove.
setBackgroundColor
void setBackgroundColor( <draw2d.Color> color)
Set the background color of the node.
setColor
void setColor( color)
setLineWidth
void setLineWidth( w)
Documentation generated by
JSDoc on Thu Feb 7 23:45:47 2008