Class Point

java.lang.Object
  extended byPoint

public class Point
extends Object

A class to describe a point on a cartesian geometrical grid.

Version:
1.0
Author:
J. David Fleig

Constructor Summary
Point()
          Default Constructor for objects of class Point
Point(int x, int y)
          Constructor for objects of class Point
 
Method Summary
 int getX()
          Accessor method for x
 int getY()
          Accessor method for y
 void setX(int x)
          Mutator method for x
 void setY(int y)
          Mutator method for y
 String toString()
          toString method for converting this object to a string form
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Point

public Point()
Default Constructor for objects of class Point


Point

public Point(int x,
             int y)
Constructor for objects of class Point

Method Detail

getX

public int getX()
Accessor method for x

Returns:
x

getY

public int getY()
Accessor method for y

Returns:
y

setX

public void setX(int x)
Mutator method for x

Parameters:
x - The new x location

setY

public void setY(int y)
Mutator method for y

Parameters:
y - The new y location

toString

public String toString()
toString method for converting this object to a string form

Returns:
(x,y)