ilog.views.sdm.renderer.animation
Class IlvAnimationRenderer

java.lang.Object
  extended by ilog.views.sdm.renderer.IlvSDMRenderer
      extended by ilog.views.sdm.renderer.IlvFilterSDMRenderer
          extended by ilog.views.sdm.renderer.animation.IlvAnimationRenderer
All Implemented Interfaces:
Serializable

public class IlvAnimationRenderer
extends IlvFilterSDMRenderer

The class 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.

Since:
JViews 4.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from class ilog.views.sdm.renderer.IlvFilterSDMRenderer
_renderer
 
Constructor Summary
IlvAnimationRenderer()
          Creates a new animation renderer with a null filtered renderer.
IlvAnimationRenderer(IlvSDMRenderer renderer)
          Creates a new animation renderer for a specified filtered renderer.
 
Method Summary
 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 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.
 
Methods inherited from class ilog.views.sdm.renderer.IlvFilterSDMRenderer
addLinkGraphic, addNodeGraphic, computeBBox, createLinkGraphic, createNodeGraphic, customize, getEncapsulatedGraphic, getFilteredRenderer, getGraphicProperty, getLinkConnectionRectangle, linkGraphicAdded, moveResizeNodeGraphic, nodeGraphicAdded, nodeGraphicBBoxChanged, prepareRendering, processServerAction, propertyChanged, removeAll, removeLinkGraphic, removeNodeGraphic, setFilteredRenderer, updateObjectProperties
 
Methods inherited from class ilog.views.sdm.renderer.IlvSDMRenderer
addViewListeners, callMoveResizeNodeGraphic, convert, convert, getAlias, getAuxiliaryBean, getAuxiliaryBeans, getEngine, getLocation, getParameter, needsViewListeners, removeViewListeners, setAlias, setEngine, setLayerName, setParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvAnimationRenderer

public IlvAnimationRenderer(IlvSDMRenderer renderer)
Creates a new animation renderer for a specified filtered renderer.

Parameters:
renderer - The filtered renderer.

IlvAnimationRenderer

public IlvAnimationRenderer()
Creates a new animation renderer with a null filtered renderer.

Method Detail

setAnimationRate

public void setAnimationRate(int rate)
Sets the number of animation steps.

Parameters:
rate - The new animation rate.

getAnimationRate

public int getAnimationRate()
Returns the number of animation steps.


setAnimationDelay

public void setAnimationDelay(int delay)
Sets the delay between two steps of the animation.

Parameters:
delay - The new animation delay.

getAnimationDelay

public int getAnimationDelay()
Returns the delay between two steps of the animation.


isResizingObjects

public boolean isResizingObjects()
Returns true if the animator resizes the objects.

See Also:
setResizingObjects(boolean)

setResizingObjects

public 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. If resizing is false, the objects are only moved, and not resized.

The default value is true.

Parameters:
resizing - The Boolean value that determines whether the objects must be resized or not.

renderingDone

public void renderingDone(IlvSDMEngine engine)
This method performs the animation. It first takes a snapshot of the object positions, then calls its superclass (which calls the renderingDone method of the other filtered renderers), and finally displays an animation showing how the objects have moved.

Overrides:
renderingDone in class IlvFilterSDMRenderer
Parameters:
engine - The SDM engine.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.