| java.lang.Object org.jfree.ui.Size2D
Size2D | public class Size2D implements Cloneable,PublicCloneable,Serializable(Code) | | 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).
author: David Gilbert |
Field Summary | |
public double | height The height. | public double | width The width. |
Constructor Summary | |
public | Size2D() Creates a new instance with zero width and height. | public | Size2D(double width, double height) Creates a new instance with the specified width and height. |
Method Summary | |
public Object | clone() Returns a clone of this object. | public boolean | equals(Object obj) Compares this instance for equality with an arbitrary object.
Parameters: obj - the object (null permitted). | public double | getHeight() Returns the height. | public double | getWidth() Returns the width. | public void | setHeight(double height) Sets the height. | public void | setWidth(double width) Sets the width. | public String | toString() Returns a string representation of this instance, mostly used for
debugging purposes. |
height | public double height(Code) | | The height.
|
width | public double width(Code) | | The width.
|
Size2D | public Size2D()(Code) | | Creates a new instance with zero width and height.
|
Size2D | public Size2D(double width, double height)(Code) | | Creates a new instance with the specified width and height.
Parameters: width - the width. Parameters: height - the height. |
equals | public boolean equals(Object obj)(Code) | | Compares this instance for equality with an arbitrary object.
Parameters: obj - the object (null permitted). A boolean. |
getHeight | public double getHeight()(Code) | | Returns the height.
The height. |
getWidth | public double getWidth()(Code) | | Returns the width.
The width. |
setHeight | public void setHeight(double height)(Code) | | Sets the height.
Parameters: height - the height. |
setWidth | public void setWidth(double width)(Code) | | Sets the width.
Parameters: width - the width. |
toString | public String toString()(Code) | | Returns a string representation of this instance, mostly used for
debugging purposes.
A string. |
|
|