public class NodeAnimation
extends java.lang.Object
Constructor and Description |
---|
NodeAnimation(org.processmining.models.graphbased.directed.AbstractDirectedGraphNode node,
java.awt.geom.Rectangle2D rect) |
Modifier and Type | Method and Description |
---|---|
void |
addKeyframe(NodeAnimationKeyframe keyframe)
Inserts the given key frame at its proper place.
|
void |
finalizeData()
Finalizes the key frames.
|
int |
getActivityBetween(long start,
long end) |
double |
getHeight() |
NodeAnimationKeyframe |
getKeyframe(long time) |
org.processmining.models.graphbased.directed.AbstractDirectedGraphNode |
getNode() |
double |
getPositionX() |
double |
getPositionY() |
double |
getWidth() |
public NodeAnimation(org.processmining.models.graphbased.directed.AbstractDirectedGraphNode node, java.awt.geom.Rectangle2D rect)
public org.processmining.models.graphbased.directed.AbstractDirectedGraphNode getNode()
public double getPositionX()
public double getPositionY()
public double getWidth()
public double getHeight()
public int getActivityBetween(long start, long end)
start
- The start time of the given interval (inclusive).end
- The end time of the given interval (exclusive).public void finalizeData()
public void addKeyframe(NodeAnimationKeyframe keyframe)
keyframe
- The given key frame.public NodeAnimationKeyframe getKeyframe(long time)
time
- The given time.