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

## Class draw2d.VectorFigure

    Object
       |
       +--draw2d.Figure
             |
             +--draw2d.Node
                   |
                   +--draw2d.VectorFigure

Direct Known Subclasses:
  draw2d.Oval

class draw2d.VectorFigure
extends draw2d.Node

Defined in VectorFigure.js
Version: 0.9.14
Author: Andreas Herz

Constructor Summary
`draw2d.VectorFigure ()`

Method Summary
`draw2d.Color` | `getBackgroundColor()` Get the background color of the node.
`Object` | `getColor()`
`void` | `setBackgroundColor( <draw2d.Color> color)` Set the new background color of the figure.
`void` | `setColor( <draw2d.Color> color)`
`void` | `setDimension( <int> w, <int> h)` Set the new width and height of the figure.
`void` | `setLineWidth( <int> w )`

Methods inherited from class draw2d.Node
`getPorts, getPort, addPort, removePort`

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, 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.VectorFigure

    draw2d.VectorFigure()

Version: 0.9.14
Author: Andreas Herz

Method Detail

### getBackgroundColor

    draw2d.Color getBackgroundColor()

Get the background color of the node.

### getColor

    Object getColor()

### setBackgroundColor

    void setBackgroundColor( <draw2d.Color> color)

Set the new background color of the figure. It is possible to hands over `null` to set the background transparent.

Parameters:

`color` - The new background color of the figure

### setColor

    void setColor( <draw2d.Color> color)

Parameters:

`color` - The new line / border color of the figure.

Deprecated
See:

- draw2d.Figure.setBorder()

### setDimension

    void setDimension( <int> w, <int> h)

Set the new width and height of the figure.

Parameters:

`w` - The new width of the figure

`h` - The new height of the figure

See:

- getMinWidth
- getMinHeight

### setLineWidth

    void setLineWidth( <int> w )

Parameters:

`w` - The new line width of the figure

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