|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jcontrol.comm.DisplayConsole
public class DisplayConsole
Implements a ConsoleOutputStream on the JControl Display.
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, getClass, notifyAll, toString, wait |
Methods inherited from interface jcontrol.io.BasicOutputStream |
---|
flush, write, write |
Field Detail |
---|
public int pos
Constructor Detail |
---|
public DisplayConsole()
public DisplayConsole(Display lcd)
lcd
- Display to use (full screen)Method Detail |
---|
public void write(char c) throws IOException
c
- the character to write (8859-1 encoding)
IOException
public int write(byte[] b, int start, int length)
write
in interface BasicOutputStream
b
- a byte array containing charaters to write (using 8859-1 encoding)start
- index in blength
- number of bytespublic void print(String buffer)
print
in interface ConsoleOutputStream
buffer
- the String to writeString
public void println()
println
in interface ConsoleOutputStream
public void println(String buffer)
println
in interface ConsoleOutputStream
buffer
- the String to writeString
public void close()
close
in interface BasicOutputStream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |