org.jfree.ui
public class FloatDimension extends Dimension2D implements Serializable
float values.
| Constructor Summary | |
|---|---|
| FloatDimension()
Creates a new dimension object with width and height set to zero. | |
| FloatDimension(FloatDimension fd)
Creates a new dimension that is a copy of another dimension.
| |
| FloatDimension(float width, float height)
Creates a new dimension.
| |
| Method Summary | |
|---|---|
| Object | clone()
Creates and returns a copy of this object.
|
| boolean | equals(Object o)
Tests this object for equality with another object.
|
| double | getHeight()
Returns the height.
|
| double | getWidth()
Returns the width.
|
| int | hashCode()
Returns a hash code.
|
| void | setHeight(double height)
Sets the height.
|
| void | setSize(double width, double height)
Sets the size of this Dimension object to the specified
width and height. |
| void | setWidth(double width)
Sets the width.
|
| String | toString()
Returns a string representation of the object. |
Parameters: fd the dimension to copy.
Parameters: width the width. height the height.
Returns: a clone of this instance.
See Also: java.lang.Cloneable
Parameters: o the other object.
Returns: true or false.
Returns: the height.
Returns: the width.
Returns: A hash code.
Parameters: height the height.
Dimension object to the specified
width and height. This method is included for completeness, to parallel
the java.awt.Component#getSize() getSize method of
java.awt.Component.
Parameters: width the new width for the Dimension object height the new height for the Dimension object
Parameters: width the width.
toString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
Returns: a string representation of the object.