Class SequenceEffect

java.lang.Object
org.eclipse.nebula.animation.effects.SequenceEffect
All Implemented Interfaces:
IEffect

public class SequenceEffect
extends java.lang.Object
implements IEffect
Run several effects one after another.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    (package private) int currentEffect  
    (package private) IEffect[] effects  
    (package private) long length  
    (package private) java.lang.Runnable onCancel  
    (package private) java.lang.Runnable onStop  
    (package private) long start  
  • Constructor Summary

    Constructors 
    Constructor Description
    SequenceEffect​(IEffect[] effects, java.lang.Runnable onStop, java.lang.Runnable onCancel)
    Run several effects one after another.
  • Method Summary

    Modifier and Type Method Description
    void cancel()
    Set the effect as done and run the cancel runnable.
    void doEffect​(long time)
    Apply effect to the target according to the given time.
    long getLength()
    Get effect length
    boolean isDone()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • SequenceEffect

      public SequenceEffect​(IEffect[] effects, java.lang.Runnable onStop, java.lang.Runnable onCancel)
      Run several effects one after another.

      Note :

      • onStop and onCancel runnables applies to the whole sequence effect.
      • Each effect can have its own onStop and onCancel.

      Parameters:
      effects -
      onStop -
      onCancel -
  • Method Details