org.jfree.ui
Class Size2D
- Cloneable, PublicCloneable, Serializable
A simple class for representing the dimensions of an object. It would be
better to use Dimension2D
, but this class is broken on various
JDK releases (particularly JDK 1.3.1, refer to bugs 4189446 and 4976448 on
the Java bug parade).
Size2D() - Creates a new instance with zero width and height.
|
Size2D(double width, double height) - Creates a new instance with the specified width and height.
|
Object | clone() - Returns a clone of this object.
|
boolean | equals(Object obj) - Compares this instance for equality with an arbitrary object.
|
double | getHeight() - Returns the height.
|
double | getWidth() - Returns the width.
|
void | setHeight(double height) - Sets the height.
|
void | setWidth(double width) - Sets the width.
|
String | toString() - Returns a string representation of this instance, mostly used for
debugging purposes.
|
height
public double height
The height.
width
public double width
The width.
Size2D
public Size2D()
Creates a new instance with zero width and height.
Size2D
public Size2D(double width,
double height)
Creates a new instance with the specified width and height.
width
- the width.height
- the height.
clone
public Object clone()
throws CloneNotSupportedException
Returns a clone of this object.
- clone in interface PublicCloneable
equals
public boolean equals(Object obj)
Compares this instance for equality with an arbitrary object.
obj
- the object (null
permitted).
getHeight
public double getHeight()
Returns the height.
getWidth
public double getWidth()
Returns the width.
setHeight
public void setHeight(double height)
Sets the height.
setWidth
public void setWidth(double width)
Sets the width.
toString
public String toString()
Returns a string representation of this instance, mostly used for
debugging purposes.