public class ErrorOutput extends java.lang.Object implements Output
Constructor and Description |
---|
ErrorOutput(Console c) |
ErrorOutput(Output output,
java.awt.Color errorColor) |
Modifier and Type | Method and Description |
---|---|
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 |
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.
|
public ErrorOutput(Console c)
public ErrorOutput(Output output, java.awt.Color errorColor)
public void print(java.awt.Color color, java.lang.String msg)
Output
public void writeAttrs(javax.swing.text.AttributeSet attrs, java.lang.String msg)
Output
writeAttrs
in interface Output
attrs
- Character attributesmsg
- The messagepublic void setAttrs(int length, javax.swing.text.AttributeSet attrs)
Output
public void commandDone()
Output
commandDone
in interface Output