org.jfree.ui
Class FloatDimension
Dimension2D
org.jfree.ui.FloatDimension
- Serializable
extends Dimension2D
implements Serializable
A dimension object specified using float
values.
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.
|
FloatDimension
public FloatDimension()
Creates a new dimension object with width and height set to zero.
FloatDimension
public FloatDimension(float width,
float height)
Creates a new dimension.
width
- the width.height
- the height.
FloatDimension
public FloatDimension(FloatDimension fd)
Creates a new dimension that is a copy of another dimension.
fd
- the dimension to copy.
clone
public Object clone()
Creates and returns a copy of this object.
- a clone of this instance.
equals
public boolean equals(Object o)
Tests this object for equality with another object.
getHeight
public double getHeight()
Returns the height.
getWidth
public double getWidth()
Returns the width.
hashCode
public int hashCode()
Returns a hash code.
setHeight
public void setHeight(double height)
Sets the height.
setSize
public void setSize(double width,
double height)
Sets the size of this Dimension
object to the specified
width and height. This method is included for completeness, to parallel
the getSize
method of
java.awt.Component
.
width
- the new width for the Dimension
objectheight
- the new height for the Dimension
object
setWidth
public void setWidth(double width)
Sets the width.
toString
public String toString()
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.