org.openscience.jmol.app
class ConsoleDocument extends DefaultStyledDocument
| Field Summary | |
|---|---|
| SimpleAttributeSet | attEcho |
| SimpleAttributeSet | attError |
| SimpleAttributeSet | attPrompt |
| SimpleAttributeSet | attStatus |
| SimpleAttributeSet | attUserInput |
| ConsoleTextPane | consoleTextPane |
| int | offsetAfterPrompt |
| Position | positionAfterPrompt |
| Position | positionBeforePrompt |
| Constructor Summary | |
|---|---|
| ConsoleDocument() | |
| Method Summary | |
|---|---|
| void | appendNewline() |
| void | clearContent()
Removes all content of the script window, and add a new prompt. |
| void | colorCommand(SimpleAttributeSet att) |
| String | getCommandString() |
| void | insertString(int offs, String str, AttributeSet a) |
| void | outputBeforePrompt(String str, SimpleAttributeSet attribute) |
| void | outputEcho(String strEcho) |
| void | outputError(String strError) |
| void | outputErrorForeground(String strError) |
| void | outputStatus(String strStatus) |
| void | remove(int offs, int len) |
| void | replace(int offs, int length, String str, AttributeSet attrs) |
| void | replaceCommand(String newCommand, boolean isError)
Replaces current command on script.
|
| void | setConsoleTextPane(ConsoleTextPane consoleTextPane) |
| void | setNoPrompt() |
| void | setOffsetPositions() |
| void | setPrompt() |
Parameters: newCommand new command value isError true to set error color ends with #??
Throws: BadLocationException