com.mxgraph.swing.util
Class mxMorphing
- java.lang.Object
-
- com.mxgraph.util.mxEventSource
-
- com.mxgraph.swing.util.mxAnimation
-
- com.mxgraph.swing.util.mxMorphing
-
public class mxMorphing extends mxAnimation
Provides animation effects.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.mxgraph.util.mxEventSource
mxEventSource.mxIEventListener
-
-
Field Summary
-
Fields inherited from class com.mxgraph.swing.util.mxAnimation
DEFAULT_DELAY
-
-
Constructor Summary
Constructors Constructor and Description mxMorphing(mxGraphComponent graphComponent)Constructs a new morphing instance for the given graph.mxMorphing(mxGraphComponent graphComponent, int steps, double ease, int delay)Constructs a new morphing instance for the given graph.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetEase()Returns the easing for the movements.intgetSteps()Returns the number of steps for the animation.voidpaint(java.awt.Graphics g)voidsetCells(java.lang.Object[] value)Optional array of cells to be animated.voidsetEase(double value)Sets the easing for the movements.voidsetSteps(int value)Sets the number of steps for the animation.voidstopAnimation()Stops the animation by deleting the timer and fires mxEvent.DONE.voidupdateAnimation()Animation step.-
Methods inherited from class com.mxgraph.swing.util.mxAnimation
getDelay, isRunning, setDelay, startAnimation
-
Methods inherited from class com.mxgraph.util.mxEventSource
addListener, fireEvent, fireEvent, getEventSource, isEventsEnabled, removeListener, removeListener, setEventsEnabled, setEventSource
-
-
-
-
Constructor Detail
-
mxMorphing
public mxMorphing(mxGraphComponent graphComponent)
Constructs a new morphing instance for the given graph.
-
mxMorphing
public mxMorphing(mxGraphComponent graphComponent, int steps, double ease, int delay)
Constructs a new morphing instance for the given graph.
-
-
Method Detail
-
getSteps
public int getSteps()
Returns the number of steps for the animation.
-
setSteps
public void setSteps(int value)
Sets the number of steps for the animation.
-
getEase
public double getEase()
Returns the easing for the movements.
-
setEase
public void setEase(double value)
Sets the easing for the movements.
-
setCells
public void setCells(java.lang.Object[] value)
Optional array of cells to be animated. If this is not specified then all cells are checked and animated if they have been moved in the current transaction.
-
updateAnimation
public void updateAnimation()
Animation step.- Overrides:
updateAnimationin classmxAnimation
-
stopAnimation
public void stopAnimation()
Description copied from class:mxAnimationStops the animation by deleting the timer and fires mxEvent.DONE.- Overrides:
stopAnimationin classmxAnimation
-
paint
public void paint(java.awt.Graphics g)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG