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.


Variable Index

 o color
Holds the color that an edge or vertex will be turned to, if this AnimObject is of the appropriate type
 o DELAY
Indicates that the AnimObject represents a pause in the animation.
 o EDGE
Indicates that the AnimObject is associated with an edge or arc.
 o object
Holds the object used to enact this step in the animation.
 o objectType
Indicates what the AnimObject is Associate with.

See also
 o period
Indicates how long, in milliseconds, the animation should wait before proceeding to the next AnimObject in the animation.
 o TEXT
Indicates that the AnimObject is associated with a text message.
 o VERTEX
Indicates that the AnimObject is associated with a vertex.

Constructor Index

 o AnimObject(Object, int, Color, int)
Performs the following:

object = newObject;
objectType = newType;
period = animPeriod;
color = newColor;

Variables

 o VERTEX
 public static final int VERTEX
Indicates that the AnimObject is associated with a vertex.

 o EDGE
 public static final int EDGE
Indicates that the AnimObject is associated with an edge or arc.

 o DELAY
 public static final int DELAY
Indicates that the AnimObject represents a pause in the animation.

 o TEXT
 public static final int TEXT
Indicates that the AnimObject is associated with a text message.

 o objectType
 protected int objectType
Indicates what the AnimObject is Associate with.

See also

 o period
 protected int period
Indicates how long, in milliseconds, the animation should wait before proceeding to the next AnimObject in the animation.

 o object
 protected Object object
Holds the object used to enact this step in the animation. The data types are:

 o color
 protected Color color
Holds the color that an edge or vertex will be turned to, if this AnimObject is of the appropriate type

Constructors

 o AnimObject
 public AnimObject(Object newObject,
                   int newType,
                   Color newColor,
                   int animPeriod)
Performs the following:

object = newObject;
objectType = newType;
period = animPeriod;
color = newColor;