Package heronarts.lx

Interface LX.Listener

All Known Implementing Classes:
LXViewEngine
Enclosing class:
LX

public static interface LX.Listener
Listener for top-level events
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    modelChanged(LX lx, LXModel model)
    Fired whenever a new model instance is set on this LX instance.
    default void
    Fired when the generation of a model has been changed.
  • Method Details

    • modelChanged

      default void modelChanged(LX lx, LXModel model)
      Fired whenever a new model instance is set on this LX instance. The passed model is an entirely new object that has not been set before.
      Parameters:
      lx - LX instance
      model - Model instance
    • modelGenerationChanged

      default void modelGenerationChanged(LX lx, LXModel model)
      Fired when the generation of a model has been changed. This is the same model instance that has already been set on LX, but it has been modified. This is also fired the very first time a model is set (e.g. generation 0 for the model). Listeners that wish to take generic action based upon any new model geometry, whether it's an existing or new model, may listen to just this method.
      Parameters:
      lx - LX instance
      model - model instance