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
| 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
|
draw2d.Rectangle
draw2d.Rectangle( width, height)
Version: 0.9.14
Author: Andreas Herz
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
setLineWidth
void setLineWidth( w)
Documentation generated by
JSDoc on Thu Feb 7 23:45:47 2008