com.neuron.app.tonto
Class CCFIconSet

java.lang.Object
  extended by com.neuron.app.tonto.CCFIconSet

public class CCFIconSet
extends java.lang.Object

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

INACTIVE_UNSELECTED

public static final int INACTIVE_UNSELECTED
See Also:
Constant Field Values

INACTIVE_SELECTED

public static final int INACTIVE_SELECTED
See Also:
Constant Field Values

ACTIVE_UNSELECTED

public static final int ACTIVE_UNSELECTED
See Also:
Constant Field Values

ACTIVE_SELECTED

public static final int ACTIVE_SELECTED
See Also:
Constant Field Values
Method Detail

getValidStates

public static int[] getValidStates()

getClone

public CCFIconSet getClone()

getIcon

public CCFIcon getIcon(int state)

getDefaultIcon

public CCFIcon getDefaultIcon()

setIcon

public void setIcon(int state,
                    CCFIcon icon)
Set an icon for the specified button state.

Parameters:
state - specified button state
icon - new icon for this state

getForeground

public CCFColor getForeground(int state)
Return the icon foreground color for this state.

Parameters:
state - specified button state

getBackground

public CCFColor getBackground(int state)
Return the icon background color for this state.

Parameters:
state - specified button state

setForeground

public void setForeground(int state,
                          CCFColor color)
Set the icon foreground color for this state.

Parameters:
state - specified button state
color - new color

setBackground

public void setBackground(int state,
                          CCFColor color)
Set the icon background color for this state.

Parameters:
state - specified button state
color - new color