console
Class BufferOutput

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

public class BufferOutput
extends java.lang.Object
implements Output

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

BufferOutput

public BufferOutput(Console console)

BufferOutput

public BufferOutput(Console console,
                    java.lang.String mode)
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

printColored

public void printColored(java.lang.String message)
Should this run through error handlers and print in colors?