| |
|
| java.lang.Object java.awt.geom.Dimension2D org.jfree.ui.FloatDimension
FloatDimension | public class FloatDimension extends Dimension2D implements Serializable(Code) | | A dimension object specified using float values.
author: Thomas Morgner |
Constructor Summary | |
public | FloatDimension() Creates a new dimension object with width and height set to zero. | public | FloatDimension(FloatDimension fd) Creates a new dimension that is a copy of another dimension. | public | FloatDimension(float width, float height) Creates a new dimension. |
Method Summary | |
public Object | clone() Creates and returns a copy of this object. | public boolean | equals(Object o) Tests this object for equality with another object.
Parameters: o - the other object. | public double | getHeight() Returns the height. | public double | getWidth() Returns the width. | public int | hashCode() Returns a hash code. | public void | setHeight(double height) Sets the height. | public void | setSize(double width, double height) Sets the size of this Dimension object to the specified
width and height. | public void | setWidth(double width) Sets the width. | public String | toString() Returns a string representation of the object. |
FloatDimension | public FloatDimension()(Code) | | Creates a new dimension object with width and height set to zero.
|
FloatDimension | public FloatDimension(FloatDimension fd)(Code) | | Creates a new dimension that is a copy of another dimension.
Parameters: fd - the dimension to copy. |
FloatDimension | public FloatDimension(float width, float height)(Code) | | Creates a new dimension.
Parameters: width - the width. Parameters: height - the height. |
equals | public boolean equals(Object o)(Code) | | Tests this object for equality with another object.
Parameters: o - the other object. true or false . |
getHeight | public double getHeight()(Code) | | Returns the height.
the height. |
getWidth | public double getWidth()(Code) | | Returns the width.
the width. |
hashCode | public int hashCode()(Code) | | Returns a hash code.
A hash code. |
setHeight | public void setHeight(double height)(Code) | | Sets the height.
Parameters: height - the height. |
setSize | public void setSize(double width, double height)(Code) | | Sets the size of this 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 Parameters: height - the new height for the Dimension object |
setWidth | public void setWidth(double width)(Code) | | Sets the width.
Parameters: width - the width. |
toString | public String toString()(Code) | | Returns a string representation of the object. In general, the
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.
a string representation of the object. |
|
|
|