de.frag.umlplugin.anim
Class AnimationFactory

java.lang.Object
  extended by de.frag.umlplugin.anim.AnimationFactory

public class AnimationFactory
extends java.lang.Object

Creates several types of animation objects.


Constructor Summary
AnimationFactory()
           
 
Method Summary
 AnimationObject exchangeGraph(com.intellij.openapi.graph.view.Graph2DView view, com.intellij.openapi.graph.view.Graph2D graph2D)
          Creates a an animation that exchanges the current graph.
 AnimationObject fadeIn(com.intellij.openapi.graph.view.EdgeRealizer realizer, long preferredDuration)
          Creates a fade-in animation for the given edge realizer.
 AnimationObject fadeIn(com.intellij.openapi.graph.view.NodeRealizer realizer, long preferredDuration)
          Creates a fade-in animation for the given node realizer.
 AnimationObject fadeOut(com.intellij.openapi.graph.view.EdgeRealizer realizer, long preferredDuration)
          Creates a fade-out animation for the given edge realizer.
 AnimationObject fadeOut(com.intellij.openapi.graph.view.NodeRealizer realizer, long preferredDuration)
          Creates a fade-out animation for the given node realizer.
 AnimationObject fitRectangle(com.intellij.openapi.graph.view.Graph2DView view, java.awt.Rectangle rectangle, long preferredDuration)
          Creates a an animation that fits the given rectangle in the specified view.
 AnimationObject morph(com.intellij.openapi.graph.view.EdgeRealizer source, com.intellij.openapi.graph.view.EdgeRealizer target, long preferredDuration)
          Creates a morph animation from the given source realizer to the specified target realizer.
 AnimationObject morph(com.intellij.openapi.graph.view.NodeRealizer source, com.intellij.openapi.graph.view.NodeRealizer target, long preferredDuration)
          Creates a morph animation from the given source realizer to the specified target realizer.
 AnimationObject zoom(com.intellij.openapi.graph.view.Graph2DView view, double zoom, long preferredDuration)
          Creates a an animation that zooms to the specified zoom factor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnimationFactory

public AnimationFactory()
Method Detail

fadeIn

@NotNull
public AnimationObject fadeIn(@Nullable
                                      com.intellij.openapi.graph.view.NodeRealizer realizer,
                                      long preferredDuration)
Creates a fade-in animation for the given node realizer.

Parameters:
realizer - realizer to fade in
preferredDuration - duration in milli seconds
Returns:
created animation object

fadeOut

@NotNull
public AnimationObject fadeOut(@Nullable
                                       com.intellij.openapi.graph.view.NodeRealizer realizer,
                                       long preferredDuration)
Creates a fade-out animation for the given node realizer.

Parameters:
realizer - realizer to fade out
preferredDuration - duration in milli seconds
Returns:
created animation object

fadeIn

@NotNull
public AnimationObject fadeIn(@Nullable
                                      com.intellij.openapi.graph.view.EdgeRealizer realizer,
                                      long preferredDuration)
Creates a fade-in animation for the given edge realizer.

Parameters:
realizer - realizer to fade in
preferredDuration - duration in milli seconds
Returns:
created animation object

fadeOut

@NotNull
public AnimationObject fadeOut(@Nullable
                                       com.intellij.openapi.graph.view.EdgeRealizer realizer,
                                       long preferredDuration)
Creates a fade-out animation for the given edge realizer.

Parameters:
realizer - realizer to fade out
preferredDuration - duration in milli seconds
Returns:
created animation object

morph

@NotNull
public AnimationObject morph(@Nullable
                                     com.intellij.openapi.graph.view.NodeRealizer source,
                                     @Nullable
                                     com.intellij.openapi.graph.view.NodeRealizer target,
                                     long preferredDuration)
Creates a morph animation from the given source realizer to the specified target realizer.

Parameters:
source - source realizer
target - target realizer
preferredDuration - duration in milli seconds
Returns:
created animation object

morph

@NotNull
public AnimationObject morph(@Nullable
                                     com.intellij.openapi.graph.view.EdgeRealizer source,
                                     @Nullable
                                     com.intellij.openapi.graph.view.EdgeRealizer target,
                                     long preferredDuration)
Creates a morph animation from the given source realizer to the specified target realizer.

Parameters:
source - source realizer
target - target realizer
preferredDuration - duration in milli seconds
Returns:
created animation object

exchangeGraph

@NotNull
public AnimationObject exchangeGraph(@NotNull
                                             com.intellij.openapi.graph.view.Graph2DView view,
                                             @NotNull
                                             com.intellij.openapi.graph.view.Graph2D graph2D)
Creates a an animation that exchanges the current graph.

Parameters:
view - replace graph in this view
graph2D - replace current graph by this graph
Returns:
created animation object

fitRectangle

@NotNull
public AnimationObject fitRectangle(@NotNull
                                            com.intellij.openapi.graph.view.Graph2DView view,
                                            @NotNull
                                            java.awt.Rectangle rectangle,
                                            long preferredDuration)
Creates a an animation that fits the given rectangle in the specified view.

Parameters:
view - fit rectangle in this vire
rectangle - rectangle
preferredDuration - duration in milli seconds
Returns:
created animation object

zoom

@NotNull
public AnimationObject zoom(@NotNull
                                    com.intellij.openapi.graph.view.Graph2DView view,
                                    double zoom,
                                    long preferredDuration)
Creates a an animation that zooms to the specified zoom factor.

Parameters:
view - zoom this view
zoom - target zoom factor
preferredDuration - duration in milli seconds
Returns:
created animation object