Class LXSnapshot.ActivePatternView

java.lang.Object
heronarts.lx.snapshot.LXSnapshot.View
heronarts.lx.snapshot.LXSnapshot.ActivePatternView
All Implemented Interfaces:
LXSerializable
Enclosing class:
LXSnapshot

public class LXSnapshot.ActivePatternView extends LXSnapshot.View
View for which pattern is active on a channel
  • Method Details

    • getCommand

      public LXCommand getCommand()
      Description copied from class: LXSnapshot.View
      Gets a command version of this view's operation, needed to make this action undoable.
      Specified by:
      getCommand in class LXSnapshot.View
      Returns:
      Command implementation of this view
    • isDependentOf

      protected boolean isDependentOf(LXComponent component)
      Description copied from class: LXSnapshot.View
      Subclasses must implement, determines whether the given view is dependent upon the specified component, and whether this view should be removed if the component is disposed
      Specified by:
      isDependentOf in class LXSnapshot.View
      Parameters:
      component - Component to test
      Returns:
      true if this view depends upon that component's existence, false otherwise
    • recall

      protected void recall()
      Description copied from class: LXSnapshot.View
      Subclasses must implement, should reapply the state of the view immediately
      Specified by:
      recall in class LXSnapshot.View
    • save

      public void save(LX lx, JsonObject obj)
      Description copied from interface: LXSerializable
      Serializes this instance into the JSON object
      Specified by:
      save in interface LXSerializable
      Overrides:
      save in class LXSnapshot.View
      Parameters:
      lx - LX instance
      obj - Object to serialize into