public class SpinningDial extends AbstractAnimatedIcon
| Modifier and Type | Field and Description |
|---|---|
static int |
SPIN_INTERVAL
This is a good delay between increasing the phase.
|
| Constructor and Description |
|---|
SpinningDial() |
SpinningDial(int w,
int h)
Not recommended to go below 16x16.
|
SpinningDial(int w,
int h,
int spokes) |
| Modifier and Type | Method and Description |
|---|---|
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() |
finalize, getFrame, getFrameCount, getFrameInterval, nextFrame, registerRepaintArea, setFrame, setFrameIntervalisAnimated, paintIcon, repaintpublic static final int SPIN_INTERVAL
public SpinningDial()
public SpinningDial(int w,
int h)
public SpinningDial(int w,
int h,
int spokes)
public int getIconHeight()
getIconHeight in interface IcongetIconHeight in class AbstractAnimatedIconpublic int getIconWidth()
getIconWidth in interface IcongetIconWidth in class AbstractAnimatedIconprotected float getStrokeWidth(int size)
protected void paintFrame(Component c, Graphics graphics, int x, int y)
AbstractAnimatedIconpaintFrame in class AbstractAnimatedIconCopyright © 2023. All rights reserved.