zinger.nibbles.drivers
Class Path

java.lang.Object
  |
  +--zinger.nibbles.drivers.Path

public class Path
extends java.lang.Object


Field Summary
static ObjectRecycler PATH_RECYCLER
           
protected static ObjectRecycler POINT_RECYCLER
           
protected  java.util.List queue
           
 java.util.List roQueue
           
 
Constructor Summary
protected Path()
           
 
Method Summary
 void addKeyPoint(int x, int y)
           
 boolean appendPath(Path path)
          Appends the contents of the specified path at the end of this one.
 void clear()
           
 boolean insertPathBeforePoint(Path path, java.awt.Point p)
          Inserts the contents of the specified path before p.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

PATH_RECYCLER

public static final ObjectRecycler PATH_RECYCLER

POINT_RECYCLER

protected static final ObjectRecycler POINT_RECYCLER

queue

protected final java.util.List queue

roQueue

public final java.util.List roQueue
Constructor Detail

Path

protected Path()
Method Detail

addKeyPoint

public void addKeyPoint(int x,
                        int y)

insertPathBeforePoint

public boolean insertPathBeforePoint(Path path,
                                     java.awt.Point p)
Inserts the contents of the specified path before p.
Parameters:
path - the path to be inserted
p - the point object in the path
Returns:
whether the operation was successful (will fail if p was not found)

appendPath

public boolean appendPath(Path path)
Appends the contents of the specified path at the end of this one.
Parameters:
path - the path to be appended
Returns:
whether the operation was successful

clear

public void clear()