|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.geom.Dimension2D
org.geotools.resources.geometry.XDimension2D.Float
public static final class XDimension2D.Float
Implement float version of Dimension2D
. This class is
temporary; it will disappear if JavaSoft implements
Dimension2D.Float
and Dimension2D.Double
.
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 |
---|
public float width
public float height
Constructor Detail |
---|
public XDimension2D.Float()
public XDimension2D.Float(float w, float h)
w
- The width.h
- The height.Method Detail |
---|
public void setSize(double w, double h)
setSize
in class java.awt.geom.Dimension2D
w
- The width.h
- The height.public double getWidth()
getWidth
in class java.awt.geom.Dimension2D
public double getHeight()
getHeight
in class java.awt.geom.Dimension2D
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |