abbot.editor.widgets
Class SpinningDial

java.lang.Object
  extended by abbot.editor.widgets.AnimatedIcon
      extended by abbot.editor.widgets.AbstractAnimatedIcon
          extended by abbot.editor.widgets.SpinningDial
All Implemented Interfaces:
Icon

public class SpinningDial
extends AbstractAnimatedIcon

Provides a spinning disk of hash marks.


Field Summary
static int SPIN_INTERVAL
          This is a good delay between increasing the phase.
 
Constructor Summary
SpinningDial()
           
SpinningDial(int diameter)
          Not recommended to go below 16 pixels.
SpinningDial(int w, int h)
          Not recommended to go below 16x16.
SpinningDial(int w, int h, int spokes)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
protected  float getStrokeWidth(int size)
          Set the stroke width according to the size.
protected  void paintFrame(Component c, Graphics graphics, int x, int y)
          Implement this method to paint the icon.
 String toString()
           
 
Methods inherited from class abbot.editor.widgets.AbstractAnimatedIcon
finalize, getFrame, getFrameCount, getFrameInterval, nextFrame, registerRepaintArea, setFrame, setFrameInterval
 
Methods inherited from class abbot.editor.widgets.AnimatedIcon
isAnimated, paintIcon, repaint
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SPIN_INTERVAL

public static final int SPIN_INTERVAL
This is a good delay between increasing the phase.

See Also:
Constant Field Values
Constructor Detail

SpinningDial

public SpinningDial()

SpinningDial

public SpinningDial(int diameter)
Not recommended to go below 16 pixels.


SpinningDial

public SpinningDial(int w,
                    int h)
Not recommended to go below 16x16.


SpinningDial

public SpinningDial(int w,
                    int h,
                    int spokes)
Method Detail

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface Icon
Specified by:
getIconHeight in class AbstractAnimatedIcon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface Icon
Specified by:
getIconWidth in class AbstractAnimatedIcon

getStrokeWidth

protected float getStrokeWidth(int size)
Set the stroke width according to the size.


paintFrame

protected void paintFrame(Component c,
                          Graphics graphics,
                          int x,
                          int y)
Description copied from class: AbstractAnimatedIcon
Implement this method to paint the icon.

Specified by:
paintFrame in class AbstractAnimatedIcon

toString

public String toString()
Overrides:
toString in class Object


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

SourceForge