Package heronarts.lx.script
Class LXScriptEngine.ScriptInterface
java.lang.Object
heronarts.lx.script.LXScriptEngine.ScriptInterface
- Enclosing class:
- LXScriptEngine
Interface of methods exposed for Javascript to call back up into the LX device
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Include a filevoid
Used by the script to declare a java script knobvoid
Used by the script to declare a java script togglevoid
Used by the script to declare a java script trigger
-
Constructor Details
-
ScriptInterface
public ScriptInterface()
-
-
Method Details
-
include
Include a file- Parameters:
fileName
- File name, path relative to parent file- Throws:
IOException
ScriptException
-
knob
Used by the script to declare a java script knob- Parameters:
key
- Variable name/path for the knoblabel
- Label of knobdescription
- Helpful description of knobdef
- Default value
-
toggle
Used by the script to declare a java script toggle- Parameters:
key
- Variable name/path for the togglelabel
- Label of toggledescription
- Helpful description of toggledef
- Default value
-
trigger
Used by the script to declare a java script trigger- Parameters:
key
- Variable name/path for the triggerlabel
- Label of triggerdescription
- Helpful description of triggercallback
- Callback invoked when trigger fires
-