public class LocationContext extends DefaultContext implements ILocationContext
Constructor and Description |
---|
LocationContext()
Creates a new
LocationContext . |
LocationContext(int x,
int y)
Creates a new
LocationContext . |
Modifier and Type | Method and Description |
---|---|
int |
getX()
Gets the x.
|
int |
getY()
Gets the y.
|
void |
setLocation(int x,
int y)
Sets the location.
|
void |
setX(int x)
Sets the x.
|
void |
setY(int y)
Sets the y.
|
java.lang.String |
toString() |
getProperty, getPropertyKeys, putProperty
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getProperty, getPropertyKeys, putProperty
public LocationContext(int x, int y)
LocationContext
.x
- the xy
- the ypublic LocationContext()
LocationContext
.public int getX()
ILocationContext
getX
in interface ILocationContext
public int getY()
ILocationContext
getY
in interface ILocationContext
public void setLocation(int x, int y)
x
- the xy
- the ypublic void setX(int x)
x
- The x to set.public void setY(int y)
y
- The y to set.public java.lang.String toString()
toString
in class DefaultContext