RoboJDETM v2.0

com.ridgesoft.ui
Class ScreenManager

java.lang.Object
  extended by java.lang.Thread
      extended by com.ridgesoft.ui.ScreenManager
All Implemented Interfaces:
Runnable

public class ScreenManager
extends Thread

Implements a manager which manages the display of a set of screens.

The user scrolls through the screens using an AnalogInput, which is typically a thumbwheel.

To make use of this class, construct an instance, giving it a list of screens to display, a reference to the Display object for the display it is to manage and a reference to the AnalogInput which provides the user a scroll device.

See Also:
Screen, TwoLineScreen

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ScreenManager(Display display, Screen[] screens, AnalogInput scrollDevice, int threadPriority, int period)
          Constructs a ScreenManager.
 
Method Summary
 void run()
          Run method executed by the ScreenManager thread.
 
Methods inherited from class java.lang.Thread
activeCount, currentThread, dumpStack, getName, getPriority, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, setDaemon, setName, setPriority, sleep, start, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait
 

Constructor Detail

ScreenManager

public ScreenManager(Display display,
                     Screen[] screens,
                     AnalogInput scrollDevice,
                     int threadPriority,
                     int period)
Constructs a ScreenManager.

Parameters:
display - display the screen manager manages
screens - array of screens that can be displayed
scrollDevice - AnalogInput that controls which screen is displayed
threadPriority - priority of the ScreenManager thread
period - screen update period in milliseconds
Method Detail

run

public void run()
Run method executed by the ScreenManager thread.

Do not invoke this method directly.

Specified by:
run in interface Runnable
Overrides:
run in class Thread

RoboJDETM v2.0

Copyright (c) 2003-2009 RidgeSoft, LLC. All rights reserved.
www.ridgesoft.com