java.lang.Object
furbelow.AnimatedIcon
furbelow.AbstractAnimatedIcon
furbelow.SpinningDial
- All Implemented Interfaces:
Icon
Provides a spinning disk of hash marks.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
This is a good delay between increasing the phase. -
Constructor Summary
ConstructorsConstructorDescriptionSpinningDial
(int w, int h) Not recommended to go below 16x16.SpinningDial
(int w, int h, int spokes) -
Method Summary
Modifier and TypeMethodDescriptionint
int
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.toString()
Methods inherited from class furbelow.AbstractAnimatedIcon
finalize, getFrame, getFrameCount, getFrameInterval, nextFrame, registerRepaintArea, setFrame, setFrameInterval
Methods inherited from class furbelow.AnimatedIcon
isAnimated, paintIcon, repaint
-
Field Details
-
SPIN_INTERVAL
public static final int SPIN_INTERVALThis is a good delay between increasing the phase.- See Also:
-
-
Constructor Details
-
SpinningDial
public SpinningDial() -
SpinningDial
public SpinningDial(int w, int h) Not recommended to go below 16x16. -
SpinningDial
public SpinningDial(int w, int h, int spokes)
-
-
Method Details
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeight
in interfaceIcon
- Specified by:
getIconHeight
in classAbstractAnimatedIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidth
in interfaceIcon
- Specified by:
getIconWidth
in classAbstractAnimatedIcon
-
getStrokeWidth
protected float getStrokeWidth(int size) Set the stroke width according to the size. -
paintFrame
Description copied from class:AbstractAnimatedIcon
Implement this method to paint the icon.- Specified by:
paintFrame
in classAbstractAnimatedIcon
-
toString
-