org.geotools.resources.geometry
Class XDimension2D.Float

java.lang.Object
  extended byjava.awt.geom.Dimension2D
      extended byorg.geotools.resources.geometry.XDimension2D.Float
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Enclosing class:
XDimension2D

public static final class XDimension2D.Float
extends java.awt.geom.Dimension2D
implements java.io.Serializable

Implement float version of Dimension2D. This class is temporary; it will disappear if JavaSoft implements and .

Version:
$Id: XDimension2D.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux
See Also:
Serialized Form

Field Summary
 float height
          The height.
 float width
          The width.
 
Constructor Summary
XDimension2D.Float()
          Construct a new dimension initialized to (0,0).
XDimension2D.Float(float w, float h)
          Construct a new dimension with the specified values.
 
Method Summary
 double getHeight()
          Returns the height.
 double getWidth()
          Returns the width.
 void setSize(double w, double h)
          Set width and height for this dimension.
 java.lang.String toString()
          Returns a string representation of this dimension.
 
Methods inherited from class java.awt.geom.Dimension2D
clone, setSize
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

width

public float width
The width.


height

public float height
The height.

Constructor Detail

XDimension2D.Float

public XDimension2D.Float()
Construct a new dimension initialized to (0,0).


XDimension2D.Float

public XDimension2D.Float(float w,
                          float h)
Construct a new dimension with the specified values.

Parameters:
w - The width.
h - The height.
Method Detail

setSize

public void setSize(double w,
                    double h)
Set width and height for this dimension.

Parameters:
w - The width.
h - The height.

getWidth

public double getWidth()
Returns the width.


getHeight

public double getHeight()
Returns the height.


toString

public java.lang.String toString()
Returns a string representation of this dimension.



Copyright © GeoTools. All Rights Reserved.