|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.laf.checkbox.CheckIcon com.alee.laf.checkbox.SimpleCheckIcon
public class SimpleCheckIcon
Check icon for simple checkbox.
Field Summary | |
---|---|
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. |
Fields inherited from class com.alee.laf.checkbox.CheckIcon |
---|
enabled, nextState, state |
Constructor Summary | |
---|---|
SimpleCheckIcon()
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.alee.laf.checkbox.CheckIcon |
---|
getNextState, getState, isEnabled, setEnabled, setNextState, setState |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.util.List<javax.swing.ImageIcon> CHECK_STATES
public static java.util.List<javax.swing.ImageIcon> DISABLED_CHECK_STATES
protected int step
Constructor Detail |
---|
public SimpleCheckIcon()
Method Detail |
---|
public void doStep()
doStep
in class CheckIcon
public void resetStep()
resetStep
in class CheckIcon
public boolean isTransitionCompleted()
isTransitionCompleted
in class CheckIcon
public void finishTransition()
finishTransition
in class CheckIcon
public int getIconWidth()
getIconWidth
in class CheckIcon
public int getIconHeight()
getIconHeight
in class CheckIcon
public void paintIcon(java.awt.Component c, java.awt.Graphics2D g2d, int x, int y, int w, int h)
paintIcon
in class CheckIcon
c
- component to paint check icon ontog2d
- graphics contextx
- icon X coordinatey
- icon Y coordinatew
- icon widthh
- icon height
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |