|
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 | |
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, 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()
|
Eclipse Draw2d 3.3 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||