Package gaiasky.util
Class GlobalConf.ProgramConf
- java.lang.Object
-
- gaiasky.util.GlobalConf.ProgramConf
-
- All Implemented Interfaces:
IObserver,GlobalConf.IConf
- Enclosing class:
- GlobalConf
public static class GlobalConf.ProgramConf extends java.lang.Object implements GlobalConf.IConf, IObserver
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGlobalConf.ProgramConf.StereoProfile
-
Field Summary
Fields Modifier and Type Field Description CubemapProjections.CubemapProjectionCUBEMAP_PROJECTIONCubemap projectionbooleanCUBEMAP360_MODEjava.lang.StringDATA_DESCRIPTOR_URLbooleanDISPLAY_DATASET_DIALOGWhether to display the dataset dialog at startup or notbooleanDISPLAY_HUDbooleanDISPLAY_MINIMAPbooleanDISPLAY_POINTER_COORDSjava.lang.StringLAST_OPEN_LOCATIONjava.lang.StringLOCALEbooleanMINIMAP_IN_WINDOWbooleanNET_MASTERIn a client-server configuration, this instance of Gaia Sky acts as a master and sends the state over the network to the slaves if this is set to truejava.util.List<java.lang.String>NET_MASTER_SLAVESList of slave URL locations.booleanNET_SLAVEIn a client-server configuration, this instance of Gaia Sky acts as a slave and receives the state over the network if this is set to trueintREST_PORTjava.lang.StringSCRIPT_LOCATIONbooleanSHOW_DEBUG_INFOGlobalConf.ProgramConf.StereoProfileSTEREO_PROFILEThis controls the side of the images in the stereoscopic modefloatSTEREOSCOPIC_EYE_SEPARATION_MEye separation in stereoscopic mode in metersbooleanSTEREOSCOPIC_MODEjava.lang.StringUI_THEMEstatic longVERSION_CHECK_INTERVAL_MSjava.lang.StringVERSION_CHECK_URLjava.time.InstantVERSION_LAST_TIMEjava.lang.StringVERSION_LAST_VERSION
-
Constructor Summary
Constructors Constructor Description ProgramConf()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetLastCheckedString()java.lang.StringgetNetName()java.lang.StringgetUIThemeBase()Gets the name of the UI theme without the "-x2" suffixvoidinitialize(boolean sHOW_DEBUG_INFO, java.lang.String uI_THEME, java.lang.String lOCALE, boolean sTEREOSCOPIC_MODE, GlobalConf.ProgramConf.StereoProfile sTEREO_PROFILE)voidinitialize(boolean sHOW_DEBUG_INFO, java.time.Instant lAST_CHECKED, java.lang.String lAST_VERSION, java.lang.String vERSION_CHECK_URL, java.lang.String dATA_DESCRIPTOR_URL, java.lang.String uI_THEME, java.lang.String sCRIPT_LOCATION, int rEST_PORT, java.lang.String lOCALE, boolean sTEREOSCOPIC_MODE, GlobalConf.ProgramConf.StereoProfile sTEREO_PROFILE, boolean cUBEMAP360_MODE, boolean dISPLAY_HUD, boolean dISPLAY_POINTER_COORDS, boolean dISPLAY_DATASET_DIALOG, boolean nET_MASTER, boolean nET_SLAVE, java.util.List<java.lang.String> nET_MASTER_SLAVES, java.lang.String lAST_OPEN_LOCATION, boolean dISPLAY_MINIMAP)booleanisHiDPITheme()booleanisStereoFullWidth()booleanisStereoHalfViewport()booleanisStereoHalfWidth()booleanisUINightMode()Returns whether the UI theme is in night modevoidnotify(Events event, java.lang.Object... data)
-
-
-
Field Detail
-
NET_SLAVE
public boolean NET_SLAVE
In a client-server configuration, this instance of Gaia Sky acts as a slave and receives the state over the network if this is set to true
-
NET_MASTER
public boolean NET_MASTER
In a client-server configuration, this instance of Gaia Sky acts as a master and sends the state over the network to the slaves if this is set to true
-
NET_MASTER_SLAVES
public java.util.List<java.lang.String> NET_MASTER_SLAVES
List of slave URL locations. Only relevant if {NET_MASTERis true
-
SHOW_DEBUG_INFO
public boolean SHOW_DEBUG_INFO
-
VERSION_CHECK_INTERVAL_MS
public static long VERSION_CHECK_INTERVAL_MS
-
VERSION_LAST_TIME
public java.time.Instant VERSION_LAST_TIME
-
VERSION_LAST_VERSION
public java.lang.String VERSION_LAST_VERSION
-
VERSION_CHECK_URL
public java.lang.String VERSION_CHECK_URL
-
DATA_DESCRIPTOR_URL
public java.lang.String DATA_DESCRIPTOR_URL
-
UI_THEME
public java.lang.String UI_THEME
-
SCRIPT_LOCATION
public java.lang.String SCRIPT_LOCATION
-
LAST_OPEN_LOCATION
public java.lang.String LAST_OPEN_LOCATION
-
REST_PORT
public int REST_PORT
-
LOCALE
public java.lang.String LOCALE
-
DISPLAY_HUD
public boolean DISPLAY_HUD
-
DISPLAY_POINTER_COORDS
public boolean DISPLAY_POINTER_COORDS
-
DISPLAY_MINIMAP
public boolean DISPLAY_MINIMAP
-
MINIMAP_IN_WINDOW
public boolean MINIMAP_IN_WINDOW
-
CUBEMAP360_MODE
public boolean CUBEMAP360_MODE
-
CUBEMAP_PROJECTION
public CubemapProjections.CubemapProjection CUBEMAP_PROJECTION
Cubemap projection
-
STEREOSCOPIC_MODE
public boolean STEREOSCOPIC_MODE
-
STEREOSCOPIC_EYE_SEPARATION_M
public float STEREOSCOPIC_EYE_SEPARATION_M
Eye separation in stereoscopic mode in meters
-
STEREO_PROFILE
public GlobalConf.ProgramConf.StereoProfile STEREO_PROFILE
This controls the side of the images in the stereoscopic mode
-
DISPLAY_DATASET_DIALOG
public boolean DISPLAY_DATASET_DIALOG
Whether to display the dataset dialog at startup or not
-
-
Method Detail
-
initialize
public void initialize(boolean sHOW_DEBUG_INFO, java.time.Instant lAST_CHECKED, java.lang.String lAST_VERSION, java.lang.String vERSION_CHECK_URL, java.lang.String dATA_DESCRIPTOR_URL, java.lang.String uI_THEME, java.lang.String sCRIPT_LOCATION, int rEST_PORT, java.lang.String lOCALE, boolean sTEREOSCOPIC_MODE, GlobalConf.ProgramConf.StereoProfile sTEREO_PROFILE, boolean cUBEMAP360_MODE, boolean dISPLAY_HUD, boolean dISPLAY_POINTER_COORDS, boolean dISPLAY_DATASET_DIALOG, boolean nET_MASTER, boolean nET_SLAVE, java.util.List<java.lang.String> nET_MASTER_SLAVES, java.lang.String lAST_OPEN_LOCATION, boolean dISPLAY_MINIMAP)
-
initialize
public void initialize(boolean sHOW_DEBUG_INFO, java.lang.String uI_THEME, java.lang.String lOCALE, boolean sTEREOSCOPIC_MODE, GlobalConf.ProgramConf.StereoProfile sTEREO_PROFILE)
-
getLastCheckedString
public java.lang.String getLastCheckedString()
-
isStereoHalfWidth
public boolean isStereoHalfWidth()
-
isStereoFullWidth
public boolean isStereoFullWidth()
-
isStereoHalfViewport
public boolean isStereoHalfViewport()
-
isUINightMode
public boolean isUINightMode()
Returns whether the UI theme is in night mode- Returns:
-
getUIThemeBase
public java.lang.String getUIThemeBase()
Gets the name of the UI theme without the "-x2" suffix- Returns:
- The base UI theme name
-
isHiDPITheme
public boolean isHiDPITheme()
-
getNetName
public java.lang.String getNetName()
-
-