public class View extends Object
| Constructor and Description |
|---|
View(FileOutputStream screenOut,
FileInputStream screenIn,
boolean displaycoordinates,
boolean displaydepth,
boolean displayknots)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dataChanged()
Process a change in location data.
|
static void |
displayNewScreenSet(String name)
Display a new Screenset.
|
static void |
displayNextScreen()
Display the next screen in the screen set.
|
static void |
displayNextScreenAndExit(uk.theretiredprogrammer.rpiembeddedlibrary.thread.MDTService.Exitcode exitcode,
String message)
Display the next screen in the set and then shut down the application.
|
void |
displayPowerDown()
Display the power down screen.
|
void |
displayPowerDownSelection()
Display the power down selection screen.
|
static void |
displayPreviousScreen()
Display the previous screen in the screen set.
|
static void |
displayPreviousScreenSet()
Display the previous screen set.
|
static void |
displayRepaint()
Repaint screen.
|
void |
processButtonInScreenContext(IRControlAction.Button button,
boolean useManualDepth)
Process a button based on current screen context.
|
public View(FileOutputStream screenOut, FileInputStream screenIn, boolean displaycoordinates, boolean displaydepth, boolean displayknots)
screenOut - the display device output streamscreenIn - the display device input streamdisplaycoordinates - if true display position as x,y coordinates
otherwise display as latitude/longtitudedisplaydepth - if true display depth else display altitudedisplayknots - if true display speed in knots otherwise display as
metres/secpublic void displayPowerDown()
throws IOException
IOException - if problemspublic void displayPowerDownSelection()
throws IOException
IOException - if problemspublic void processButtonInScreenContext(IRControlAction.Button button, boolean useManualDepth) throws IOException
button - the buttonuseManualDepth - true if manual depth setting is being usedIOException - if problemspublic void dataChanged()
throws IOException
IOException - if problemspublic static void displayNextScreenAndExit(uk.theretiredprogrammer.rpiembeddedlibrary.thread.MDTService.Exitcode exitcode,
String message)
throws IOException
exitcode - the desired exitcodemessage - the message to be passed to the next screen.IOException - if problemspublic static void displayNextScreen()
throws IOException
IOException - if problemspublic static void displayPreviousScreen()
throws IOException
IOException - if problemspublic static void displayPreviousScreenSet()
throws IOException
IOException - if problemspublic static void displayNewScreenSet(String name) throws IOException
name - the screen set nameIOException - if problemspublic static void displayRepaint()
throws IOException
IOException - if problemsCopyright © 2017. All rights reserved.