|
||||||||||
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 com.alee.extended.checkbox.TristateCheckIcon
public class TristateCheckIcon
Check icon for tristate checkbox.
Field Summary | |
---|---|
protected java.lang.ref.WeakReference<WebTristateCheckBox> |
checkBox
Tristate checkbox which uses this icon. |
protected int |
checkStep
Current check step. |
protected static java.awt.Color[] |
colors
|
protected static java.awt.Color[] |
disabledColors
|
protected static float[] |
fractions
Painting constants. |
protected int |
mixedStep
Current mixed step. |
Fields inherited from class com.alee.laf.checkbox.SimpleCheckIcon |
---|
CHECK_STATES, DISABLED_CHECK_STATES, step |
Fields inherited from class com.alee.laf.checkbox.CheckIcon |
---|
enabled, nextState, state |
Constructor Summary | |
---|---|
TristateCheckIcon(WebTristateCheckBox checkBox)
Constructs new tristate check icon. |
Method Summary | |
---|---|
void |
doStep()
Displays next step toward the next active state. |
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. |
void |
setNextState(CheckState nextState)
Sets next active state. |
Methods inherited from class com.alee.laf.checkbox.SimpleCheckIcon |
---|
finishTransition, getIconHeight, getIconWidth |
Methods inherited from class com.alee.laf.checkbox.CheckIcon |
---|
getNextState, getState, isEnabled, setEnabled, setState |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final float[] fractions
protected static final java.awt.Color[] colors
protected static final java.awt.Color[] disabledColors
protected java.lang.ref.WeakReference<WebTristateCheckBox> checkBox
protected int checkStep
protected int mixedStep
Constructor Detail |
---|
public TristateCheckIcon(WebTristateCheckBox checkBox)
checkBox
- tristate checkbox which uses this iconMethod Detail |
---|
public void setNextState(CheckState nextState)
setNextState
in class CheckIcon
nextState
- next active statepublic void doStep()
doStep
in class SimpleCheckIcon
public void resetStep()
resetStep
in class SimpleCheckIcon
public boolean isTransitionCompleted()
isTransitionCompleted
in class SimpleCheckIcon
public void paintIcon(java.awt.Component c, java.awt.Graphics2D g2d, int x, int y, int w, int h)
paintIcon
in class SimpleCheckIcon
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 |