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 Details

    • scriptOutputField

      public ca.phon.opgraph.OutputField scriptOutputField
  • Constructor Details

    • PhonScriptNode

      public PhonScriptNode()
    • PhonScriptNode

      public PhonScriptNode(String text)
    • PhonScriptNode

      public PhonScriptNode(PhonScript script)
  • Method Details

    • toOpNode

      public ca.phon.opgraph.OpNode toOpNode()
      Specified by:
      toOpNode in interface ScriptNode
    • getScriptPanel

      public ScriptPanel getScriptPanel()
      Specified by:
      getScriptPanel in interface ScriptNode
    • reloadFields

      public void reloadFields() throws PhonScriptException
      Specified by:
      reloadFields in interface ScriptNode
      Throws:
      PhonScriptException
    • operate

      public void operate(ca.phon.opgraph.OpContext context) throws ca.phon.opgraph.exceptions.ProcessingException
      Specified by:
      operate in class ca.phon.opgraph.OpNode
      Throws:
      ca.phon.opgraph.exceptions.ProcessingException
    • getScript

      public PhonScript getScript()
      Specified by:
      getScript in interface ScriptNode
    • getComponent

      public Component getComponent(ca.phon.opgraph.app.GraphDocument document)
      Specified by:
      getComponent in interface ca.phon.opgraph.app.extensions.NodeSettings
    • createSettingsPanel

      protected JComponent createSettingsPanel()
    • getSettings

      public Properties getSettings()
      Specified by:
      getSettings in interface ca.phon.opgraph.app.extensions.NodeSettings
    • loadSettings

      public void loadSettings(Properties properties)
      Specified by:
      loadSettings in interface ca.phon.opgraph.app.extensions.NodeSettings
    • addContextMenuItems

      public void addContextMenuItems(JPopupMenu jPopupMenu, ca.phon.opgraph.app.GraphDocument graphDocument, MouseEvent mouseEvent)
      Specified by:
      addContextMenuItems in interface ca.phon.opgraph.app.components.canvas.CanvasContextMenuExtension