public class InterpreterPane extends Object implements UIComponent<JComponent>
Constructor and Description |
---|
InterpreterPane(Context context)
Constructs an interpreter UI pane for a SciJava scripting REPL.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
JComponent |
getComponent()
Gets the user interface component housing this object.
|
Class<JComponent> |
getComponentType()
Gets the type of the UI component housing the object.
|
ScriptREPL |
getREPL()
Gets the associated script REPL.
|
void |
print(String string)
Prints a message to the output panel.
|
public InterpreterPane(Context context)
context
- The SciJava application context to usepublic ScriptREPL getREPL()
public void print(String string)
public void dispose()
public JComponent getComponent()
UIComponent
getComponent
in interface UIComponent<JComponent>
public Class<JComponent> getComponentType()
UIComponent
This method is useful in case UIComponent.getComponent()
returns null in some
circumstances. In this way, it is still possible to query the type of the
UI component without forcing the conditions that instantiate it.
getComponentType
in interface UIComponent<JComponent>
Copyright © 2015–2022 SciJava. All rights reserved.