console
Interface Output

All Known Implementing Classes:
BufferOutput, Console.ShellState, ErrorOutput

public interface Output

Output interface - for console output devices.


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.
 

Method Detail

print

void print(java.awt.Color color,
           java.lang.String msg)
Prints a line of text with the specified color.

Parameters:
color - The color. If null, the default color will be used
msg - The message

writeAttrs

void writeAttrs(javax.swing.text.AttributeSet attrs,
                java.lang.String msg)
Prints a string of text with the specified color, without the terminating newline.

Parameters:
attrs - Character attributes
msg - The message
Since:
Console 4.0

setAttrs

void setAttrs(int length,
              javax.swing.text.AttributeSet attrs)
Changes the attributes of the given text selection to those specified.

Parameters:
length - length of the text
attrs - The new attributes
Since:
Console 4.0

commandDone

void commandDone()
Call when the command finishes executing.