|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.Vector | +--chain
this class holds a vector of points which are to be connected in sequece by edges
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 |
public int currentpoint
public int numpoints
public java.awt.geom.Point2D.Double[] points
Constructor Detail |
public chain()
public chain(int numpoints)
Method Detail |
public java.awt.geom.Point2D.Double getPoint(int index)
public chain copy()
public boolean isConverted()
public void display(java.awt.Graphics g)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |