|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.pacbell.jfai.toh.ui.DiskMoveAnimator
public class DiskMoveAnimator
An instance of this class animates the move of a disk.
| Field Summary | |
|---|---|
static int |
MS_PER_S
Number of milliseconds in a second. |
| Constructor Summary | |
|---|---|
DiskMoveAnimator()
Create a new instance. |
|
| Method Summary | |
|---|---|
void |
animate(Point3f start,
Point3f end,
PinView endPinView,
TransformGroup targetGroup)
Performs the animation. |
Alpha |
getAlpha()
Gets the alpha. |
BranchGroup |
getBehaviorBranch()
Gets the branch group. |
static long |
getDuration()
Gets the move duration. |
static void |
setDuration(long aDuration)
Sets the move duration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MS_PER_S
| Constructor Detail |
|---|
public DiskMoveAnimator()
| Method Detail |
|---|
public static long getDuration()
public static void setDuration(long aDuration)
aDuration - the duration of a move in ms
public void animate(Point3f start,
Point3f end,
PinView endPinView,
TransformGroup targetGroup)
start - the start positionend - the end positionendPinView - the PinView of the pin where the move endstargetGroup - TransformGroup of the scene objects to animatepublic Alpha getAlpha()
public BranchGroup getBehaviorBranch()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||