|
Jedit 4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.bsu.cs.gui.AnimObject
This object is produced by Algorithm subclasses
and placed into a Vector that is then processed by an instance of the
Animation class.
Field Summary | |
Color |
color
Holds the color that an edge or vertex will be turned to, if this AnimObject is of the appropriate type |
static int |
DELAY
Indicates that the AnimObject represents a pause in the animation. |
static int |
EDGE
Indicates that the AnimObject is associated with an edge or arc. |
Object |
object
Holds the object used to enact this step in the animation. |
int |
objectType
Indicates what the AnimObject is Associate with. |
int |
period
Indicates how long, in milliseconds, the animation should wait before proceeding to the next AnimObject in the animation. |
static int |
TEXT
Indicates that the AnimObject is associated with a text message. |
static int |
VERTEX
Indicates that the AnimObject is associated with a vertex. |
Constructor Summary | |
AnimObject(Object newObject,
int newType,
Color newColor,
int animPeriod)
|
Method Summary | |
Point |
getFinalVertexPosition()
|
int |
getGridX0()
|
int |
getGridY0()
|
Point |
getPreviousVertexPosition()
|
boolean |
isChangingPosition()
|
void |
newVertexPosition(Point pos)
|
void |
previousVertexPosition(Point pos)
|
void |
setGridX0Y0(int x,
int y)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int VERTEX
public static final int EDGE
public static final int DELAY
public static final int TEXT
public int objectType
public int period
public Object object
public Color color
Constructor Detail |
public AnimObject(Object newObject, int newType, Color newColor, int animPeriod)
Method Detail |
public void previousVertexPosition(Point pos)
public Point getPreviousVertexPosition()
public void newVertexPosition(Point pos)
public Point getFinalVertexPosition()
public boolean isChangingPosition()
public void setGridX0Y0(int x, int y)
public int getGridX0()
public int getGridY0()
|
Jedit 4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |