Class AnimObject
java.lang.Object
|
+----AnimObject
- public class AnimObject
- extends Object
AnimObject.java
by Aaron Nall
Tue Jun 30 20:01:18 GMT 1998
This object is produced by Algorithm subclasses and placed into a Vector that is then processed by an instance of the Animation class.
-
color
- Holds the color that an edge or vertex will be turned to, if this
AnimObject is of the appropriate type
-
DELAY
- Indicates that the AnimObject represents a pause in the animation.
-
EDGE
- Indicates that the AnimObject is associated with an edge or arc.
-
object
- Holds the object used to enact this step in the animation.
-
objectType
- Indicates what the AnimObject is Associate with.
See also
-
period
- Indicates how long, in milliseconds, the animation should wait
before proceeding to the next AnimObject in the animation.
-
TEXT
- Indicates that the AnimObject is associated with a text message.
-
VERTEX
- Indicates that the AnimObject is associated with a vertex.
-
AnimObject(Object, int, Color, int)
- Performs the following:
object = newObject;
objectType = newType;
period = animPeriod;
color = newColor;
VERTEX
public static final int VERTEX
- Indicates that the AnimObject is associated with a vertex.
EDGE
public static final int EDGE
- Indicates that the AnimObject is associated with an edge or arc.
DELAY
public static final int DELAY
- Indicates that the AnimObject represents a pause in the animation.
TEXT
public static final int TEXT
- Indicates that the AnimObject is associated with a text message.
objectType
protected int objectType
- Indicates what the AnimObject is Associate with.
See also
period
protected int period
- Indicates how long, in milliseconds, the animation should wait
before proceeding to the next AnimObject in the animation.
object
protected Object object
- Holds the object used to enact this step in the animation. The data types are:
- A Point holds the indices for the endpoints of an edge
- A String holds text to be displayed
- An Integer holds the index for a vertex
- A null is used for delays
color
protected Color color
- Holds the color that an edge or vertex will be turned to, if this
AnimObject is of the appropriate type
AnimObject
public AnimObject(Object newObject,
int newType,
Color newColor,
int animPeriod)
- Performs the following:
object = newObject;
objectType = newType;
period = animPeriod;
color = newColor;