Class SNTInterpreterPane

java.lang.Object
sc.fiji.snt.gui.SNTInterpreterPane
All Implemented Interfaces:
org.scijava.widget.UIComponent<JComponent>

public class SNTInterpreterPane extends Object implements org.scijava.widget.UIComponent<JComponent>
SNT's interpreter UI pane. A targeted fork of org.scijava.ui.swing.script.InterpreterPane with a single change: the vanilla PromptPane is replaced by SNTPromptPane, giving the input area Groovy syntax highlighting via SNTEditorPane. The corresponding scroll pane is sourced from SNTPromptPane.getScrollPane() to preserve RSyntaxTextArea-specific rendering rather than wrapping in a plain JScrollPane.
Author:
Tiago Ferreira
See Also:
  • Constructor Details

    • SNTInterpreterPane

      public SNTInterpreterPane(org.scijava.Context context, String languagePreference)
  • Method Details

    • getPrompt

      public SNTPromptPane getPrompt()
      Gets the associated prompt pane.
    • getPromptEditor

      public SNTEditorPane getPromptEditor()
      Gets the associated prompt pane.
    • getOutput

      public org.scijava.ui.swing.script.OutputPane getOutput()
      Gets the associated output pane.
    • getREPL

      public org.scijava.script.ScriptREPL getREPL()
      Gets the associated script REPL.
    • print

      public void print(String string)
      Prints a message to the output panel.
    • dispose

      public void dispose()
    • getComponent

      public JComponent getComponent()
      Specified by:
      getComponent in interface org.scijava.widget.UIComponent<JComponent>
    • getComponentType

      public Class<JComponent> getComponentType()
      Specified by:
      getComponentType in interface org.scijava.widget.UIComponent<JComponent>