|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--draw2d.Point
|
+--draw2d.Dimension
Defined in Dimension.js
Version: 0.9.14
Author: Andreas Herz
| Field Summary | |
Object |
type
|
| Fields inherited from class draw2d.Point |
type
|
| Constructor Summary | |
draw2d.Dimension
( x, y, w, h)
|
|
| Method Summary | |
draw2d.Point
|
equals( o)
|
int
|
getBottom()
|
draw2d.Point
|
getBottomRight()
|
draw2d.Point
|
getCenter()
|
int
|
getHeight()
|
int
|
getRight()
|
draw2d.Point
|
getTopLeft()
|
int
|
getWidth()
|
boolean
|
isEmpty()
Returns true if this Rectangle's width or height is less than or
equal to 0.
|
draw2d.Dimension
|
resize( <int> dw, <int> dh)
Resizes this Rectangle by the values supplied as input and returns this for convenience. |
draw2d.Dimension
|
setBounds( rect)
Sets the parameters of this Rectangle from the Rectangle passed in and returns this for convenience. |
draw2d.Dimension
|
translate( <int> dx, <int> dy)
Moves this Rectangle horizontally by dx and vertically by dy, then returns this Rectangle for convenience. |
| Methods inherited from class draw2d.Point |
getX, getY, getPosition, getDistance, getTranslated
|
| Field Detail |
Object type
| Constructor Detail |
draw2d.Dimension( x, y, w, h)
| Method Detail |
draw2d.Point equals( o)
int getBottom()
draw2d.Point getBottomRight()
draw2d.Point getCenter()
int getHeight()
int getRight()
draw2d.Point getTopLeft()
int getWidth()
boolean isEmpty()
true if this Rectangle's width or height is less than or
equal to 0.draw2d.Dimension resize( <int> dw, <int> dh)
dw - Amount by which width is to be resized
dh - Amount by which height is to be resized
draw2d.Dimension setBounds( rect)
Rectangle - providing the bounding values
draw2d.Dimension translate( <int> dx, <int> dy)
dx - Shift along X axis
dy - Shift along Y axis
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||