Package heronarts.lx

Class LXModelComponent

All Implemented Interfaces:
LXLoopTask, LXPath, LXSerializable, LXParameterListener
Direct Known Subclasses:
LXBus, LXLayeredComponent

public abstract class LXModelComponent extends LXModulatorComponent
A component that keeps a reference to a particular model, which may potentially be different than the global model.
  • Field Details

  • Constructor Details

    • LXModelComponent

      protected LXModelComponent(LX lx)
    • LXModelComponent

      protected LXModelComponent(LX lx, String label)
  • Method Details

    • getModel

      public LXModel getModel()
    • setModel

      public LXModelComponent setModel(LXModel model)
    • loop

      public void loop(double deltaMs)
      Specified by:
      loop in interface LXLoopTask
      Overrides:
      loop in class LXModulatorComponent
    • onModelChanged

      protected void onModelChanged(LXModel model)
      Subclasses should override to handle changes to which model they are addressing. This method will be invoked at the start of the next core loop invocation, after the buffer has been updated.
      Parameters:
      model - New model