|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcontrol.comm.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(jcontrol.io.Display lcd)
Constructs a new DisplayConsole using a specified Display. |
Method Summary | |
void |
close()
Closes the DisplayConsole |
void |
print(java.lang.String buffer)
Writes a String to the Display. |
void |
println()
Moves the cursor to the beginning of the next line. |
void |
println(java.lang.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, finalize, notifyAll, wait |
Field Detail |
public int pos
Constructor Detail |
public DisplayConsole()
public DisplayConsole(jcontrol.io.Display lcd)
lcd
- Display to use (full screen)Method Detail |
public void close()
close
in interface jcontrol.io.BasicOutputStream
public void print(java.lang.String buffer)
print
in interface jcontrol.comm.ConsoleOutputStream
buffer
- the String to writepublic void println()
println
in interface jcontrol.comm.ConsoleOutputStream
public void println(java.lang.String buffer)
println
in interface jcontrol.comm.ConsoleOutputStream
buffer
- the String to writepublic int write(byte[] b, int start, int length)
write
in interface jcontrol.io.BasicOutputStream
b
- a byte array containing charaters to write (using 8859-1 encoding)start
- index in blength
- number of bytespublic void write(char c) throws java.io.IOException
write
in interface jcontrol.io.BasicOutputStream
c
- the character to write (8859-1 encoding)
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |