|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.geom.Dimension2D
org.pentaho.reporting.libraries.base.util.FloatDimension
public class FloatDimension
A dimension object specified using 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. |
Methods inherited from class java.awt.geom.Dimension2D |
---|
setSize |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FloatDimension()
public FloatDimension(FloatDimension fd)
fd
- the dimension to copy.public FloatDimension(float width, float height)
width
- the width.height
- the height.Method Detail |
---|
public double getWidth()
getWidth
in class Dimension2D
public double getHeight()
getHeight
in class Dimension2D
public void setWidth(double width)
width
- the width.public void setHeight(double height)
height
- the height.public void setSize(double width, double height)
Dimension
object to the specified width and height. This method is included
for completeness, to parallel the getSize
method of Component
.
setSize
in class Dimension2D
width
- the new width for the Dimension
objectheight
- the new height for the Dimension
objectpublic Object clone()
clone
in class Dimension2D
Cloneable
public String toString()
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.
toString
in class Object
public boolean equals(Object o)
equals
in class Object
o
- the other object.
true
or false
.public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |