gishur.gui2
Class DrawDependency

java.lang.Object
  |
  +--gishur.gui2.DrawDependency

public class DrawDependency
extends java.lang.Object

DrawDependencys are used for synchronizing the repainting of DrawAtoms at low level.

Version:
1.0
Author:
Thomas Wolf

Constructor Summary
DrawDependency()
          Creates a new DrawDependency.
 
Method Summary
 int length()
          Returns the number of dependent DrawAtoms.
 DrawAtom member(int i)
          Returns the i'th member of this DrawDependency.
 void register(DrawAtom target)
          Registers a DrawAtom as target.
 void register(DrawAtom[] target)
          Registers an array of DrawAtoms as targets.
 java.lang.String toString()
          Returns a string representation of the object.
 void unregister(DrawAtom target)
          Removes a registered DrawAtom from the target list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DrawDependency

public DrawDependency()
Creates a new DrawDependency.
Method Detail

toString

public java.lang.String toString()
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object.
Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object.

register

public void register(DrawAtom target)
Registers a DrawAtom as target.
Parameters:
target - new target DrawAtom

register

public void register(DrawAtom[] target)
Registers an array of DrawAtoms as targets.
Parameters:
target - new array of DrawAtoms

unregister

public void unregister(DrawAtom target)
Removes a registered DrawAtom from the target list.
Parameters:
target - DrawAtom to remove

length

public int length()
Returns the number of dependent DrawAtoms.
Returns:
the number of dependent DrawAtoms.

member

public DrawAtom member(int i)
Returns the i'th member of this DrawDependency.
Parameters:
i - the index position (between 0 and length()).
Returns:
the i'th member of this DrawDependency.