Class AbstractEffect

java.lang.Object
com.globalmentor.beans.BoundPropertyObject
io.guise.framework.event.GuiseBoundPropertyObject
io.guise.framework.component.effect.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

    Fields inherited from interface io.guise.framework.component.effect.Effect

    DELAY_PROPERTY
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    int
     
    void
    setDelay(int newDelay)
    Sets the delay before the effect takes place.

    Methods inherited from class io.guise.framework.event.GuiseBoundPropertyObject

    getSession

    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 Details

    • AbstractEffect

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

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

    • 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: