abbot.editor.widgets
Class SpinningDialWaitIndicator

java.lang.Object
  extended by abbot.editor.widgets.AbstractComponentDecorator
      extended by abbot.editor.widgets.WaitIndicator
          extended by abbot.editor.widgets.SpinningDialWaitIndicator
All Implemented Interfaces:
ActionListener, KeyEventDispatcher, EventListener

public class SpinningDialWaitIndicator
extends WaitIndicator
implements ActionListener


Nested Class Summary
 
Nested classes/interfaces inherited from class abbot.editor.widgets.AbstractComponentDecorator
AbstractComponentDecorator.Painter
 
Field Summary
 
Fields inherited from class abbot.editor.widgets.AbstractComponentDecorator
DEFAULT_BOUNDS, TOP
 
Constructor Summary
SpinningDialWaitIndicator(JComponent target)
           
SpinningDialWaitIndicator(JComponent target, String text)
           
SpinningDialWaitIndicator(JFrame frame)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
          First fade the background, then spin the dial.
 void dispose()
          Remove the wait decoration.
 void paint(Graphics graphics)
          Fade the affected component to background, then apply a spinning wait indicator.
 void setText(String text)
           
 
Methods inherited from class abbot.editor.widgets.WaitIndicator
dispatchKeyEvent
 
Methods inherited from class abbot.editor.widgets.AbstractComponentDecorator
attach, clipDecorationBounds, getComponent, getDecorationBounds, getPainter, getToolTipText, getToolTipText, isShowing, isVisible, repaint, setCursor, setDecorationBounds, setDecorationBounds, setPainterBounds, setToolTipText, setVisible, synch, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpinningDialWaitIndicator

public SpinningDialWaitIndicator(JFrame frame)

SpinningDialWaitIndicator

public SpinningDialWaitIndicator(JComponent target)

SpinningDialWaitIndicator

public SpinningDialWaitIndicator(JComponent target,
                                 String text)
Method Detail

setText

public void setText(String text)

paint

public void paint(Graphics graphics)
Fade the affected component to background, then apply a spinning wait indicator.

Overrides:
paint in class WaitIndicator

dispose

public void dispose()
Remove the wait decoration.

Overrides:
dispose in class WaitIndicator

actionPerformed

public void actionPerformed(ActionEvent e)
First fade the background, then spin the dial.

Specified by:
actionPerformed in interface ActionListener


Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge