|
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
public class 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(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 dimensionMethod Detail |
---|
public void performScale(double factor)
Translatable
performScale
in interface Translatable
performScale
in class Dimension
factor
- The scale factorDimension.performScale(double)
public final void updateInts()
public double preciseWidth()
Dimension
double
width
preciseWidth
in class Dimension
double
widthDimension.preciseWidth()
public double preciseHeight()
Dimension
double
height
preciseHeight
in class Dimension
double
heightDimension.preciseHeight()
public boolean equals(Object o)
Dimension
true
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 Dimension
o
- 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 |