public class AnimationFacade extends java.lang.Object implements IAnimationListener
Modifier and Type | Class and Description |
---|---|
static class |
AnimationFacade.Type |
Constructor and Description |
---|
AnimationFacade(ProcessEditor parent)
provides an animation facade which is able to
handle animations for the given ProcessEditor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAnimationListener(AnimationListener listener)
events
|
void |
addProcessNode(ProcessNode node,
int animationTime,
int delay,
AnimationFacade.Type type)
adds the given ProcessNode to the model.
|
void |
addProcessObject(ProcessObject object,
int animationTime)
adds the given ProcessObject to the model by fading it in
using the alpha property
|
void |
addProcessObject(ProcessObject object,
int animationTime,
int delay)
adds the given ProcessObject to the model by fading it in
using the alpha property
|
void |
animateChart(ProcessNode node,
ProcessNode newState,
int animationTime,
int delay)
works just as animateNode, but is also able to adjust the value of the data
of charts
|
void |
animateEdge(ProcessEdge edge,
ProcessEdge newEdge,
int animationTime,
int delay)
The newState Object will not be added to the model and just serves as a container
for the animation information.
|
void |
animateNode(ProcessNode node,
ProcessNode newState,
int animationTime,
int delay)
The newStateObject will not be added to the model and just serves as a container
for the animation information
Supported Properties:
- Position
- Size
- Color
|
void |
animateObject(ProcessObject object,
ProcessObject newObject,
int animationTime,
int delay) |
void |
animateSubstitution(ProcessObject original,
ProcessObject substituteBy,
int animationTime,
int delay) |
void |
animateSubstitution(ProcessObject original,
ProcessObject substituteBy,
int animationTime,
int delay,
boolean adaptEnvironment) |
void |
animationFinished(NodeAnimator node)
internal method called when a NodeAnimator is finished, so that
a delete operation can remove the corresponding node from the model.
|
void |
end()
ends the Thread and make this Animator useless
|
void |
finishAnimationSequence() |
long |
getAnimationSequenceID() |
Animator |
getAnimator()
retrieves the underlying animator which can be used for
more complicated handling issues
|
void |
removeAnimationListener(AnimationListener listener) |
void |
removeProcessObject(ProcessObject object,
int animationTime)
adds the given ProcessObject to the model by fading it out
using the alpha property
|
void |
removeProcessObject(ProcessObject object,
int animationTime,
int delay) |
void |
removeProcessObject(ProcessObject object,
int animationTime,
int delay,
boolean includeEdges)
adds the given ProcessObject to the model by fading it out
using the alpha property
|
void |
start()
creates a new Animator and makes it ready for animation
|
public AnimationFacade(ProcessEditor parent)
parent
- public void start()
public void end()
public void finishAnimationSequence()
public void addProcessObject(ProcessObject object, int animationTime)
object
- animationTime
- public void addProcessObject(ProcessObject object, int animationTime, int delay)
object
- animationTime
- public void addProcessNode(ProcessNode node, int animationTime, int delay, AnimationFacade.Type type)
object
- animationTime
- public void removeProcessObject(ProcessObject object, int animationTime)
object
- animationTime
- public void removeProcessObject(ProcessObject object, int animationTime, int delay)
public void removeProcessObject(ProcessObject object, int animationTime, int delay, boolean includeEdges)
object
- animationTime
- public void animateNode(ProcessNode node, ProcessNode newState, int animationTime, int delay)
node
- newState
- animationTime
- delay
- public void animateSubstitution(ProcessObject original, ProcessObject substituteBy, int animationTime, int delay, boolean adaptEnvironment)
public void animateSubstitution(ProcessObject original, ProcessObject substituteBy, int animationTime, int delay)
public void animateChart(ProcessNode node, ProcessNode newState, int animationTime, int delay)
public void animateEdge(ProcessEdge edge, ProcessEdge newEdge, int animationTime, int delay)
node
- newState
- animationTime
- delay
- public void animateObject(ProcessObject object, ProcessObject newObject, int animationTime, int delay)
public Animator getAnimator()
public void animationFinished(NodeAnimator node)
animationFinished
in interface IAnimationListener
public long getAnimationSequenceID()
public void addAnimationListener(AnimationListener listener)
public void removeAnimationListener(AnimationListener listener)