|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
void print(java.awt.Color color, java.lang.String msg)
color
- The color. If null, the default color will be usedmsg
- The messagevoid writeAttrs(javax.swing.text.AttributeSet attrs, java.lang.String msg)
attrs
- Character attributesmsg
- The messagevoid setAttrs(int length, javax.swing.text.AttributeSet attrs)
length
- length of the textattrs
- The new attributesvoid commandDone()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |