|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjcontrol.comm.DisplayConsole
public class DisplayConsole
Implements a ConsoleOutputStream on the JControl Display.
| lib |
| Field Summary | |
|---|---|
int |
pos
Contains the current pixel position in the current line |
| Fields inherited from interface jcontrol.comm.ConsoleOutputStream |
|---|
STD_LF |
| Constructor Summary | |
|---|---|
DisplayConsole()
Constructs a new DisplayConsole using the default Display. |
|
DisplayConsole(Display lcd)
Constructs a new DisplayConsole using a specified Display. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the DisplayConsole |
void |
print(String buffer)
Writes a String to the Display. |
void |
println()
Moves the cursor to the beginning of the next line. |
void |
println(String buffer)
Writes a String to the Display. |
int |
write(byte[] b,
int start,
int length)
Writes a character sequence to the Display. |
void |
write(char c)
Writes a single charater to the Display. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, notifyAll, wait |
| Field Detail |
|---|
public int pos
| Constructor Detail |
|---|
public DisplayConsole()
public DisplayConsole(Display lcd)
lcd - Display to use (full screen)| Method Detail |
|---|
public void close()
close in interface BasicOutputStreampublic void print(String buffer)
print in interface ConsoleOutputStreambuffer - the String to writeStringpublic void println()
println in interface ConsoleOutputStreampublic void println(String buffer)
println in interface ConsoleOutputStreambuffer - the String to writeString
public int write(byte[] b,
int start,
int length)
write in interface BasicOutputStreamb - a byte array containing charaters to write (using 8859-1 encoding)start - index in blength - number of bytes
public void write(char c)
throws IOException
write in interface BasicOutputStreamc - the character to write (8859-1 encoding)
IOException - if an error occurs
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||