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 intThis 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 TypeMethodDescriptionintintprotected floatgetStrokeWidth(int size) Set the stroke width according to the size.protected voidpaintFrame(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, setFrameIntervalMethods 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:
getIconHeightin interfaceIcon- Specified by:
getIconHeightin classAbstractAnimatedIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidthin interfaceIcon- Specified by:
getIconWidthin classAbstractAnimatedIcon
-
getStrokeWidth
protected float getStrokeWidth(int size) Set the stroke width according to the size. -
paintFrame
Description copied from class:AbstractAnimatedIconImplement this method to paint the icon.- Specified by:
paintFramein classAbstractAnimatedIcon
-
toString
-