|
Jedit 4.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.bsu.cs.gui.AnimObject
public class 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()
Method to return final position of the vertex |
int |
getGridX0()
Method to find the x-limit of the grid layout |
int |
getGridY0()
Method to find the y-limit of the grid layout |
Point |
getPreviousVertexPosition()
Method to return previous position of the vertex |
boolean |
isChangingPosition()
Method to find if a vertexis changing is position |
void |
newVertexPosition(Point pos)
Method to set the vertex to its new position |
void |
previousVertexPosition(Point pos)
Method to set the vertex to its previous position |
void |
setGridX0Y0(int x,
int y)
Method that sets the grid to the given limits. |
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)
pos
- Point where the vertex previously was.public Point getPreviousVertexPosition()
public void newVertexPosition(Point pos)
pos
- Point where the vertex is to be placed.public Point getFinalVertexPosition()
public boolean isChangingPosition()
public void setGridX0Y0(int x, int y)
x
- x limit of the grid layout to be sety
- y limit of the grid layout to be setpublic int getGridX0()
public int getGridY0()
|
Jedit 4.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |