Class WakefulComponent

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable

    public class WakefulComponent
    extends JComponent
    An animated component which can be in one of four WakefulComponent.VisualStates. The visual state is presented by different degrees of component opacity. State transitions are done smoothly and can be controlled by various time settings.

    
       INACTIVE   |  ACTIVATING    |      ACTIVE        |   DEACTIVATING   | INACTIVE
                  |mouseEntered           |mouseExited
      ------------|----------------|------|-------------|------------------|----------
                  |activationTime  |      |waitingTime  |deactivationTime  |
                                   _____________________
                              ___/                      \_____
                         ___/                                 \_____
                    ___/                                            \_____
      ____________/                                                       \__________
    
     

    Clients can observe state changes by listening to changes of the visualState property.

    Version:
    $Revision$ $Date$
    See Also:
    Serialized Form
    • Constructor Detail

      • WakefulComponent

        public WakefulComponent()
      • WakefulComponent

        public WakefulComponent​(JComponent component)
    • Method Detail

      • getActivationTime

        public int getActivationTime()
      • setActivationTime

        public void setActivationTime​(int activationTime)
      • getDeactivationTime

        public int getDeactivationTime()
      • setDeactivationTime

        public void setDeactivationTime​(int deactivationTime)
      • getWaitingTime

        public int getWaitingTime()
      • setWaitingTime

        public void setWaitingTime​(int waitingTime)
      • getCurrentAlpha

        public float getCurrentAlpha()
      • setCurrentAlpha

        protected void setCurrentAlpha​(float currentAlpha)
      • getMinAlpha

        public float getMinAlpha()
      • setMinAlpha

        public void setMinAlpha​(float minAlpha)
      • getMaxAlpha

        public float getMaxAlpha()
      • setMaxAlpha

        public void setMaxAlpha​(float maxAlpha)
      • setBounds

        public void setBounds​(int x,
                              int y,
                              int width,
                              int height)
        Overrides:
        setBounds in class Component
      • setEnabled

        public void setEnabled​(boolean enabled)
        Overrides:
        setEnabled in class JComponent
      • remove

        public void remove​(int index)
        Overrides:
        remove in class Container