Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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()

Version: 0.9.14
Author: Andreas Herz

Method Detail

### addPort

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

Parameters:

`port` - The new port to add.

`x` - The x position.

`y` - The y position.

### 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.

See:

- draw2d.Port.getName()
- draw2d.Port.setName()

### 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.

Parameters:

`color` -

### setColor

    void setColor( color)

Deprecated
See:

- draw2d.Figure.setBorder()

### setLineWidth

    void setLineWidth( w)

Deprecated

Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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