Eclipse Draw2d
3.1

org.eclipse.draw2d.geometry
Class PrecisionDimension

java.lang.Object
  extended byorg.eclipse.draw2d.geometry.Dimension
      extended byorg.eclipse.draw2d.geometry.PrecisionDimension
All Implemented Interfaces:
Cloneable, Serializable, Translatable

public class PrecisionDimension
extends Dimension

See Also:
Serialized Form

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.
 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

preciseWidth

public double preciseWidth
The width in double precision.


preciseHeight

public double preciseHeight
The height in double precision.

Constructor Detail

PrecisionDimension

public PrecisionDimension()
Constructs a new precision dimension.


PrecisionDimension

public PrecisionDimension(double width,
                          double height)
Constructs a new precision dimension with the given values.

Parameters:
width - the width
height - the height

PrecisionDimension

public PrecisionDimension(Dimension d)
Constructs a precision representation of the given dimension.

Parameters:
d - the reference dimension
Method Detail

performScale

public void performScale(double factor)
Description copied from interface: Translatable
Scales this object by the scale factor.

Specified by:
performScale in interface Translatable
Overrides:
performScale in class Dimension
See Also:
Dimension.performScale(double)

updateInts

public final void updateInts()
Updates the integer fields using the precise versions.


Eclipse Draw2d
3.1

Copyright (c) IBM Corp. and others 2000, 2005. All Rights Reserved.