|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.draw2d.geometry.Rectangle | +--org.eclipse.draw2d.geometry.PrecisionRectangle
Field Summary | |
double |
preciseHeight
Double value for height |
double |
preciseWidth
Double value for width |
double |
preciseX
Double value for X |
double |
preciseY
Double value for Y |
Fields inherited from class org.eclipse.draw2d.geometry.Rectangle |
height, SINGLETON, width, x, y |
Constructor Summary | |
PrecisionRectangle(Rectangle rect)
Constructs a new PrecisionRectangle from the given integer Rectangle. |
Method Summary | |
Rectangle |
getCopy()
Returns a new Rectangle which has the exact same parameters as this Rectangle. |
void |
performScale(double factor)
Scales this object by the scale factor. |
void |
performTranslate(int dx,
int dy)
Translates this object horizontally by dx and vertically by
dy . |
Rectangle |
resize(Dimension sizeDelta)
Resizes this Rectangle by the Dimension provided as input and returns this for convenience. |
void |
setHeight(double value)
Sets the height. |
void |
setWidth(double value)
Sets the width. |
void |
setX(double value)
Sets the x value. |
void |
setY(double value)
Sets the y value. |
Rectangle |
translate(Point p)
Moves this Rectangle horizontally by the x value of the given Point and vertically by the y value of the given Point, then returns this Rectangle for convenience. |
Methods inherited from class org.eclipse.draw2d.geometry.Rectangle |
bottom, contains, contains, crop, equals, expand, expand, getBottom, getBottomLeft, getBottomRight, getCenter, getCropped, getExpanded, getExpanded, getIntersection, getLeft, getLocation, getPosition, getResized, getResized, getRight, getSize, getTop, getTopLeft, getTopRight, getTranslated, getTranslated, getTransposed, getUnion, intersect, intersects, isEmpty, resize, right, scale, scale, setBounds, setLocation, setLocation, setSize, setSize, shrink, toString, touches, translate, transpose, union, union, union, union, union |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public double preciseHeight
public double preciseWidth
public double preciseX
public double preciseY
Constructor Detail |
public PrecisionRectangle(Rectangle rect)
rect
- the base rectangleMethod Detail |
public Rectangle getCopy()
Rectangle
getCopy
in class Rectangle
Rectangle.getCopy()
public void performScale(double factor)
Translatable
performScale
in interface Translatable
performScale
in class Rectangle
Rectangle.performScale(double)
public void performTranslate(int dx, int dy)
Translatable
dx
and vertically by
dy
.
performTranslate
in interface Translatable
performTranslate
in class Rectangle
Rectangle.performTranslate(int, int)
public Rectangle resize(Dimension sizeDelta)
Rectangle
resize
in class Rectangle
sizeDelta
- Resize data as a Dimension
this
for convenienceRectangle.resize(org.eclipse.draw2d.geometry.Dimension)
public void setHeight(double value)
value
- the new heightpublic void setWidth(double value)
value
- the new widthpublic void setX(double value)
value
- the new x valuepublic void setY(double value)
value
- the new y valuepublic Rectangle translate(Point p)
Rectangle
translate
in class Rectangle
p
- Point which provides translation information
this
for convenienceRectangle.translate(org.eclipse.draw2d.geometry.Point)
|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |