Class LXClipEngine

java.lang.Object
heronarts.lx.LXComponent
heronarts.lx.clip.LXClipEngine
All Implemented Interfaces:
LXPath, LXSerializable, LXOscComponent, LXParameterListener

public class LXClipEngine extends LXComponent implements LXOscComponent
  • Field Details

  • Constructor Details

    • LXClipEngine

      public LXClipEngine(LX lx)
  • Method Details

    • onParameterChanged

      public void onParameterChanged(LXParameter p)
      Description copied from class: LXComponent
      Subclasses are free to override this if desired. It will automatically fire for any listenable parameter that is registered with this component.
      Specified by:
      onParameterChanged in interface LXParameterListener
      Overrides:
      onParameterChanged in class LXComponent
      Parameters:
      p - Parameter that has a value change
    • getFocusedClip

      public LXClip getFocusedClip()
    • setFocusedClip

      public LXClipEngine setFocusedClip(LXClip clip)
    • getScene

      public TriggerParameter getScene(int index)
      Get the boolean parameter that launches a scene
      Parameters:
      index - Index of scene
      Returns:
      Scene at index
    • launchScene

      public LXClipEngine launchScene(int index)
      Launches the scene at given index
      Parameters:
      index - Scene index
      Returns:
      this
    • stopClips

      public LXClipEngine stopClips()
      Stops all running clips
      Returns:
      this
    • load

      public void load(LX lx, JsonObject obj)
      Description copied from class: LXComponent
      Loads the LX component. Restores the ID of the component, as well as its internal and user-facing parameters. Any explicitly registered children will be automatically loaded, so long as they are direct descendants. Dynamic arrays will not be automatically loaded, this is left to subclasses to implement.
      Specified by:
      load in interface LXSerializable
      Overrides:
      load in class LXComponent
      Parameters:
      lx - LX instance
      obj - Object to deserialize