public class IlvAnimationRenderer extends IlvFilterSDMRenderer
IlvAnimationRenderer
is a
filtering renderer that displays an animation showing
how the nodes of the graph have moved during the last
rendering step.
The animation is especially useful when you use an
IlvGraphLayoutRenderer
.
The animation will show how the nodes have been placed
by the graph layout algorithm.
_renderer
PSEUDOCLASS_PREFIX
Constructor and Description |
---|
IlvAnimationRenderer()
Creates a new animation renderer with a
null
filtered renderer. |
IlvAnimationRenderer(IlvSDMRenderer renderer)
Creates a new animation renderer for a specified
filtered renderer.
|
Modifier and Type | Method and Description |
---|---|
int |
getAnimationAccelerationRate()
Returns the number of animation accelerating and deaccelerating steps.
|
int |
getAnimationDelay()
Returns the delay between two steps of the animation.
|
int |
getAnimationRate()
Returns the number of animation steps.
|
boolean |
isResizingObjects()
Returns
true if the animator resizes the objects. |
void |
renderingDone(IlvSDMEngine engine)
This method performs the animation.
|
void |
setAnimationAccelerationRate(int rate)
Sets the number of animation accelerating and decelerating steps.
|
void |
setAnimationDelay(int delay)
Sets the delay between two steps of the animation.
|
void |
setAnimationRate(int rate)
Sets the number of animation steps.
|
void |
setResizingObjects(boolean resizing)
If
resizing is true , the width
and height of the graphic objects are changed linearly
from the initial size to the final size. |
addLinkGraphic, addNodeGraphic, computeBBox, createLinkGraphic, createNodeGraphic, customize, getEncapsulatedGraphic, getFilteredRenderer, getGraphicProperty, getLinkConnectionRectangle, linkGraphicAdded, moveResizeNodeGraphic, nodeGraphicAdded, nodeGraphicBBoxChanged, prepareRendering, processServerAction, propertiesChanged, removeAll, removeLinkGraphic, removeNodeGraphic, setFilteredRenderer, updateObjectProperties
addViewListeners, callMoveResizeNodeGraphic, convert, convert, getAlias, getAuxiliaryBean, getAuxiliaryBeans, getEngine, getLinkConnectionRectangle, getLocation, getParameter, needsViewListeners, propertyChanged, removeViewListeners, setAlias, setEngine, setLayerName, setParameter
public IlvAnimationRenderer(IlvSDMRenderer renderer)
renderer
- The filtered renderer.public IlvAnimationRenderer()
null
filtered renderer.public void setAnimationRate(int rate)
rate
- The new animation rate.public int getAnimationRate()
public void setAnimationAccelerationRate(int rate)
rate
- The new acceleration rate.public int getAnimationAccelerationRate()
public void setAnimationDelay(int delay)
delay
- The new animation delay.public int getAnimationDelay()
public boolean isResizingObjects()
true
if the animator resizes the objects.setResizingObjects(boolean)
public void setResizingObjects(boolean resizing)
resizing
is true
, the width
and height of the graphic objects are changed linearly
from the initial size to the final size. If resizing
is false
, the objects are only moved, and not resized.
The default value is true
.
resizing
- The Boolean value that determines whether the objects
must be resized or not.public void renderingDone(IlvSDMEngine engine)
renderingDone
method of the other filtered renderers), and finally displays an
animation showing how the objects have moved.renderingDone
in class IlvFilterSDMRenderer
engine
- The SDM engine.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.