Class PatternClipLane

All Implemented Interfaces:
LXPath, LXSerializable, LXAbstractChannel.Listener, LXBus.Listener, LXChannel.Listener, LXParameterListener

public class PatternClipLane extends LXClipLane<PatternClipEvent> implements LXChannel.Listener
  • Field Details

  • Method Details

    • patternRemoved

      public void patternRemoved(LXChannel channel, LXPattern pattern)
      Specified by:
      patternRemoved in interface LXChannel.Listener
    • findEventIndices

      public List<Integer> findEventIndices(LXPattern pattern)
      Return a list of the indices of events in this clip lane that reference the given pattern
      Parameters:
      pattern - Pattern
      Returns:
      List of indices that reference this pattern, or null if there are none
    • getPath

      public String getPath()
      Description copied from class: LXComponent
      Accessor for the path of this object. Returns the path this component was registered with. Some subclasses may override this if path structure is dynamic.
      Specified by:
      getPath in interface LXPath
      Overrides:
      getPath in class LXComponent
      Returns:
      path of this component relative to its parent
    • getLabel

      public String getLabel()
      Description copied from class: LXComponent
      Accessor for the user-facing label of this component. Objects that implement the LXComponent.Renamable interface may allow the user to change this value.
      Specified by:
      getLabel in interface LXPath
      Specified by:
      getLabel in class LXClipLane<PatternClipEvent>
      Returns:
      Label for this component
    • loadEvent

      protected PatternClipEvent loadEvent(LX lx, JsonObject eventObj)
      Specified by:
      loadEvent in class LXClipLane<PatternClipEvent>
    • dispose

      public void dispose()
      Description copied from class: LXComponent
      Invoked when a component is being removed from the system and will no longer be used at all. This unregisters the component and should free up any resources and parameter listeners. Ideally after this method is called the object should be eligible for garbage collection. Subclasses are generally expected to override this method to handle their particular cleanup work. They should also generally call super.dispose() at the appropriate time to perform the basic cleanup, which may need to happen either before or after cleaning up other objects.
      Overrides:
      dispose in class LXComponent