talx x1.0.5

constraint
Class SetInstructionFont

java.lang.Object
  extended byconstraint.ConstraintAdapter
      extended byconstraint.SetInstructionFont
All Implemented Interfaces:
Constraint, ConstraintConstants, SettingsConstants, StateConstants
Direct Known Subclasses:
SetButtonFont, SetTargetFont, SetUserFont

public class SetInstructionFont
extends ConstraintAdapter

Sets the instuction text font. This is expecting to see a set of key=value pairs from the following:

where color is an Color class constant.


Field Summary
static java.lang.String BACKGROUND_KEY
           
static java.lang.String BOLD_VALUE
           
static java.lang.String FOREGROUND_KEY
           
static java.lang.String ITALIC_VALUE
           
static java.lang.String NAME_KEY
           
static java.lang.String PLAIN_VALUE
           
static java.lang.String SIZE_KEY
           
static java.lang.String STYLE_KEY
           
 
Fields inherited from interface constraint.ConstraintConstants
ACTION_COMMAND_KEY, ACTION_TYPE_SOUND_FINISHED, COMPONENT_FINGER_POSITION, COMPONENT_FINGER_PRESS_POSITION, COMPONENT_HORIZONTAL_ARROW_POSITION, COMPONENT_INSTRUCTION_BACKGROUND_COLOR, COMPONENT_INSTRUCTION_TEXT, COMPONENT_INSTRUCTION_TEXT_ATTRIBUTES, COMPONENT_INSTRUCTION_TEXT_COLOR, COMPONENT_INSTRUCTION_TEXT_FONT_FACE, COMPONENT_INSTRUCTION_TEXT_SIZE, COMPONENT_MOUSE_FINGER_POSITION, COMPONENT_SOUND, COMPONENT_SOUND_IS_PLAYING, COMPONENT_SOUND_QUIT, COMPONENT_TIMER, COMPONENT_VERTICAL_ARROW_POSITION, DIALOG, HIDE_BULLSEYE, LESSON_STOP_ACTION, MOUSE_BULLSEYE, MOUSE_FINGER_IMAGE, NO_TOKEN, PREVIOUS_TASK_COMPLETION_REASON, PROGRESS_PANEL_VISIBLITY, SHOW_BULLSEYE, SKIP_TASK_ACTION, TAL_DIALOG, TASK_FAIL_COUNT, TASK_STATUS, TASK_SUCCEED_COUNT, YES_TOKEN
 
Fields inherited from interface controller.StateConstants
ACTION, ACTION_TYPE_CONTINUE, ACTION_TYPE_GOTO, ACTION_TYPE_IGNORE, ACTION_TYPE_PANIC, ACTION_TYPE_QUIT, ACTION_TYPE_RESTART, ACTION_TYPE_REVIEW, ACTION_TYPE_SKIP_DRILL, ACTION_TYPE_SKIP_SKILL, ACTION_TYPE_SKIP_TASK, ACTION_TYPE_TASK_STARTED, ACTION_TYPE_TRAIN, CALLBACK_COMMAND, FIRST_CALLBACK, FOURTH_CALLBACK, SECOND_CALLBACK, THIRD_CALLBACK
 
Fields inherited from interface util.SettingsConstants
ALTERNATIVE_BACKGROUND_COLOR, ALTERNATIVE_BACKGROUND_COLOR_ALIAS, ALTERNATIVE_FONT_ATTRIBUTES, ALTERNATIVE_FONT_ATTRIBUTES_ALIAS, ALTERNATIVE_FONT_COLOR, ALTERNATIVE_FONT_COLOR_ALIAS, CARET_BLINK_RATE, CARET_COLOR, CARET_WIDTH, DECORATED, DEFAULT_UI_STATE_CLASS, FONT_FACE, FONT_FACE_ALIAS, FONT_SIZE, FONT_SIZE_ALIAS, INNER_BACKGROUND_COLOR, INSTRUCTION_BACKGROUND_COLOR, INSTRUCTION_BACKGROUND_COLOR_ALIAS, INSTRUCTION_FONT_ATTRIBUTES, INSTRUCTION_FONT_ATTRIBUTES_ALIAS, INSTRUCTION_FONT_COLOR, INSTRUCTION_FONT_COLOR_ALIAS, LARGE_FONT_SIZE, LARGE_FONT_SIZE_ALIAS, LESSON_UI_STATE_CLASS, LOGGER_CLASS, LOGGER_DIRECTORY, LOGGER_PARAMS, SAVE_FILENAME, SCREEN_PERCENT, SKILL_LATTICE_FILENAME, SMALL_FONT_SIZE, SMALL_FONT_SIZE_ALIAS, STATS_FILENAME, TAL_SETTINGS_FILENAME, TITLE, TITLE_ALIAS, TITLE_ICON, TITLE_ICON_ALIAS, TRAINER_UI_STATE_CLASS, USER_ID
 
Constructor Summary
SetInstructionFont()
           
 
Method Summary
 void processInit(TaskProperties tp)
          This method is called when the constraint is first instantiated/loaded.
 
Methods inherited from class constraint.ConstraintAdapter
fireAutoAction, getIntValue, getType, getValue, process, processActionEvent, processKeyEvent, processMouseEvent, setValue, splitPairs, startAutoAction, stopAutoAction, stringToRGB, toString, valueContains
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FOREGROUND_KEY

public static final java.lang.String FOREGROUND_KEY
See Also:
Constant Field Values

BACKGROUND_KEY

public static final java.lang.String BACKGROUND_KEY
See Also:
Constant Field Values

NAME_KEY

public static final java.lang.String NAME_KEY
See Also:
Constant Field Values

STYLE_KEY

public static final java.lang.String STYLE_KEY
See Also:
Constant Field Values

SIZE_KEY

public static final java.lang.String SIZE_KEY
See Also:
Constant Field Values

PLAIN_VALUE

public static final java.lang.String PLAIN_VALUE
See Also:
Constant Field Values

BOLD_VALUE

public static final java.lang.String BOLD_VALUE
See Also:
Constant Field Values

ITALIC_VALUE

public static final java.lang.String ITALIC_VALUE
See Also:
Constant Field Values
Constructor Detail

SetInstructionFont

public SetInstructionFont()
Method Detail

processInit

public void processInit(TaskProperties tp)
This method is called when the constraint is first instantiated/loaded. It sets the font for any component that is using this constraint.

Overrides:
processInit in class ConstraintAdapter

talx x1.0.5

© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.