|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JEditorPane
javax.swing.JTextPane
org.rosuda.JGR.toolkit.ConsoleOutput
public class ConsoleOutput
ConsoleOutput - implementation of a textpane providing different export possibilities.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JEditorPane |
|---|
JEditorPane.AccessibleJEditorPane, JEditorPane.AccessibleJEditorPaneHTML, JEditorPane.JEditorPaneAccessibleHypertextSupport |
| Nested classes/interfaces inherited from class javax.swing.text.JTextComponent |
|---|
JTextComponent.AccessibleJTextComponent, JTextComponent.KeyBinding |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JEditorPane |
|---|
HONOR_DISPLAY_PROPERTIES, W3C_LENGTH_UNITS |
| Fields inherited from class javax.swing.text.JTextComponent |
|---|
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ConsoleOutput()
|
|
| Method Summary | |
|---|---|
void |
append(String str,
AttributeSet a)
Append text to pane. |
void |
copyCommands()
Copy only the commands out of the pane. |
void |
copyOutput()
Copy the whole content of the pane. |
void |
copyResults()
Copy only the results from the pane. |
int |
getLineCount()
Count lines in this pane. |
int |
getLineEndOffset(int line)
Get endposition of line. |
int |
getLineOfOffset(int offset)
Get line related to current position. |
int |
getLineStartOffset(int line)
Get startposition of line. |
String |
getText()
Get text content of pane. |
String |
getText(int offs,
int len)
Get text content of pane, specified by supplied startposition and length. |
void |
removeAllFrom(int index)
Removes text beginnig at supplied position. |
void |
setFont(Font f)
Apply font to pane. |
void |
startExport()
Open export dialog. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConsoleOutput()
| Method Detail |
|---|
public void startExport()
public void copyCommands()
public void copyOutput()
public void copyResults()
public String getText()
getText in class JEditorPane
public String getText(int offs,
int len)
getText in class JTextComponent
public void append(String str,
AttributeSet a)
str - text which shoudl be appendeda - attribute-set for insertionpublic int getLineCount()
public int getLineStartOffset(int line)
throws BadLocationException
line - line-number
BadLocationException
public int getLineEndOffset(int line)
throws BadLocationException
line - line-number
BadLocationException
public int getLineOfOffset(int offset)
throws BadLocationException
offset - current position
BadLocationException
public void removeAllFrom(int index)
throws BadLocationException
index - startindex
BadLocationExceptionpublic void setFont(Font f)
setFont in class JComponent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||