ciips.animation.tree
Class TreeEdgeList

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--ciips.animation.tree.TreeEdgeList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, DrawingObj, java.util.List, java.io.Serializable

public class TreeEdgeList
extends java.util.Vector
implements DrawingObj

See Also:
Serialized Form

Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
TreeEdgeList()
           
 
Method Summary
 void draw(java.awt.Graphics g)
          Paint method of the drawing object.
 int getX()
          Returns the x coordinate of the drawing object's reference point.
 int getY()
          Returns the y coordinate of the drawing object's reference point.
 void move(int x, int y)
          This method repositions the drawing object to the new location specified by the paramters.
 void reLink(TreeNode old_start, TreeNode new_start, TreeNode new_end)
           
 void reLink(TreeNode old_start, TreeNode old_end, TreeNode new_start, TreeNode new_end)
           
 java.lang.String toString()
           
 
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, 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
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

TreeEdgeList

public TreeEdgeList()
Method Detail

reLink

public void reLink(TreeNode old_start,
                   TreeNode new_start,
                   TreeNode new_end)

reLink

public void reLink(TreeNode old_start,
                   TreeNode old_end,
                   TreeNode new_start,
                   TreeNode new_end)

getY

public int getY()
Description copied from interface: DrawingObj
Returns the y coordinate of the drawing object's reference point.
Specified by:
getY in interface DrawingObj
Following copied from interface: ciips.animation.DrawingObj
Returns:
The y coordinate of the drawing object's reference point.

getX

public int getX()
Description copied from interface: DrawingObj
Returns the x coordinate of the drawing object's reference point.
Specified by:
getX in interface DrawingObj
Following copied from interface: ciips.animation.DrawingObj
Returns:
The x coordinate of the drawing object's reference point.

move

public void move(int x,
                 int y)
Description copied from interface: DrawingObj
This method repositions the drawing object to the new location specified by the paramters.
Specified by:
move in interface DrawingObj
Following copied from interface: ciips.animation.DrawingObj
Parameters:
x - The x coordinate of the drawing object's new position.
y - The y coordinate of the drawing object's new position.

draw

public void draw(java.awt.Graphics g)
Description copied from interface: DrawingObj
Paint method of the drawing object.
Specified by:
draw in interface DrawingObj
Following copied from interface: ciips.animation.DrawingObj
Parameters:
g - A reference to the graphical context.

toString

public java.lang.String toString()
Overrides:
toString in class java.util.Vector