org.jfree.ui
public class Size2D extends Object implements Cloneable, PublicCloneable, Serializable
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).
| Field Summary | |
|---|---|
| double | height The height. |
| double | width The width. |
| Constructor Summary | |
|---|---|
| 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.
| |
| Method Summary | |
|---|---|
| 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.
|
Parameters: width the width. height the height.
Returns: A clone.
Throws: CloneNotSupportedException if the object cannot be cloned.
Parameters: obj the object (null permitted).
Returns: A boolean.
Returns: The height.
Returns: The width.
Parameters: height the height.
Parameters: width the width.
Returns: A string.