|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.clustermap.panel.anim.AnimationHandler
public class AnimationHandler
AnimationHandler is responsible for rendering an animation showing the transition between two Graphs. The actual rendering of the individual frames that make up the animation is delegated to the FrameRenderer.
| Constructor Summary | |
|---|---|
AnimationHandler(GraphPanel panel,
ClusterMap map)
Create a new AnimationHandler that uses the specified GraphPanel for rendering the animation frames. |
|
| Method Summary | |
|---|---|
void |
dispose()
|
void |
drawAnimationFrame(Graphics2D g,
boolean determineProgress)
Calculates the time progressed so far since the animation started and lets the FrameRenderer render the frame. |
Thread |
getAnimationThread()
|
GraphPanel |
getGraphPanel()
|
FrameRenderer |
getTransitionAnimator()
|
boolean |
isAnimationInProgress()
|
void |
startAnimation(Graph oldGraph,
Graph newGraph)
Starts an animation that will show the transition from an old Graph to a new Graph. |
void |
stopAnimation()
Removes the timer Thread and cleans up any intermediate data structures. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnimationHandler(GraphPanel panel,
ClusterMap map)
| Method Detail |
|---|
public void dispose()
public Thread getAnimationThread()
public boolean isAnimationInProgress()
public FrameRenderer getTransitionAnimator()
public GraphPanel getGraphPanel()
public void startAnimation(Graph oldGraph,
Graph newGraph)
public void stopAnimation()
public void drawAnimationFrame(Graphics2D g,
boolean determineProgress)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||