Class SetColorEffect

  • All Implemented Interfaces:
    IEffect

    public class SetColorEffect
    extends AbstractEffect
    Progressively changes the color of an object.
    • Field Detail

      • src

        org.eclipse.swt.graphics.Color src
      • dest

        org.eclipse.swt.graphics.Color dest
      • diffR

        int diffR
      • diffG

        int diffG
      • diffB

        int diffB
    • Constructor Detail

      • SetColorEffect

        public SetColorEffect​(SetColorEffect.IColoredObject control,
                              org.eclipse.swt.graphics.Color src,
                              org.eclipse.swt.graphics.Color dest,
                              long lengthMilli,
                              IMovement movement,
                              java.lang.Runnable onStop,
                              java.lang.Runnable onCancel)

        Create a new effect on object control.

        Source and destination color will not be disposed during or after the animation. All other temporary colors created by this effect will be disposed automatically.

        Parameters:
        control -
        src -
        dest -
        lengthMilli -
        movement -
        onStop - can be a Runnable or null
        onCancel - can be a Runnable or null