|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jfree.ui.Size2D
public class Size2D
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).
| Field Summary | |
|---|---|
double |
height
The height. |
double |
width
The width. |
| Constructor Summary | |
|---|---|
Size2D()
Creates a new instance with zero width and height. |
|
Size2D(double width,
double height)
Creates a new instance with the specified width and height. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a clone of this object. |
boolean |
equals(java.lang.Object obj)
Compares this instance for equality with an arbitrary object. |
double |
getHeight()
Returns the height. |
double |
getWidth()
Returns the width. |
void |
setHeight(double height)
Sets the height. |
void |
setWidth(double width)
Sets the width. |
java.lang.String |
toString()
Returns a string representation of this instance, mostly used for debugging purposes. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public double width
public double height
| Constructor Detail |
|---|
public Size2D()
public Size2D(double width,
double height)
width - the width.height - the height.| Method Detail |
|---|
public double getWidth()
public void setWidth(double width)
width - the width.public double getHeight()
public void setHeight(double height)
height - the height.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object (null permitted).
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface PublicCloneableclone in class java.lang.Objectjava.lang.CloneNotSupportedException - if the object cannot be cloned.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||