|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 valueMethod Detail |
---|
public double getX()
getX
in interface Place
public void setX(int newX)
newX
- the new X valuepublic double getY()
getY
in interface Place
public 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.Object
object
- the reference object with which to compare
public java.lang.String toString()
toString
in class java.lang.Object
public 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 |