console
Class ErrorOutput

java.lang.Object
  extended by console.ErrorOutput
All Implemented Interfaces:
Output

public class ErrorOutput
extends java.lang.Object
implements Output


Constructor Summary
ErrorOutput(Console c)
           
ErrorOutput(Output output, java.awt.Color errorColor)
           
 
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 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

ErrorOutput

public ErrorOutput(Console c)

ErrorOutput

public ErrorOutput(Output output,
                   java.awt.Color errorColor)
Method Detail

print

public void print(java.awt.Color color,
                  java.lang.String msg)
Description copied from interface: Output
Prints a line of text with the specified color.

Specified by:
print in interface Output
Parameters:
color - The color. If null, the default color will be used
msg - The message

writeAttrs

public void writeAttrs(javax.swing.text.AttributeSet attrs,
                       java.lang.String msg)
Description copied from interface: Output
Prints a string of text with the specified color, without the terminating newline.

Specified by:
writeAttrs in interface Output
Parameters:
attrs - Character attributes
msg - The message

setAttrs

public void setAttrs(int length,
                     javax.swing.text.AttributeSet attrs)
Description copied from interface: Output
Changes the attributes of the given text selection to those specified.

Specified by:
setAttrs in interface Output
Parameters:
length - length of the text
attrs - The new attributes

commandDone

public void commandDone()
Description copied from interface: Output
Call when the command finishes executing.

Specified by:
commandDone in interface Output