Package ca.phon.app.opgraph.nodes
Class PhonScriptNode
java.lang.Object
ca.phon.opgraph.OpNode
ca.phon.app.opgraph.nodes.PhonScriptNode
- All Implemented Interfaces:
ScriptNode
,ca.phon.opgraph.app.components.canvas.CanvasContextMenuExtension
,ca.phon.opgraph.app.extensions.NodeSettings
,ca.phon.opgraph.dag.Vertex
,ca.phon.opgraph.extensions.Extendable
public class PhonScriptNode
extends ca.phon.opgraph.OpNode
implements ca.phon.opgraph.app.extensions.NodeSettings, ca.phon.opgraph.app.components.canvas.CanvasContextMenuExtension, ScriptNode
-
Field Summary
Fields inherited from class ca.phon.opgraph.OpNode
CATEGORY_PROPERTY, COMPLETED_FIELD, DESCRIPTION_PROPERTY, ENABLED_FIELD, ID_PROPERTY, NAME_PROPERTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addContextMenuItems
(JPopupMenu jPopupMenu, ca.phon.opgraph.app.GraphDocument graphDocument, MouseEvent mouseEvent) protected JComponent
getComponent
(ca.phon.opgraph.app.GraphDocument document) void
loadSettings
(Properties properties) void
operate
(ca.phon.opgraph.OpContext context) void
ca.phon.opgraph.OpNode
toOpNode()
Methods inherited from class ca.phon.opgraph.OpNode
addNodeListener, checkCanceled, getCategory, getDefaultCategory, getDefaultDescription, getDefaultName, getDescription, getExtension, getExtensionClasses, getId, getInputFields, getInputFieldWithKey, getName, getOutputFields, getOutputFieldWithKey, isBreakpoint, isCanceled, putExtension, putField, putField, putField, putField, removeAllInputFields, removeAllOutputFields, removeField, removeField, removeNodeListener, setBreakpoint, setCanceled, setCategory, setDescription, setId, setName
-
Field Details
-
scriptOutputField
public ca.phon.opgraph.OutputField scriptOutputField
-
-
Constructor Details
-
PhonScriptNode
public PhonScriptNode() -
PhonScriptNode
-
PhonScriptNode
-
-
Method Details
-
toOpNode
public ca.phon.opgraph.OpNode toOpNode()- Specified by:
toOpNode
in interfaceScriptNode
-
getScriptPanel
- Specified by:
getScriptPanel
in interfaceScriptNode
-
reloadFields
- Specified by:
reloadFields
in interfaceScriptNode
- Throws:
PhonScriptException
-
operate
public void operate(ca.phon.opgraph.OpContext context) throws ca.phon.opgraph.exceptions.ProcessingException - Specified by:
operate
in classca.phon.opgraph.OpNode
- Throws:
ca.phon.opgraph.exceptions.ProcessingException
-
getScript
- Specified by:
getScript
in interfaceScriptNode
-
getComponent
- Specified by:
getComponent
in interfaceca.phon.opgraph.app.extensions.NodeSettings
-
createSettingsPanel
-
getSettings
- Specified by:
getSettings
in interfaceca.phon.opgraph.app.extensions.NodeSettings
-
loadSettings
- Specified by:
loadSettings
in interfaceca.phon.opgraph.app.extensions.NodeSettings
-
addContextMenuItems
public void addContextMenuItems(JPopupMenu jPopupMenu, ca.phon.opgraph.app.GraphDocument graphDocument, MouseEvent mouseEvent) - Specified by:
addContextMenuItems
in interfaceca.phon.opgraph.app.components.canvas.CanvasContextMenuExtension
-