cmsc433.p3
Class STPath

java.lang.Object
  extended by cmsc433.p3.STPath
All Implemented Interfaces:
Path

public class STPath
extends java.lang.Object
implements Path

The STPath class is a non-thread-safe implementation of the Path class.


Constructor Summary
STPath()
           
 
Method Summary
 void addPoint(Point p)
          Adds a point to the end of this path.
 java.util.List<Point> getPoints()
          Returns the list of points that define this path.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

STPath

public STPath()
Method Detail

getPoints

public java.util.List<Point> getPoints()
Description copied from interface: Path
Returns the list of points that define this path.

Specified by:
getPoints in interface Path
Returns:
the list of points defining this path

addPoint

public void addPoint(Point p)
Adds a point to the end of this path.

Specified by:
addPoint in interface Path
Parameters:
p - - the point to add