talx x1.0.5

tal.constraint
Class BullseyeTimer

java.lang.Object
  extended byconstraint.ConstraintAdapter
      extended bytal.constraint.BullseyeTimer
All Implemented Interfaces:
Constraint, ConstraintConstants, KeyboardConstants, java.lang.Runnable, SettingsConstants, StateConstants, TalConstants

public class BullseyeTimer
extends ConstraintAdapter
implements java.lang.Runnable, KeyboardConstants, TalConstants

Draws a Bulls-Eye when the timer expires. The value is the number of seconds to wait before succeeding.
The completion string produced by this constraint consists of the following tokens:

  1. The constraint class name
  2. The value of the constraint


Field Summary
static java.lang.String TIMER_EXPIRE
          action key for timer expiring.
 
Fields inherited from interface keyboard.KeyboardConstants
BACK, BOTTOM, BUTTON_COLOR, BUTTON_COMMAND, BUTTON_TEXT, BUTTON_TEXT_ATTRIBUTES, BUTTON_TEXT_COLOR, BUTTON_TEXT_FONT_FACE, BUTTON_TEXT_SIZE, DELAY, DOWN, END, END_OF_LINE, ERROR_DETECTED, FINGER, FIRST, FRONT, HOME, INSTRUCTION_POSITION_TO_COORDS, KEYMAP, KEYMAP_COORDS_TO_PANEL_COORDS, LAST, LEFT, NO_BEEP, NO_DELETE, NO_ERROR, NO_WRAP, PAGE_DOWN, PAGE_UP, POSITION, PRESS, RIGHT, SPEED, START_OF_LINE, STRICT, TARGET_BACKGROUND_COLOR, TARGET_HIGHLIGHT, TARGET_HIGHLIGHT_CIRCLE_COLOR, TARGET_HIGHLIGHT_COLOR, TARGET_HIGHLIGHT_TEXT_COLOR, TARGET_POSITION_TO_COORDS, TARGET_TEXT, TARGET_TEXT_ATTRIBUTES, TARGET_TEXT_COLOR, TARGET_TEXT_FONT_FACE, TARGET_TEXT_SIZE, TOP, UP, USER_BACKGROUND_COLOR, USER_CARET, USER_CARET_BLINK_RATE, USER_CARET_COLOR, USER_CARET_HIGHLIGHT_COLOR, USER_CARET_WIDTH, USER_HIGHLIGHT, USER_HIGHLIGHT_CIRCLE_COLOR, USER_HIGHLIGHT_COLOR, USER_HIGHLIGHT_TEXT_COLOR, USER_POSITION_ABOVE, USER_POSITION_BELOW, USER_POSITION_TO_COORDS, USER_TEXT, USER_TEXT_ATTRIBUTES, USER_TEXT_COLOR, USER_TEXT_FONT_FACE, USER_TEXT_SIZE
 
Fields inherited from interface tal.TalConstants
ADD_PICTURE, ARROW_POSITION, BOTTOM_OUT, BUDDY_IS_VISIBILE, BUTTON_LOGOUT, COMPOSER, COMPOSER_BUTTON_DONT, COMPOSER_BUTTON_SEND, COMPOSER_CAPTION, COMPOSER_GRAY, COMPOSER_SCROLL_BUTTON_BOTTOM, COMPOSER_SCROLL_BUTTON_TOP, COMPOSER_SCROLL_TO_BOTTOM, COMPOSER_SCROLL_TO_TOP, COMPOSER_SCROLLBAR, COMPOSER_STATE, COMPOSER_SUBJECT, COMPOSER_TEXT, COMPOSER_TEXT_IS_VISIBILE, IMAGE_DIR, INBOX, INBOX_BUDDY, INBOX_BUDDY_BUTTON, INBOX_BUDDY_BUTTON_NEW, INBOX_BUDDY_BUTTON_OLD, INBOX_BUDDY_BUTTON_PIC, INBOX_BUDDY_FILE, INBOX_BUDDY_HIGHLIGHT, INBOX_BUDDY_MAIL, INBOX_BUDDY_NAME, INBOX_GRAY, INBOX_SCROLL_BUTTON_BOTTOM, INBOX_SCROLL_BUTTON_TOP, INBOX_SCROLL_TO_BOTTOM, INBOX_SCROLL_TO_TOP, INBOX_SCROLLBAR, INBOX_STATE, PICTURE_IS_VISIBILE, PICTURE_READER, READER, READER_BUTTON_DELETE, READER_BUTTON_REPLY, READER_BUTTON_SAVE, READER_CAPTION, READER_DATE, READER_GRAY, READER_SCROLL_BUTTON_BOTTOM, READER_SCROLL_BUTTON_TOP, READER_SCROLL_TO_BOTTOM, READER_SCROLL_TO_TOP, READER_SCROLLBAR, READER_STATE, READER_SUBJECT, READER_TEXT, READER_TEXT_IS_VISIBILE, SCROLL_BUTTON_DOWN, SCROLL_BUTTON_UP, SCROLLED_STATE, SENT_STATE, TAL_BUTTON, TAL_STATE, TIME
 
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
BullseyeTimer()
           
 
Method Summary
 void processActionEvent(java.awt.event.ActionEvent ev, TaskProperties tp)
           
 void processKeyEvent(java.awt.event.KeyEvent ev, TaskProperties tp)
          When key events get to the constraint, they have already been consumed.
 void processMouseEvent(java.awt.event.MouseEvent ev, TaskProperties tp)
          When mouse events are delivered to the constraint, they have not been seen or processed by the source component.
 void run()
          Runs in a loop that logs off unless it gets interrupted.
 
Methods inherited from class constraint.ConstraintAdapter
fireAutoAction, getIntValue, getType, getValue, process, processInit, 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

TIMER_EXPIRE

public static final java.lang.String TIMER_EXPIRE
action key for timer expiring.

See Also:
Constant Field Values
Constructor Detail

BullseyeTimer

public BullseyeTimer()
Method Detail

processActionEvent

public void processActionEvent(java.awt.event.ActionEvent ev,
                               TaskProperties tp)
Overrides:
processActionEvent in class ConstraintAdapter

processMouseEvent

public void processMouseEvent(java.awt.event.MouseEvent ev,
                              TaskProperties tp)
Description copied from class: ConstraintAdapter
When mouse events are delivered to the constraint, they have not been seen or processed by the source component. Thus, the constraint can consume the event and thus cause the component to not react.

Overrides:
processMouseEvent in class ConstraintAdapter

processKeyEvent

public void processKeyEvent(java.awt.event.KeyEvent ev,
                            TaskProperties tp)
Description copied from class: ConstraintAdapter
When key events get to the constraint, they have already been consumed. Thus, a constraint may do anything it wants with the characters, but nothing will happen automatically.

Overrides:
processKeyEvent in class ConstraintAdapter

run

public void run()
Runs in a loop that logs off unless it gets interrupted. The loop restarts after each interruption until run is false.

Specified by:
run in interface java.lang.Runnable

talx x1.0.5

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