public final class Dimension2DDouble extends Dimension2D implements Serializable
| Modifier and Type | Field and Description |
|---|---|
double |
height
The height dimension; negative values can be used.
|
double |
width
The width dimension; negative values can be used.
|
| Constructor and Description |
|---|
Dimension2DDouble()
Creates an instance of
Dimension with a width of zero and a
height of zero. |
Dimension2DDouble(double width,
double 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) |
String |
toString()
Returns a
String that represents the value of this
Dimension2D. |
clone, setSizepublic double width
public double height
public Dimension2DDouble()
Dimension with a width of zero and a
height of zero.public Dimension2DDouble(double width,
double 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 String toString()
String that represents the value of this
Dimension2D.Copyright © 2016 Neurotechnology. All rights reserved.