|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neuron.app.tonto.CCFIconSet
public class CCFIconSet
A set of four icons associated with a CCFButton. These four icons represent the four possible states a button can occupy: active/unselected, active/selected, inactive/unselected, and inactive/selected. An inactive button is one which posesses no associated actions. It is hidden by the display. Active buttons have at least one associated action.
Field Summary | |
---|---|
static int |
ACTIVE_SELECTED
|
static int |
ACTIVE_UNSELECTED
|
static int |
INACTIVE_SELECTED
|
static int |
INACTIVE_UNSELECTED
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int INACTIVE_UNSELECTED
public static final int INACTIVE_SELECTED
public static final int ACTIVE_UNSELECTED
public static final int ACTIVE_SELECTED
Method Detail |
---|
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
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |