taxisrus.implementation
Class Point

java.lang.Object
  |
  +--taxisrus.implementation.Point

public class Point
extends Object

Point object used to draw points and dividing an area into zones This is only a helper class to create points

Author:
SegFaults

Constructor Summary
Point(int newX, int newY)
          Initialize point of the specified x and y
 
Method Summary
 void draw(Graphics g)
          Draw a representation of a point using a rectangle length 10 and width 10
 int getX()
          Gets the x coordinate of the point
 int getY()
          Gets the y coordinate of the point
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Point

public Point(int newX,
             int newY)
Initialize point of the specified x and y
Method Detail

draw

public void draw(Graphics g)
Draw a representation of a point using a rectangle length 10 and width 10

getX

public int getX()
Gets the x coordinate of the point
Returns:
x-coordinate in integer

getY

public int getY()
Gets the y coordinate of the point
Returns:
y-coordinate in integer


API documentation for build 958