public class SimpleCheckIcon extends CheckIcon
| Modifier and Type | Field and Description |
|---|---|
static java.util.List<javax.swing.ImageIcon> |
CHECK_STATES
Check icons for all states.
|
static java.util.List<javax.swing.ImageIcon> |
DISABLED_CHECK_STATES |
protected int |
step
Current step.
|
| Constructor and Description |
|---|
SimpleCheckIcon() |
| Modifier and Type | Method and Description |
|---|---|
void |
doStep()
Displays next step toward the next active state.
|
void |
finishTransition()
Finishes transition.
|
int |
getIconHeight()
Returns check icon height.
|
int |
getIconWidth()
Returns check icon width.
|
boolean |
isTransitionCompleted()
Returns whether current transition has reached its end or not.
|
void |
paintIcon(java.awt.Component c,
java.awt.Graphics2D g2d,
int x,
int y,
int w,
int h)
Paints check icon in the specified bounds.
|
void |
resetStep()
Resets steps according to currently set state and next state.
|
getNextState, getState, isEnabled, setEnabled, setNextState, setStatepublic static java.util.List<javax.swing.ImageIcon> CHECK_STATES
public static java.util.List<javax.swing.ImageIcon> DISABLED_CHECK_STATES
protected int step
public void doStep()
public void resetStep()
public boolean isTransitionCompleted()
isTransitionCompleted in class CheckIconpublic void finishTransition()
finishTransition in class CheckIconpublic int getIconWidth()
getIconWidth in class CheckIconpublic int getIconHeight()
getIconHeight in class CheckIconpublic void paintIcon(java.awt.Component c,
java.awt.Graphics2D g2d,
int x,
int y,
int w,
int h)