Package heronarts.lx

Class LXPreferences

java.lang.Object
heronarts.lx.LXPreferences
All Implemented Interfaces:
LXSerializable, LXParameterListener

public class LXPreferences extends Object implements LXSerializable, LXParameterListener
  • Field Details

  • Constructor Details

    • LXPreferences

      protected LXPreferences(LX lx)
  • Method Details

    • onParameterChanged

      public void onParameterChanged(LXParameter p)
      Description copied from interface: LXParameterListener
      Invoked when the value of a parameter is changed.
      Specified by:
      onParameterChanged in interface LXParameterListener
      Parameters:
      p - The parameter that has changed its value
    • getWindowWidth

      public int getWindowWidth()
    • getWindowHeight

      public int getWindowHeight()
    • setWindowSize

      public void setWindowSize(int windowWidth, int windowHeight)
    • setWindowSize

      public void setWindowSize(int windowWidth, int windowHeight, int windowPosX, int windowPosY)
    • getWindowPosX

      public int getWindowPosX()
    • getWindowPosY

      public int getWindowPosY()
    • setWindowPosition

      public void setWindowPosition(int windowPosX, int windowPosY)
    • setProject

      protected void setProject(File project)
    • setSchedule

      public void setSchedule(File schedule)
    • save

      public void save(LX lx, JsonObject object)
      Description copied from interface: LXSerializable
      Serializes this instance into the JSON object
      Specified by:
      save in interface LXSerializable
      Parameters:
      lx - LX instance
      object - Object to serialize into
    • load

      public void load(LX lx, JsonObject object)
      Description copied from interface: LXSerializable
      Restores this instance from a JSON object
      Specified by:
      load in interface LXSerializable
      Parameters:
      lx - LX instance
      object - Object to deserialize
    • loadEULA

      public void loadEULA()
    • load

      public void load()
    • loadInitialProject

      public void loadInitialProject(File overrideProjectFile)
    • loadInitialSchedule

      public void loadInitialSchedule()