public class CCFIconSet
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ACTIVE_SELECTED |
static int |
ACTIVE_UNSELECTED |
static int |
INACTIVE_SELECTED |
static int |
INACTIVE_UNSELECTED |
Modifier and Type | Method and Description |
---|---|
CCFColor |
getBackground(int state)
Return the icon background color for this state.
|
CCFIconSet |
getClone() |
CCFIcon |
getDefaultIcon() |
CCFColor |
getForeground(int state)
Return the icon foreground color for this state.
|
CCFIcon |
getIcon(int state) |
static int[] |
getValidStates() |
void |
setBackground(int state,
CCFColor color)
Set the icon background color for this state.
|
void |
setForeground(int state,
CCFColor color)
Set the icon foreground color for this state.
|
void |
setIcon(int state,
CCFIcon icon)
Set an icon for the specified button state.
|
public static final int INACTIVE_UNSELECTED
public static final int INACTIVE_SELECTED
public static final int ACTIVE_UNSELECTED
public static final int ACTIVE_SELECTED
public static int[] getValidStates()
public CCFIconSet getClone()
public CCFIcon getIcon(int state)
public CCFIcon getDefaultIcon()
public void setIcon(int state, CCFIcon icon)
state
- specified button stateicon
- new icon for this statepublic CCFColor getForeground(int state)
state
- specified button statepublic CCFColor getBackground(int state)
state
- specified button statepublic void setForeground(int state, CCFColor color)
state
- specified button statecolor
- new colorpublic void setBackground(int state, CCFColor color)
state
- specified button statecolor
- new color