|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--Coordinate
Coordinate is a class that can encapsulate location information.
Defined in test.js
Field Summary | |
int |
x
The x portion of the Coordinate |
int |
y
The y portion of the Coordinate |
Constructor Summary | |
Coordinate
(<int> x, <int> y)
Create a new Coordinate instance based on x and y grid data. |
Method Summary | |
int
|
getX()
Gets the x portion of the Coordinate. |
int
|
getY()
Get the y portion of the Coordinate. |
void
|
setX(<int> x)
Sets the x portion of the Coordinate. |
void
|
setY(<int> y)
Sets the y portion of the Coordinate. |
Field Detail |
int x
int y
Constructor Detail |
Coordinate(<int> x, <int> y)
x
- The optional x portion of the Coordinate
y
- The optinal y portion of the Coordinate
Method Detail |
int getX()
int getY()
void setX(<int> x)
x
- The x value to set
void setY(<int> y)
y
- The y value to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |