|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.epseelon.mobimap.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 | |
|---|---|
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 |
|---|
clone, 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
java.lang.NullPointerException - if d is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||