|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.geom.Dimension2D
public abstract class Dimension2D
This stores a dimension in 2-dimensional space - a width (along the x-axis) and height (along the y-axis). The storage is left to subclasses.
| Constructor Summary | |
|---|---|
protected |
Dimension2D()
The default constructor. |
| Method Summary | |
|---|---|
Object |
clone()
Create a new dimension of the same run-time type with the same contents as this one. |
abstract double |
getHeight()
Get the height of this dimension. |
abstract double |
getWidth()
Get the width of this dimension. |
void |
setSize(Dimension2D d)
Set the size of this dimension to the requested value. |
abstract void |
setSize(double w,
double h)
Set the size of this dimension to the requested values. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Dimension2D()
| Method Detail |
|---|
public abstract double getWidth()
public abstract double getHeight()
public abstract void setSize(double w,
double h)
w - the new widthh - the new heightpublic void setSize(Dimension2D d)
d - the dimension containing the new values
NullPointerException - if d is nullpublic Object clone()
clone in class ObjectOutOfMemoryError - If there is not enough memory available.Cloneable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||