All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gerken.vehicles.DisplayCoordinates

java.lang.Object
   |
   +----gerken.vehicles.DisplayCoordinates

public class DisplayCoordinates
extends Object

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.


Constructor Index

 o DisplayCoordinates(int, int)
This method written by Chris Gerken (gerken

Method Index

 o getX()

Return the x coordinate

.
 o getY()

Return the y coordinate

 o toString()

Return a text representation of the receiver.

Constructors

 o DisplayCoordinates
 public DisplayCoordinates(int x,
                           int y)
This method written by Chris Gerken (gerken@mindspring.com).

Parameters:
x - int
y - int

Methods

 o getX
 public int getX()

Return the x coordinate

.

Returns:
int
 o getY
 public int getY()

Return the y coordinate

Returns:
int
 o toString
 public String toString()

Return a text representation of the receiver.

Returns:
java.lang.String
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index