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, putPropertyequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetProperty, getPropertyKeys, putPropertypublic LocationContext(int x,
int y)
LocationContext.x - the xy - the ypublic LocationContext()
LocationContext.public int getX()
ILocationContextgetX in interface ILocationContextpublic int getY()
ILocationContextgetY in interface ILocationContextpublic 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