public class StiltsMonitor
extends java.lang.Object
Constructor | Description |
---|---|
StiltsMonitor(PlotPanel plotPanel) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
javax.swing.Action[] |
getActions() |
Returns a list of actions that the GUI can present to the user
relating to the displayed command.
|
javax.swing.Action |
getClipboardAction() |
Returns an action that copies all the current stilts command text
into the system clipboard.
|
javax.swing.Action |
getErrorAction() |
Returns an action that will pop up the error resulting from
attempting to execute the current stilts command in a dialog window,
if an error exists.
|
javax.swing.Action |
getExecuteAction() |
Returns an action that will attempt to execute the current
stilts command and display the result in a dialog window.
|
javax.swing.text.JTextComponent |
getTextPanel() |
Returns the text panel which displays the stilts command.
|
int |
getWidthCharacters() |
Returns the width of the text display panel in characters.
|
void |
setFormatter(uk.ac.starlink.ttools.plot2.task.StiltsPlotFormatter formatter) |
Sets the object that controls the details of formatting stilts
commands.
|
static javax.swing.JComponent |
wrapTextPanel(javax.swing.text.JTextComponent textPanel) |
Utility method for packaging the text panel returned by this
object's
getTextPanel() method. |
public StiltsMonitor(PlotPanel plotPanel)
plotPanel
- panel to mirrorpublic void setFormatter(uk.ac.starlink.ttools.plot2.task.StiltsPlotFormatter formatter)
formatter
- new formatterpublic javax.swing.text.JTextComponent getTextPanel()
public javax.swing.Action getClipboardAction()
public javax.swing.Action getExecuteAction()
public javax.swing.Action getErrorAction()
public javax.swing.Action[] getActions()
public int getWidthCharacters()
public static javax.swing.JComponent wrapTextPanel(javax.swing.text.JTextComponent textPanel)
getTextPanel()
method.
This puts it in a scroll pane, and makes sure the lines don't wrap.textPanel
- text panel, supposed to be from this monitorCopyright ? 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.