|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectconsole.BufferOutput
public class BufferOutput
Output to buffer implementation.
| Constructor Summary | |
|---|---|
BufferOutput(Console console)
|
|
BufferOutput(Console console,
java.lang.String mode)
|
|
| Method Summary | |
|---|---|
void |
commandDone()
Call when the command finishes executing. |
void |
print(java.awt.Color color,
java.lang.String msg)
Prints a line of text with the specified color. |
void |
printColored(java.lang.String message)
Should this run through error handlers and print in colors? |
void |
setAttrs(int length,
javax.swing.text.AttributeSet attrs)
Changes the attributes of the given text selection to those specified. |
void |
writeAttrs(javax.swing.text.AttributeSet attrs,
java.lang.String msg)
Prints a string of text with the specified color, without the terminating newline. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BufferOutput(Console console)
public BufferOutput(Console console,
java.lang.String mode)
| Method Detail |
|---|
public void print(java.awt.Color color,
java.lang.String msg)
Output
print in interface Outputcolor - The color. If null, the default color will be usedmsg - The message
public void writeAttrs(javax.swing.text.AttributeSet attrs,
java.lang.String msg)
Output
writeAttrs in interface Outputattrs - Character attributesmsg - The message
public void setAttrs(int length,
javax.swing.text.AttributeSet attrs)
Output
setAttrs in interface Outputlength - length of the textattrs - The new attributespublic void commandDone()
Output
commandDone in interface Outputpublic void printColored(java.lang.String message)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||