|
mxGraph 1.10.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mxgraph.util.mxEventSource com.mxgraph.swing.util.mxAnimation
public class mxAnimation
Baseclass for all timer-based animations. Fires mxEvent.DONE when the stopAnimation method is called. Implement updateAnimation for the actual animation or listen to mxEvent.EXECUTE.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.mxgraph.util.mxEventSource |
---|
mxEventSource.mxIEventListener |
Field Summary | |
---|---|
static int |
DEFAULT_DELAY
Specifies the default delay for animations in ms. |
protected int |
delay
Default is DEFAULT_DELAY. |
protected Timer |
timer
Time instance that is used for timing the animation. |
Fields inherited from class com.mxgraph.util.mxEventSource |
---|
eventListeners, eventsEnabled, eventSource |
Constructor Summary | |
---|---|
mxAnimation()
Constructs a new animation instance with the given repaint delay. |
|
mxAnimation(int delay)
Constructs a new animation instance with the given repaint delay. |
Method Summary | |
---|---|
int |
getDelay()
Returns the delay for the animation. |
void |
setDelay(int value)
Sets the delay for the animation. |
void |
startAnimation()
Starts the animation by repeatedly invoking updateAnimation. |
void |
stopAnimation()
Stops the animation by deleting the timer and fires mxEvent.DONE. |
void |
updateAnimation()
Hook for subclassers to implement the animation. |
Methods inherited from class com.mxgraph.util.mxEventSource |
---|
addListener, fireEvent, fireEvent, getEventSource, isEventsEnabled, removeListener, removeListener, setEventsEnabled, setEventSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int DEFAULT_DELAY
protected int delay
protected Timer timer
Constructor Detail |
---|
public mxAnimation()
public mxAnimation(int delay)
Method Detail |
---|
public int getDelay()
public void setDelay(int value)
public void startAnimation()
public void updateAnimation()
public void stopAnimation()
|
mxGraph 1.10.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |