public interface TextDisplay extends ResourceProxy
Modifier and Type | Field and Description |
---|---|
static byte |
STRING_MODE
The line can be set using a string of displayable characters.
|
static byte |
TWELVE_HOUR_CLOCK
This line will display the network time using a standard 12 hour
HH:MM format.
|
static byte |
TWENTYFOUR_HOUR_CLOCK
This line will display the network time using a military 24 hour
HH:MM format.
|
Modifier and Type | Method and Description |
---|---|
void |
eraseDisplay()
Removes characters from the text display.
|
BlinkSpec |
getBlinkSpec()
Gets the blink specification for the front panel text display.
|
BrightSpec |
getBrightSpec()
Gets the brightness specification for the front panel text display.
|
String |
getCharacterSet()
Gets the set of characters supported by the display.
|
ColorSpec |
getColorSpec()
Gets the Color specification for the front panel text display.
|
int |
getMode()
Gets the text display mode.
|
int |
getNumberColumns()
Gets the number of columns (characters) per line in the text display.
|
int |
getNumberRows()
Gets the number of rows (i.e.
|
ScrollSpec |
getScrollSpec()
Gets the scroll specification for the front panel text display.
|
void |
setClockDisplay(byte mode,
BlinkSpec blinkSpec,
ScrollSpec scrollSpec,
BrightSpec brightSpec,
ColorSpec colorSpec)
Displays the current system time on the front panel text display.
|
void |
setTextDisplay(String[] text,
BlinkSpec blinkSpec,
ScrollSpec scrollSpec,
BrightSpec brightSpec,
ColorSpec colorSpec)
Displays text on the front panel display.
|
void |
setWrap(boolean wrap)
Sets wrapping on or off.
|
getClient
static final byte TWELVE_HOUR_CLOCK
static final byte TWENTYFOUR_HOUR_CLOCK
static final byte STRING_MODE
BrightSpec getBrightSpec()
ColorSpec getColorSpec()
BlinkSpec getBlinkSpec()
ScrollSpec getScrollSpec()
int getMode()
TWELVE_HOUR_CLOCK
, TWENTYFOUR_HOUR_CLOCK
,
and STRING_MODE
for possible return values.int getNumberColumns()
int getNumberRows()
String getCharacterSet()
void setClockDisplay(byte mode, BlinkSpec blinkSpec, ScrollSpec scrollSpec, BrightSpec brightSpec, ColorSpec colorSpec) throws IllegalStateException
mode
- One of the clock modes; TWELVE_HOUR_CLOCK
, or
TWENTYFOUR_HOUR_CLOCK
.blinkSpec
- Blink specification if blinking is desired. A value
of null turns blinking off.scrollSpec
- Scroll specification if scrolling is desired. A
value of null turns scrolling off. If there is only one line
of text scrolling will be from right to left. If there is more
than one line of text scrolling will be from bottom to top.
Passing in null turns scrolling off.brightSpec
- Brightness specification if a change in brightness
is desired. A value of null results in no change to current
brightness.colorSpec
- Color specification if a change in color
is desired. A value of null results in no change to current color.IllegalArgumentException
- if the mode parameter is not one of
TWELVE_HOUR_CLOCK
, TWENTYFOUR_HOUR_CLOCK
.IllegalStateException
- if the TextDisplay resource was lost.void setTextDisplay(String[] text, BlinkSpec blinkSpec, ScrollSpec scrollSpec, BrightSpec brightSpec, ColorSpec colorSpec) throws IllegalStateException
STRING_MODE
.
The text parameter will be used to display text characters in the
display. Wrapping occurs if there is more than one line, wrapping
is turned on, and the text over-fills at least one line.text
- String of characters to display. Each string in the array
represents a line of text. text[0] represents the top line,
text[1] represents the next line down, and so forth.blinkSpec
- Blink specification if blinking is desired. Passing
in null turns blinking off.scrollSpec
- Scroll specification if scrolling is desired. If
there is only one line of text scrolling will be from right to
left. If there is more than one line of text scrolling will be
from bottom to top. Passing in null turns scrolling off.brightSpec
- Brightness specification if a change in brightness
is desired. A value of null results in no change to current
brightness.colorSpec
- Color specification if a change in color
is desired. A value of null results in no change to current color.IllegalArgumentException
- if the text array contains more than
1 line and one or more lines are longer than the display and
wrap is turned off.IllegalStateException
- if the TextDisplay resource was lost.void setWrap(boolean wrap)
wrap
- If wrap is true wrapping is turned on, otherwise wrapping
is turned off.void eraseDisplay()
Copyright © 2013 CableLabs. All rights reserved.