All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----gerken.vehicles.DisplayCoordinates
The DisplayCoordinates class provides the same behavior as Point, but can also return the integer x and y values. The coordinate system for DisplayCoordinates puts the origin at the upper left hand corner.
This software is provided on an as-is basis and is copyright Chris Gerken. The only rights granted to you are to enjoy and learn from this software.
Return the x coordinate
.Return the y coordinate
Return a text representation of the receiver.
public DisplayCoordinates(int x,
int y)
public int getX()
Return the x coordinate
.
public int getY()
Return the y coordinate
public String toString()
Return a text representation of the receiver.
All Packages Class Hierarchy This Package Previous Next Index