|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectDimension2D
DoubleDimension2D
public class DoubleDimension2D
Implements Dimension2D using double-precision floating point values.
| referencing/geotk-referencing (download) | View source code for this class |
| Field Summary | |
|---|---|
double |
height
The height. |
double |
width
The width. |
| Constructor Summary | |
|---|---|
DoubleDimension2D()
Constructs a new dimension initialized to (0,0). |
|
DoubleDimension2D(Dimension2D dimension)
Constructs a new dimension initialized to the given dimension. |
|
DoubleDimension2D(double w,
double h)
Constructs a new dimension with the specified values. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object object)
Compares this dimension with the given object for equality. |
double |
getHeight()
Returns the height. |
double |
getWidth()
Returns the width. |
int |
hashCode()
Returns a hash code value for this dimension. |
void |
setSize(double w,
double h)
Sets width and height for this dimension. |
String |
toString()
Returns a string representation of this dimension. |
| Methods inherited from class Dimension2D |
|---|
clone, setSize |
| Methods inherited from class Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public double width
public double height
| Constructor Detail |
|---|
public DoubleDimension2D()
public DoubleDimension2D(Dimension2D dimension)
dimension - The dimension to copy.
public DoubleDimension2D(double w,
double h)
w - The width.h - The height.| Method Detail |
|---|
public void setSize(double w,
double h)
setSize in class Dimension2Dw - The width.h - The height.public double getWidth()
getWidth in class Dimension2Dpublic double getHeight()
getHeight in class Dimension2Dpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object object)
equals in class Objectobject - The object to compare with.
true if this dimension is equal to the given object.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||