|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.geom.Dimension2D
com.virtuosotechnologies.lib.swing.FloatDimension
This is Dimension2D.Float.
Field Summary | |
float |
height
The height dimension; negative values can be used. |
float |
width
The width dimension; negative values can be used. |
Constructor Summary | |
FloatDimension()
Creates an instance of FloatDimension with a width
of zero and a height of zero. |
|
FloatDimension(Dimension2D d)
Creates an instance of Dimension whose width
and height are the same as for the specified dimension. |
|
FloatDimension(float w,
float h)
Constructs a Dimension and initializes
it to the specified width and specified height. |
Method Summary | |
boolean |
equals(Object obj)
Checks whether two dimension objects have equal values. |
double |
getHeight()
Returns the height of this dimension in double precision. |
double |
getWidth()
Returns the width of this dimension in double precision. |
int |
hashCode()
Returns the hash code for this FloatDimension . |
void |
setSize(double w,
double h)
Sets the size of this FloatDimension object to
the specified width and height in double precision. |
String |
toString()
Returns a string representation of the values of this FloatDimension object's height and
width fields. |
Methods inherited from class java.awt.geom.Dimension2D |
clone, setSize |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public float width
public float height
Constructor Detail |
public FloatDimension()
FloatDimension
with a width
of zero and a height of zero.
public FloatDimension(Dimension2D d)
Dimension
whose width
and height are the same as for the specified dimension.
d
- the specified dimension for the width
and
height
valuespublic FloatDimension(float w, float h)
Dimension
and initializes
it to the specified width and specified height.
w
- the specified widthh
- the specified heightMethod Detail |
public double getWidth()
public double getHeight()
public void setSize(double w, double h)
FloatDimension
object to
the specified width and height in double precision.
w
- the new width for the FloatDimension
objecth
- the new height for the FloatDimension
objectpublic boolean equals(Object obj)
public int hashCode()
FloatDimension
.
FloatDimension
public String toString()
FloatDimension
object's height
and
width
fields. This method is intended to be used only
for debugging purposes, and the content and format of the returned
string may vary between implementations. The returned string may be
empty but may not be null
.
Dimension
object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |