jsynoptic.builtin
Class AutomatonAction

java.lang.Object
  extended by jsynoptic.builtin.AutomatonAction
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class AutomatonAction
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

This class is for elements of the list which is effectively mapped to a value or range

See Also:
Serialized Form

Field Summary
 int action
          Options for Color actions are Color objects Option for SET_TEXT action is Object[] with index 0 = format: 6 : fixed text => index 1 = string 0,3,4,5 : Use current value as String, hexa, octal, binary => no index 1 1,2 : Decimal, scientific => index 1 = text formatter object Options for move actions Choose serializable objects for options
static int MOVE_DOWN
           
static int MOVE_LEFT
           
static int MOVE_RIGHT
           
static int MOVE_UP
           
static int NUMBER_OF_POSSIBLE_ACTIONS
           
 java.lang.Object option
          Options for the actions above
static java.lang.Integer OPTION_DO_NOTHING
          This option is for MOVE actions : when reaching an edge, do nothing
static java.lang.Integer OPTION_EXTEND
          This option is for MOVE actions : when reaching an edge, extend the array
static java.lang.Integer OPTION_WRAP
          This option is for MOVE actions : when reaching an edge, wrap to the other side
static java.util.ResourceBundle resources
           
static int SET_BACKGROUND_COLOR
           
static int SET_FRAME_COLOR
           
static int SET_TEXT
           
static int SET_TEXT_COLOR
           
 
Constructor Summary
AutomatonAction(int action, java.lang.Object option)
           
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String toString()
           
static java.lang.String toString(int action)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MOVE_UP

public static final int MOVE_UP
See Also:
Constant Field Values

MOVE_RIGHT

public static final int MOVE_RIGHT
See Also:
Constant Field Values

MOVE_DOWN

public static final int MOVE_DOWN
See Also:
Constant Field Values

MOVE_LEFT

public static final int MOVE_LEFT
See Also:
Constant Field Values

SET_BACKGROUND_COLOR

public static final int SET_BACKGROUND_COLOR
See Also:
Constant Field Values

SET_FRAME_COLOR

public static final int SET_FRAME_COLOR
See Also:
Constant Field Values

SET_TEXT_COLOR

public static final int SET_TEXT_COLOR
See Also:
Constant Field Values

SET_TEXT

public static final int SET_TEXT
See Also:
Constant Field Values

NUMBER_OF_POSSIBLE_ACTIONS

public static final int NUMBER_OF_POSSIBLE_ACTIONS
See Also:
Constant Field Values

resources

public static java.util.ResourceBundle resources

OPTION_DO_NOTHING

public static final java.lang.Integer OPTION_DO_NOTHING
This option is for MOVE actions : when reaching an edge, do nothing


OPTION_WRAP

public static final java.lang.Integer OPTION_WRAP
This option is for MOVE actions : when reaching an edge, wrap to the other side


OPTION_EXTEND

public static final java.lang.Integer OPTION_EXTEND
This option is for MOVE actions : when reaching an edge, extend the array


action

public int action
Options for Color actions are Color objects Option for SET_TEXT action is Object[] with index 0 = format: 6 : fixed text => index 1 = string 0,3,4,5 : Use current value as String, hexa, octal, binary => no index 1 1,2 : Decimal, scientific => index 1 = text formatter object Options for move actions Choose serializable objects for options


option

public java.lang.Object option
Options for the actions above

Constructor Detail

AutomatonAction

public AutomatonAction(int action,
                       java.lang.Object option)
Method Detail

toString

public static java.lang.String toString(int action)

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object