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

## Class draw2d.Rectangle

    Object
       |
       +--draw2d.Figure
             |
             +--draw2d.Rectangle

Direct Known Subclasses:
  draw2d.Port, draw2d.LineEndResizeHandle, draw2d.ResizeHandle, draw2d.LineStartResizeHandle

class draw2d.Rectangle
extends draw2d.Figure

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

Constructor Summary
`draw2d.Rectangle ( width, height)`

Method Summary
`draw2d.Color` | `getBackgroundColor()` The background color of the rectangle.
`draw2d.Color` | `getColor()`
`int` | `getHeight()`
`int` | `getLineWidth()`
`int` | `getWidth()` Returns the width of the figure.
`void` | `setBackgroundColor( <draw2d.Color> color)`
`void` | `setColor( <draw2d.Color> color)` Set the line color of the rectangle.
`void` | `setDimension( <int> w , <int> h)` Set the new width and height of the figure.
`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, setPosition, isResizeable, setResizeable, isSelectable, setSelectable, isStrechable, isDeleteable, setDeleteable, setCanSnapToHelper, getCanSnapToHelper, getSnapToGridAnchor, setSnapToGridAnchor, getBounds, getY, getX, getAbsoluteY, getAbsoluteX, onKeyDown, getPosition, isOver, attachMoveListener, detachMoveListener`

Constructor Detail

### draw2d.Rectangle

    draw2d.Rectangle( width, height)

Version: 0.9.14
Author: Andreas Herz

Method Detail

### getBackgroundColor

    draw2d.Color getBackgroundColor()

The background color of the rectangle.

### getColor

    draw2d.Color getColor()

### getHeight

    int getHeight()

### getLineWidth

    int getLineWidth()

### getWidth

    int getWidth()

Returns the width of the figure.

### setBackgroundColor

    void setBackgroundColor( <draw2d.Color> color)

Parameters:

`color` - The new background color of the rectangle.

### setColor

    void setColor( <draw2d.Color> color)

Set the line color of the rectangle. You can hand over null to enforce a transparent line

Parameters:

`color` - The new line color of the rectangle

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

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