|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.clustermap.panel.anim.FrameRenderer
public class FrameRenderer
A FrameRenderer is responsible for drawing single animation frames when requested by an AnimationHandler.
| Nested Class Summary | |
|---|---|
static class |
FrameRenderer.AlphaImageKey
|
| Constructor Summary | |
|---|---|
FrameRenderer(RenderingProperties properties)
|
|
| Method Summary | |
|---|---|
void |
cleanUp()
Instructs the FrameRenderer to clean up any intermediate results resulting from the prepareFor method. |
Rectangle |
getCurrentBounds()
Returns the current bounding box of the graph. |
long |
getNeededDuration()
Returns how long the animation will take, in milliseconds. |
void |
paint(Graphics2D g)
Paints a single animation frame using the specified Graphics2D context. |
void |
prepareFor(Graph oldGraph,
Graph newGraph,
long allowedDuration)
Prepare the FrameRenderer for rendering an animated transition between the two Graphs, with the specified maximum duration in milliseconds. |
void |
prepareForFrame(long timeProgressed)
Prepares the FrameRenderer for painting the frame corresponding with the specified timestamp. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FrameRenderer(RenderingProperties properties)
| Method Detail |
|---|
public void prepareFor(Graph oldGraph,
Graph newGraph,
long allowedDuration)
public void cleanUp()
public void prepareForFrame(long timeProgressed)
public Rectangle getCurrentBounds()
public void paint(Graphics2D g)
public long getNeededDuration()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||