public final class Dimension2DFloat extends Dimension2D implements Serializable
| 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 |
|---|
Dimension2DFloat()
Creates an instance of
Dimension with a width of zero and a
height of zero. |
Dimension2DFloat(float width,
float height)
Constructs a
Dimension and initializes it to the specified
width and specified height. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
double |
getHeight() |
double |
getWidth() |
int |
hashCode() |
void |
setSize(double width,
double height) |
void |
setSize(float width,
float height) |
String |
toString()
Returns a
String that represents the value of this
Dimension2D. |
clone, setSizepublic float width
public float height
public Dimension2DFloat()
Dimension with a width of zero and a
height of zero.public Dimension2DFloat(float width,
float height)
Dimension and initializes it to the specified
width and specified height.width - the specified widthheight - the specified heightpublic double getWidth()
getWidth in class Dimension2Dpublic double getHeight()
getHeight in class Dimension2Dpublic void setSize(double width,
double height)
setSize in class Dimension2Dpublic void setSize(float width,
float height)
public String toString()
String that represents the value of this
Dimension2D.Copyright © 2016 Neurotechnology. All rights reserved.