|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Writer java.io.PrintWriter de.grogra.pf.ui.Console.ConsoleWriter
public abstract static class Console.ConsoleWriter
A ConsoleWriter
is a PrintWriter
with the additional possibility to set the text color
to use.
Field Summary |
---|
Fields inherited from class java.io.PrintWriter |
---|
out |
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
Console.ConsoleWriter(java.io.Writer out,
boolean autoFlush)
|
Method Summary | |
---|---|
abstract void |
print(java.lang.Object text,
int color)
Prints text using the color
encoded in color . |
abstract void |
println(java.lang.Object text,
int color)
Prints text using the color
encoded in color , then
terminates the line. |
Methods inherited from class java.io.PrintWriter |
---|
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Console.ConsoleWriter(java.io.Writer out, boolean autoFlush)
Method Detail |
---|
public abstract void print(java.lang.Object text, int color)
text
using the color
encoded in color
. The color
has to be specified in Java's default sRGB color model
(0xrrggbb
).
text
- text to printcolor
- color to use (0xrrggbb
)public abstract void println(java.lang.Object text, int color)
text
using the color
encoded in color
, then
terminates the line. The color
has to be specified in Java's default sRGB color model
(0xrrggbb
).
text
- text to printcolor
- color to use (0xrrggbb
)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |