| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
java.awt.AWTEvent
edu.princeton.cs.algs4.growingtree.framework.OptionEvent
public class OptionEvent
A semantic event which indicates that a Option-defined action occured.
 This high-level event is generated by an Option component when
 an action occurs (such as a key insertion).
 The event is passed to every OptionListener object
 that registered to receive such events using the Option's
 addOptionListener method.
 
 The object that implements the OptionListener interface
 gets this OptionEvent when the event occurs. The listener
 is therefore spared the details of processing individual selection, and can
 instead process a "meaningful" (semantic) event like "key inserted".
OptionJPanel, 
Serialized Form| Field Summary | |
|---|---|
| static java.lang.String | ABOUTAnimation command passed for program information. | 
| static java.lang.String | ANIMATIONDefinition for Animation command, must begin with this String. | 
| static java.lang.String | ANIMATION_FAST_FORWARDAnimation command passed for step forward. | 
| static java.lang.String | ANIMATION_FAST_REWINDAnimation command passed for step back. | 
| static java.lang.String | ANIMATION_OFFAnimation command passed for animation toggle off. | 
| static java.lang.String | ANIMATION_ONAnimation command passed for animation toggle on. | 
| static java.lang.String | ANIMATION_PAUSEAnimation command passed for pause. | 
| static java.lang.String | ANIMATION_PLAYAnimation command passed for play. | 
| static java.lang.String | ANIMATION_QUALITYAnimation command passed for quality change. | 
| static java.lang.String | ANIMATION_REWINDAnimation command passed for rewind. | 
| static java.lang.String | ANIMATION_SPEEDAnimation command passed for speed change. | 
| static java.lang.String | ANIMATION_STEP_FORWARDAnimation command passed for step forward. | 
| static java.lang.String | ANIMATION_STEP_OFFAnimation command passed for step toggle off. | 
| static java.lang.String | ANIMATION_STEP_ONAnimation command passed for step toggle on. | 
| static java.lang.String | ANIMATION_STEP_REWINDAnimation command passed for step back. | 
| static java.lang.String | ANIMATION_STOPAnimation command passed for stop. | 
| static int | ANIMATION_TOOLS_OPTION_PANELID for an animation tools option panel. | 
| static java.lang.String | BALANCEactionCommand passed for balancing the tree. | 
| static java.lang.String | BALANCE_ALLactionCommand passed for balancing the tree. | 
| static java.lang.String | BALANCE_CLICKactionCommand passed for balancing the tree. | 
| static java.lang.String | BINARY_DISPLAYAnimation command passed for display change request to binary. | 
| static int | CENTER_FRAMEID for a center frame. | 
| static java.lang.String | CHARACTERactionCommand passed for Change of input (Integer or Character and so forth). | 
| static java.lang.String | CLEARactionCommand passed for Clearing. | 
| static java.lang.String | CLEAR_ALLactionCommand passed for Clearing. | 
| static java.lang.String | COLOR_OPTIONSAnimation command passed for color options request. | 
| static java.lang.String | COLOR_SCHEME_CHANGEAnimation command passed for a color scheme change. | 
| static java.lang.String | COLOR_SCHEME_PRESET_CHANGEAnimation command passed for a color scheme preset change. | 
| static java.lang.String | COLOR_SETTINGSAnimation command passed for color settings request. | 
| static java.lang.String | COLOR_SETTINGS_ALLAnimation command passed for color settings all request. | 
| static java.lang.String | COLOR_SETTINGS_CHANGEAnimation command passed for a color settings change. | 
| static int | COLOR_TOOLS_OPTION_PANELID for an color tools option panel. | 
| static int | CONTROL_OPTION_PANELID for an control option panel. | 
| static java.lang.String | DELETEactionCommand passed for Deletion. | 
| static java.lang.String | DELETE_CLICKactionCommand passed for Deletion Click. | 
| static int | DESKTOP_PANELID for an desktop panel. | 
| static java.lang.String | DISPLAY_CHANGEAnimation command passed for display change request. | 
| static java.lang.String | DOUBLEactionCommand passed for Change of input (Integer or Character and so forth). | 
| static java.lang.String | EXITactionCommand passed for exiting the program. | 
| static java.lang.String | FUNCTION_CHANGEAnimation command passed for a function color change. | 
| static java.lang.String | GET_INPUT_OPTIONSAnimation command passed for a input options request. | 
| static java.lang.String | GET_STATUSactionCommand passed for get status. | 
| static java.lang.String | GET_STATUS_ALLactionCommand passed for get status. | 
| static java.lang.String | INORDER_TRAVERSALAnimation command passed for an inorder traversal. | 
| static java.lang.String | INPUT_CHANGE_ALLactionCommand passed for Change of input (Integer or Character and so forth). | 
| static java.lang.String | INSERTactionCommand passed for Insertion. | 
| static java.lang.String | INTEGERactionCommand passed for Change of input (Integer or Character and so forth). | 
| static java.lang.String | INTEGER_FIELDS_OFF | 
| static java.lang.String | INTEGER_FIELDS_ON | 
| static java.lang.String | LEVELORDER_TRAVERSALAnimation command passed for a levelorder traversal. | 
| static java.lang.String | LOADactionCommand passes for Loading | 
| static int | MAIN_OPTION_PANELID for an main option panel. | 
| static java.lang.String | MESSAGE_ALLAnimation command passed for all message to pass. | 
| static java.lang.String | MESSAGE_FINAL_ONLYAnimation command passed for only final messages to pass. | 
| static java.lang.String | MESSAGE_OFFAnimation command passed for no messages to pass. | 
| static java.lang.String | NODE_DISPLAY_OFFNode display turned on. | 
| static java.lang.String | NODE_DISPLAY_ONNode display turned on. | 
| static int | OPTION_PANELID for an option panel. | 
| static java.lang.String | PARTITION_CLICKactionCommand passed for Partition. | 
| static java.lang.String | POSTORDER_TRAVERSALAnimation command passed for a postorder traversal. | 
| static java.lang.String | PREORDER_TRAVERSALAnimation command passed for a preorder traversal. | 
| static java.lang.String | PROGRAM_INFORMATIONAnimation command passed for program information. | 
| static java.lang.String | RANDOM_TREEAnimation command passed to make a random tree. | 
| static java.lang.String | RESETAnimation command passed for the reseting of colors. | 
| static java.lang.String | ROTATE_CLICKactionCommand passed for Rotate. | 
| static java.lang.String | ROTATE_DOUBLE_CLICKactionCommand passed for Double Rotate. | 
| static java.lang.String | ROTATE_TOP_CLICKactionCommand passed for Rotate to top. | 
| static java.lang.String | SAVE_ALLAnimation command passed for a saving of the colors for all trees. | 
| static java.lang.String | SAVE_TREEAnimation command passed for a saving of the colors. | 
| static java.lang.String | SEARCHactionCommand passed for search the tree. | 
| static java.lang.String | SECTIONAL_DISPLAYAnimation command passed for display change request to sectional. | 
| static java.lang.String | SELECTactionCommand passed for select the tree. | 
| static java.lang.String | SELECT_CLICKactionCommand passed for select the tree. | 
| static java.lang.String | SPLAY_CLICKactionCommand passed for Splay. | 
| static java.lang.String | TABBED_PANEactionCommand passed for a tabbed pane. | 
| static java.lang.String | TOOL_BAR_OFFCommand passed to turn off the tool bar. | 
| static java.lang.String | TOOL_BAR_ONCommand passed to turn on the tool bar. | 
| static java.lang.String | TREE_INFORMATIONAnimation command passed for tree information. | 
| static int | TREE_TOOLS_ALL_OPTION_PANELID for an tree tools all option panel. | 
| static int | TREE_TOOLS_OPTION_PANELID for an tree tools option panel. | 
| static java.lang.String | TWO_THREE_FOUR_DISPLAYAnimation command passed for display change request to 234. | 
| static java.lang.String | WINDOWSactionCommand passed for a tabbed pane. | 
| static java.lang.String | ZOOM_INactionCommand passed for zoom in. | 
| static java.lang.String | ZOOM_OUTactionCommand passed for zoom out. | 
| Fields inherited from class java.awt.AWTEvent | 
|---|
| ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK | 
| Constructor Summary | |
|---|---|
| OptionEvent(java.lang.Object source,
            int id,
            java.lang.String command)Constructs an OptionEventobject. | |
| OptionEvent(java.lang.Object source,
            int id,
            java.lang.String command,
            java.lang.Object value)Constructs an OptionEventobject with the Object value. | |
| Method Summary | |
|---|---|
|  java.lang.String | getActionCommand()Returns the command string associated with this action. | 
| static java.lang.String | getLoadCommand(int i) | 
|  java.lang.Object | getObjectValue()Returns the Object associated with the OptionEvent. | 
| Methods inherited from class java.awt.AWTEvent | 
|---|
| getID, paramString, setSource, toString | 
| Methods inherited from class java.util.EventObject | 
|---|
| getSource | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String INTEGER_FIELDS_ON
public static final java.lang.String INTEGER_FIELDS_OFF
public static final java.lang.String INSERT
public static final java.lang.String ROTATE_CLICK
public static final java.lang.String ROTATE_TOP_CLICK
public static final java.lang.String ROTATE_DOUBLE_CLICK
public static final java.lang.String SPLAY_CLICK
public static final java.lang.String PARTITION_CLICK
public static final java.lang.String CLEAR
public static final java.lang.String CLEAR_ALL
public static final java.lang.String LOAD
public static final java.lang.String DELETE
public static final java.lang.String DELETE_CLICK
public static final java.lang.String INPUT_CHANGE_ALL
public static final java.lang.String INTEGER
public static final java.lang.String CHARACTER
public static final java.lang.String DOUBLE
public static final java.lang.String ZOOM_IN
public static final java.lang.String ZOOM_OUT
public static final java.lang.String GET_STATUS
public static final java.lang.String GET_STATUS_ALL
public static final java.lang.String BALANCE
public static final java.lang.String BALANCE_ALL
public static final java.lang.String TABBED_PANE
public static final java.lang.String WINDOWS
public static final java.lang.String BALANCE_CLICK
public static final java.lang.String SEARCH
public static final java.lang.String SELECT
public static final java.lang.String SELECT_CLICK
public static final java.lang.String ANIMATION_PLAY
public static final java.lang.String ANIMATION_STOP
public static final java.lang.String ANIMATION_PAUSE
public static final java.lang.String ANIMATION_REWIND
public static final java.lang.String ANIMATION_STEP_REWIND
public static final java.lang.String ANIMATION_STEP_FORWARD
public static final java.lang.String ANIMATION_FAST_REWIND
public static final java.lang.String ANIMATION_FAST_FORWARD
public static final java.lang.String ANIMATION_SPEED
public static final java.lang.String ANIMATION_ON
public static final java.lang.String ANIMATION_OFF
public static final java.lang.String ANIMATION_STEP_ON
public static final java.lang.String ANIMATION_STEP_OFF
public static final java.lang.String ANIMATION_QUALITY
public static final java.lang.String ANIMATION
 Can use startsWith to determine if the command is
 an animating command.
public static final java.lang.String TREE_INFORMATION
public static final java.lang.String PROGRAM_INFORMATION
public static final java.lang.String ABOUT
public static final java.lang.String MESSAGE_ALL
public static final java.lang.String MESSAGE_FINAL_ONLY
public static final java.lang.String MESSAGE_OFF
public static final java.lang.String NODE_DISPLAY_ON
public static final java.lang.String NODE_DISPLAY_OFF
public static final java.lang.String RANDOM_TREE
public static final java.lang.String PREORDER_TRAVERSAL
public static final java.lang.String POSTORDER_TRAVERSAL
public static final java.lang.String INORDER_TRAVERSAL
public static final java.lang.String LEVELORDER_TRAVERSAL
public static final java.lang.String GET_INPUT_OPTIONS
public static final java.lang.String SAVE_TREE
public static final java.lang.String SAVE_ALL
public static final java.lang.String RESET
public static final java.lang.String FUNCTION_CHANGE
public static final java.lang.String COLOR_SETTINGS_CHANGE
public static final java.lang.String COLOR_SCHEME_CHANGE
public static final java.lang.String COLOR_SCHEME_PRESET_CHANGE
public static final java.lang.String COLOR_SETTINGS_ALL
public static final java.lang.String COLOR_SETTINGS
public static final java.lang.String COLOR_OPTIONS
public static final java.lang.String BINARY_DISPLAY
public static final java.lang.String SECTIONAL_DISPLAY
public static final java.lang.String TWO_THREE_FOUR_DISPLAY
public static final java.lang.String DISPLAY_CHANGE
public static final java.lang.String TOOL_BAR_ON
public static final java.lang.String TOOL_BAR_OFF
public static final java.lang.String EXIT
public static final int OPTION_PANEL
public static final int CONTROL_OPTION_PANEL
public static final int MAIN_OPTION_PANEL
public static final int ANIMATION_TOOLS_OPTION_PANEL
public static final int TREE_TOOLS_OPTION_PANEL
public static final int TREE_TOOLS_ALL_OPTION_PANEL
public static final int COLOR_TOOLS_OPTION_PANEL
public static final int CENTER_FRAME
public static final int DESKTOP_PANEL
| Constructor Detail | 
|---|
public OptionEvent(java.lang.Object source,
                   int id,
                   java.lang.String command)
OptionEvent object.
source - the object that originated the eventid - an integer that identifies the eventcommand - a string that may specify a command (possibly one
                of several) associated with the event
public OptionEvent(java.lang.Object source,
                   int id,
                   java.lang.String command,
                   java.lang.Object value)
OptionEvent object with the Object value.
source - the object that originated the eventid - an integer that identifies the eventcommand - a string that may specify a command (possibly one
                  of several) associated with the eventvalue - the value of the Object passed| Method Detail | 
|---|
public static java.lang.String getLoadCommand(int i)
public java.lang.String getActionCommand()
public java.lang.Object getObjectValue()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||