Class AbstractEffect

  • All Implemented Interfaces:
    com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, Effect
    Direct Known Subclasses:
    DelayEffect, OpacityFadeEffect

    public abstract class AbstractEffect
    extends GuiseBoundPropertyObject
    implements Effect
    An abstract implementation of a component effect.
    Author:
    Garret Wilson
    • Field Summary

      • Fields inherited from class com.globalmentor.beans.BoundPropertyObject

        NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractEffect()
      Default constructor with no delay.
      AbstractEffect​(int delay)
      Delay constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getDelay()  
      void setDelay​(int newDelay)
      Sets the delay before the effect takes place.
      • Methods inherited from class com.globalmentor.beans.BoundPropertyObject

        addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPostponedPropertyChangeEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getForwardPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, getRepeatPropertyChangeListener, getRepeatVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, getVetoableChangeSupport, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractEffect

        public AbstractEffect()
        Default constructor with no delay.
      • AbstractEffect

        public AbstractEffect​(int delay)
        Delay constructor.
        Parameters:
        delay - The delay in milliseconds.
        Throws:
        java.lang.IllegalArgumentException - if the given delay is negative.
    • Method Detail

      • getDelay

        public int getDelay()
        Specified by:
        getDelay in interface Effect
        Returns:
        The delay, in milliseconds, before the effect takes place.
      • setDelay

        public void setDelay​(int newDelay)
        Description copied from interface: Effect
        Sets the delay before the effect takes place. This is a bound property of type Integer.
        Specified by:
        setDelay in interface Effect
        Parameters:
        newDelay - The delay, in milliseconds, before the effect takes place.
        See Also:
        Effect.DELAY_PROPERTY