|
Eclipse Draw2d 3.3 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.draw2d.geometry.Dimension
org.eclipse.draw2d.geometry.PrecisionDimension
| Field Summary | |
double |
preciseHeight
The height in double precision. |
double |
preciseWidth
The width in double precision. |
| Fields inherited from class org.eclipse.draw2d.geometry.Dimension |
height, SINGLETON, width |
| Constructor Summary | |
PrecisionDimension()
Constructs a new precision dimension. |
|
PrecisionDimension(Dimension d)
Constructs a precision representation of the given dimension. |
|
PrecisionDimension(double width,
double height)
Constructs a new precision dimension with the given values. |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
Returns whether the input Object is equivalent to this Dimension. |
void |
performScale(double factor)
Scales this object by the scale factor. |
double |
preciseHeight()
Returns double height |
double |
preciseWidth()
Returns double width |
void |
updateInts()
Updates the integer fields using the precise versions. |
| Methods inherited from class org.eclipse.draw2d.geometry.Dimension |
contains, containsProper, equals, expand, expand, expand, getArea, getCopy, getDifference, getExpanded, getExpanded, getIntersected, getNegated, getScaled, getTransposed, getUnioned, hashCode, intersect, isEmpty, negate, performTranslate, scale, scale, setSize, shrink, toString, transpose, union |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public double preciseWidth
public double preciseHeight
| Constructor Detail |
public PrecisionDimension()
public PrecisionDimension(double width,
double height)
width - the widthheight - the heightpublic PrecisionDimension(Dimension d)
d - the reference dimension| Method Detail |
public void performScale(double factor)
Translatable
performScale in interface TranslatableperformScale in class DimensionDimension.performScale(double)public final void updateInts()
public double preciseWidth()
Dimensiondouble width
preciseWidth in class Dimensiondouble widthDimension.preciseWidth()public double preciseHeight()
Dimensiondouble height
preciseHeight in class Dimensiondouble heightDimension.preciseHeight()public boolean equals(java.lang.Object o)
Dimensiontrue if
the Object is a Dimension and its width and height are equal to this Dimension's width
and height, false otherwise.
equals in class Dimensiono - the Object being tested for equality
true if the given object is equal to this dimensionDimension.equals(java.lang.Object)
|
Eclipse Draw2d 3.3 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||