public static class Dimension2D.Float extends Dimension2D
Dimension2D.Float| Modifier and Type | Field and Description |
|---|---|
float |
height
The height dimension; negative values can be used.
|
float |
width
The width dimension; negative values can be used.
|
| Constructor and Description |
|---|
Dimension2D.Float()
Constructs and initializes a
Dimension2D.Float. |
Dimension2D.Float(Dimension2D.Float dimension)
Constructs and initializes a
Dimension2D.Float from another one. |
Dimension2D.Float(float width,
float height)
Constructs and initializes a
Dimension2D.Float of the specified size. |
| Modifier and Type | Method and Description |
|---|---|
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 a hash code value for the object.
|
void |
setSize(double width,
double height)
Sets the size of this
Dimension object to the
specified width and height. |
String |
toString()
Returns a string representation of the object.
|
clone, setSizepublic float height
public float width
public Dimension2D.Float()
Dimension2D.Float.public Dimension2D.Float(Dimension2D.Float dimension)
Dimension2D.Float from another one.dimension - The dimension to copy values from.public Dimension2D.Float(float width,
float height)
Dimension2D.Float of the specified size.width - Width of the dimensionheight - Height of the dimensionpublic boolean equals(Object obj)
public double getHeight()
Dimension in double
precision.getHeight in class Dimension2DDimension.public double getWidth()
Dimension in double
precision.getWidth in class Dimension2DDimension.public int hashCode()
public void setSize(double width,
double height)
Dimension object to the
specified width and height.setSize in class Dimension2Dwidth - the new width for the Dimension
objectheight - the new height for the Dimension
objectCopyright © 2014. All rights reserved.