Class chain

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--chain

public class chain
extends java.util.Vector

this class holds a vector of points which are to be connected in sequece by edges

See Also:
Serialized Form

Field Summary
 int currentpoint
           
 int numpoints
           
 java.awt.geom.Point2D.Double[] points
           
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
chain()
           
chain(int numpoints)
           
 
Method Summary
 chain copy()
          creates and returns a copy of itself
 void display(java.awt.Graphics g)
          display the group of points connected by edges
 java.awt.geom.Point2D.Double getPoint(int index)
          gets a point at a certain index
 boolean isConverted()
          returns whether the current chain has been converted by warping
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

currentpoint

public int currentpoint

numpoints

public int numpoints

points

public java.awt.geom.Point2D.Double[] points
Constructor Detail

chain

public chain()

chain

public chain(int numpoints)
Method Detail

getPoint

public java.awt.geom.Point2D.Double getPoint(int index)
gets a point at a certain index

copy

public chain copy()
creates and returns a copy of itself

isConverted

public boolean isConverted()
returns whether the current chain has been converted by warping

display

public void display(java.awt.Graphics g)
display the group of points connected by edges