com.ridgesoft.ui
Class ScreenManager
java.lang.Object
java.lang.Thread
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
|
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 |
ScreenManager
public ScreenManager(Display display,
Screen[] screens,
AnalogInput scrollDevice,
int threadPriority,
int period)
- Constructs a ScreenManager.
- Parameters:
display - display the screen manager managesscreens - array of screens that can be displayedscrollDevice - AnalogInput that controls which screen is displayedthreadPriority - priority of the ScreenManager threadperiod - screen update period in milliseconds
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
Copyright (c) 2003-2009 RidgeSoft, LLC. All rights reserved.
www.ridgesoft.com