Class PatternClipLane

All Implemented Interfaces:
LXPath, LXSerializable, LXPatternEngine.Listener, LXParameterListener

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

  • Method Details

    • patternRemoved

      public void patternRemoved(LXPatternEngine channel, LXPattern pattern)
      Specified by:
      patternRemoved in interface LXPatternEngine.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
    • save

      public void save(LX lx, JsonObject obj)
      Description copied from class: LXComponent
      Serializes the LX component. By default, all internal and user-facing parameters are serialized, as well as any explicitly registered child components. Note that child arrays are not serialized, or any other dynamic components. Subclasses may override to perform more saving, and are expected to call super.save(lx, obj) at the appropriate time.
      Specified by:
      save in interface LXSerializable
      Overrides:
      save in class LXClipLane<PatternClipEvent>
      Parameters:
      lx - LX instance
      obj - Object to serialize into
    • loadEvent

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

      public void update(LX lx, JsonObject obj, PatternRack rack)
    • 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