public class DefaultExpressionEvaluatorSwingManager extends java.lang.Object implements ExpressionEvaluatorSwingManager
ExpressionEvaluatorSwingManager.FileNameAndExtension
Constructor and Description |
---|
DefaultExpressionEvaluatorSwingManager() |
Modifier and Type | Method and Description |
---|---|
CalculatorController |
createCalculatorController(javax.swing.text.JTextComponent text,
int dataType) |
Element.ConstantElement |
createConstantElement(java.lang.Object value,
java.lang.String label) |
Element.ConstantElement |
createConstantElement(java.lang.Object value,
java.lang.String label,
java.lang.String description) |
Element |
createElement(java.lang.String name,
java.lang.Object... parameters) |
java.util.List<Element> |
createElements(java.util.Collection<SymbolTable> symbolTables,
java.util.function.Predicate<Function> isAllowed) |
ExpressionPickerController |
createExpressionPickerController(javax.swing.JComboBox combo,
javax.swing.JButton button,
javax.swing.JButton bookmarks,
javax.swing.JButton history) |
ExpressionPickerController |
createExpressionPickerController(javax.swing.text.JTextComponent text,
javax.swing.JButton button) |
ExpressionPickerController |
createExpressionPickerController(javax.swing.text.JTextComponent text,
javax.swing.JButton button,
javax.swing.JButton bookmarks,
javax.swing.JButton history) |
Element.FunctionElement |
createFunctionElement(Function function) |
Element.GroupElement |
createGroupElement(java.lang.String name) |
Element.GroupElement |
createGroupElement(java.lang.String name,
java.util.List<Element> elements) |
JExpressionBuilder |
createJExpressionBuilder() |
JExpressionBuilder |
createJExpressionBuilder(ExpressionBuilderConfig config) |
javax.swing.Action |
createJExpressionBuilderAction(javax.swing.text.JTextComponent jtext) |
JExpressionBuilder |
createJExpressionBuilderAssistant(javax.swing.text.JTextComponent expression) |
JExpressionBuilder |
createJExpressionBuilderAssistant(JTextComponentProxy expression) |
JExpressionPicker |
createJExpressionPicker() |
JScriptEditor |
createJScriptEditor(Script script) |
javax.swing.Action |
createUniqueTemporalFileAction(javax.swing.text.JTextComponent jtext,
<any> nameAndExtension) |
javax.swing.Action |
createUniqueTemporalFileAction(javax.swing.text.JTextComponent jtext,
java.lang.String filename,
java.lang.String fileExtension) |
java.util.Collection<ElementFactory> |
getElementFactories() |
java.util.Collection<FunctionAdditionalPanelFactory> |
getFunctionAdditionalPanelFactories() |
FunctionAdditionalPanelFactory |
getFunctionAdditionalPanelFactory(java.lang.String functionName) |
javax.swing.ImageIcon |
loadImageFromIconTheme(java.lang.String imageName) |
void |
registerAdditionalPanel(FunctionAdditionalPanelFactory factory) |
void |
registerElement(ElementFactory factory) |
public DefaultExpressionEvaluatorSwingManager()
public java.util.List<Element> createElements(java.util.Collection<SymbolTable> symbolTables, java.util.function.Predicate<Function> isAllowed)
createElements
in interface ExpressionEvaluatorSwingManager
public void registerElement(ElementFactory factory)
registerElement
in interface ExpressionEvaluatorSwingManager
public java.util.Collection<ElementFactory> getElementFactories()
getElementFactories
in interface ExpressionEvaluatorSwingManager
public javax.swing.Action createJExpressionBuilderAction(javax.swing.text.JTextComponent jtext)
createJExpressionBuilderAction
in interface ExpressionEvaluatorSwingManager
public javax.swing.Action createUniqueTemporalFileAction(javax.swing.text.JTextComponent jtext, java.lang.String filename, java.lang.String fileExtension)
createUniqueTemporalFileAction
in interface ExpressionEvaluatorSwingManager
public javax.swing.Action createUniqueTemporalFileAction(javax.swing.text.JTextComponent jtext, <any> nameAndExtension)
createUniqueTemporalFileAction
in interface ExpressionEvaluatorSwingManager
public JExpressionBuilder createJExpressionBuilder(ExpressionBuilderConfig config)
public JExpressionBuilder createJExpressionBuilder()
createJExpressionBuilder
in interface ExpressionEvaluatorSwingManager
public JExpressionBuilder createJExpressionBuilderAssistant(javax.swing.text.JTextComponent expression)
createJExpressionBuilderAssistant
in interface ExpressionEvaluatorSwingManager
public JExpressionBuilder createJExpressionBuilderAssistant(JTextComponentProxy expression)
createJExpressionBuilderAssistant
in interface ExpressionEvaluatorSwingManager
public javax.swing.ImageIcon loadImageFromIconTheme(java.lang.String imageName)
public Element createElement(java.lang.String name, java.lang.Object... parameters)
createElement
in interface ExpressionEvaluatorSwingManager
public Element.GroupElement createGroupElement(java.lang.String name)
createGroupElement
in interface ExpressionEvaluatorSwingManager
public Element.GroupElement createGroupElement(java.lang.String name, java.util.List<Element> elements)
createGroupElement
in interface ExpressionEvaluatorSwingManager
public Element.FunctionElement createFunctionElement(Function function)
createFunctionElement
in interface ExpressionEvaluatorSwingManager
public Element.ConstantElement createConstantElement(java.lang.Object value, java.lang.String label)
createConstantElement
in interface ExpressionEvaluatorSwingManager
public Element.ConstantElement createConstantElement(java.lang.Object value, java.lang.String label, java.lang.String description)
createConstantElement
in interface ExpressionEvaluatorSwingManager
public ExpressionPickerController createExpressionPickerController(javax.swing.text.JTextComponent text, javax.swing.JButton button)
createExpressionPickerController
in interface ExpressionEvaluatorSwingManager
public ExpressionPickerController createExpressionPickerController(javax.swing.text.JTextComponent text, javax.swing.JButton button, javax.swing.JButton bookmarks, javax.swing.JButton history)
createExpressionPickerController
in interface ExpressionEvaluatorSwingManager
public ExpressionPickerController createExpressionPickerController(javax.swing.JComboBox combo, javax.swing.JButton button, javax.swing.JButton bookmarks, javax.swing.JButton history)
createExpressionPickerController
in interface ExpressionEvaluatorSwingManager
public JExpressionPicker createJExpressionPicker()
createJExpressionPicker
in interface ExpressionEvaluatorSwingManager
public CalculatorController createCalculatorController(javax.swing.text.JTextComponent text, int dataType)
createCalculatorController
in interface ExpressionEvaluatorSwingManager
public void registerAdditionalPanel(FunctionAdditionalPanelFactory factory)
registerAdditionalPanel
in interface ExpressionEvaluatorSwingManager
public java.util.Collection<FunctionAdditionalPanelFactory> getFunctionAdditionalPanelFactories()
getFunctionAdditionalPanelFactories
in interface ExpressionEvaluatorSwingManager
public FunctionAdditionalPanelFactory getFunctionAdditionalPanelFactory(java.lang.String functionName)
getFunctionAdditionalPanelFactory
in interface ExpressionEvaluatorSwingManager
public JScriptEditor createJScriptEditor(Script script)
createJScriptEditor
in interface ExpressionEvaluatorSwingManager