|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.molwind.model.LayeredPosition
public class LayeredPosition
LayeredPosition provides an implementation of a world postion.
| Field Summary | |
|---|---|
static LayeredPosition |
ORIGIN
|
| Constructor Summary | |
|---|---|
LayeredPosition(double newX,
double newY,
int newLayer)
LayeredPosition constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
Indicates whether some other layered position is "equal to" this one. |
int |
getLayer()
Get the Layer value. |
double |
getX()
Get the X value. |
double |
getY()
Get the Y value. |
int |
hashCode()
Returns a hash code value for this layered position. |
boolean |
isOrigin()
Tests whether this object represents the origin position (0,0,0). |
void |
setLayer(int newLayer)
Set the Layer value. |
void |
setX(int newX)
Set the X value. |
void |
setY(int newY)
Set the Y value. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final LayeredPosition ORIGIN
| Constructor Detail |
|---|
public LayeredPosition(double newX,
double newY,
int newLayer)
newX - the X valuenewY - the Y valuenewLayer - the Layer value| Method Detail |
|---|
public double getX()
getX in interface Placepublic void setX(int newX)
newX - the new X valuepublic double getY()
getY in interface Placepublic void setY(int newY)
newY - the new Y valuepublic int getLayer()
public void setLayer(int newLayer)
newLayer - the new Layer valuepublic boolean isOrigin()
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - the reference object with which to compare
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
this.toString().
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||