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, setFrameInterval
isAnimated, paintIcon, repaint
public 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 Icon
getIconHeight
in class AbstractAnimatedIcon
public int getIconWidth()
getIconWidth
in interface Icon
getIconWidth
in class AbstractAnimatedIcon
protected float getStrokeWidth(int size)
protected void paintFrame(Component c, Graphics graphics, int x, int y)
AbstractAnimatedIcon
paintFrame
in class AbstractAnimatedIcon
Copyright © 2023. All rights reserved.