|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.laf.checkbox.CheckIcon
public abstract class CheckIcon
Special class that represents checkbox icon. It can be used to render checkbox component icon.
Field Summary | |
---|---|
protected boolean |
enabled
Whether should paint enabled check icon or not. |
protected CheckState |
nextState
Next active state. |
protected CheckState |
state
Currently active state. |
Constructor Summary | |
---|---|
CheckIcon()
|
Method Summary | |
---|---|
abstract void |
doStep()
Displays next step toward the next active state. |
abstract void |
finishTransition()
Finishes transition. |
abstract int |
getIconHeight()
Returns check icon height. |
abstract int |
getIconWidth()
Returns check icon width. |
CheckState |
getNextState()
Returns next active state. |
CheckState |
getState()
Returns currently active state. |
boolean |
isEnabled()
Returns whether should paint enabled check icon or not. |
abstract boolean |
isTransitionCompleted()
Returns whether current transition has reached its end or not. |
abstract 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. |
abstract void |
resetStep()
Resets steps according to currently set state and next state. |
void |
setEnabled(boolean enabled)
Sets whether should paint enabled check icon or not. |
void |
setNextState(CheckState nextState)
Sets next active state. |
void |
setState(CheckState state)
Sets currently active check state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean enabled
protected CheckState state
protected CheckState nextState
Constructor Detail |
---|
public CheckIcon()
Method Detail |
---|
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- whether should paint enabled check icon or notpublic CheckState getState()
public void setState(CheckState state)
state
- new active check statepublic CheckState getNextState()
public void setNextState(CheckState nextState)
nextState
- next active statepublic abstract void doStep()
public abstract void resetStep()
public abstract boolean isTransitionCompleted()
public abstract void finishTransition()
public abstract int getIconWidth()
public abstract int getIconHeight()
public abstract void paintIcon(java.awt.Component c, java.awt.Graphics2D g2d, int x, int y, int w, int h)
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 |