Package heronarts.lx
Class LXPreferences
java.lang.Object
heronarts.lx.LXPreferences
- All Implemented Interfaces:
LXSerializable,LXParameterListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface heronarts.lx.LXSerializable
LXSerializable.Utils -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal BooleanParameterfinal BooleanParameterfinal BooleanParameterfinal BooleanParameterfinal BooleanParameterfinal BooleanParameterfinal BooleanParameterfinal StringParameterfinal DiscreteParameter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintintvoidload()voidload(LX lx, JsonObject object) Restores this instance from a JSON objectvoidloadEULA()voidloadInitialProject(File overrideProjectFile) voidloadInitialProject(File overrideProjectFile, File fallbackProjectFile) voidvoidInvoked when the value of a parameter is changed.voidsave(LX lx, JsonObject object) Serializes this instance into the JSON objectprotected voidsetProject(File project) voidsetSchedule(File schedule) voidsetWindowPosition(int windowPosX, int windowPosY) voidsetWindowSize(int windowWidth, int windowHeight) voidsetWindowSize(int windowWidth, int windowHeight, int windowPosX, int windowPosY)
-
Field Details
-
eulaAccepted
-
focusChannelOnCue
-
focusActivePattern
-
sendCueToOutput
-
uiZoom
-
showHelpMessages
-
schedulerEnabled
-
showCpuLoad
-
uiTheme
-
-
Constructor Details
-
LXPreferences
-
-
Method Details
-
onParameterChanged
Description copied from interface:LXParameterListenerInvoked when the value of a parameter is changed.- Specified by:
onParameterChangedin interfaceLXParameterListener- 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
-
setSchedule
-
save
Description copied from interface:LXSerializableSerializes this instance into the JSON object- Specified by:
savein interfaceLXSerializable- Parameters:
lx- LX instanceobject- Object to serialize into
-
load
Description copied from interface:LXSerializableRestores this instance from a JSON object- Specified by:
loadin interfaceLXSerializable- Parameters:
lx- LX instanceobject- Object to deserialize
-
loadEULA
public void loadEULA() -
load
public void load() -
loadInitialProject
-
loadInitialProject
-
loadInitialSchedule
public void loadInitialSchedule()
-