public final class AutoplotSettings
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
autoplotData
autoplotData is the home where Autoplot's metadata is kept.
|
static java.lang.String |
PREF_LAST_OPEN_FOLDER |
static java.lang.String |
PREF_LAST_OPEN_VAP_FILE |
static java.lang.String |
PREF_LAST_OPEN_VAP_FOLDER |
static java.lang.String |
PREF_RECENTLY_OPENED_FILES |
static java.lang.String |
PROP_AUTOPLOTDATA
autoplotData is the home where Autoplot's metadata is kept.
|
static java.lang.String |
PROP_FSCACHE
fscache is where downloaded data is kept.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) |
java.lang.String |
getAutoplotData()
return the location where Autoplot is storing its data.
|
java.lang.String |
getFscache() |
java.util.prefs.Preferences |
getPreferences(java.lang.Class c)
wrapper that will handle legacy (v2016a) prefs, and will allow migration
to ~/autoplot_data/config area.
|
void |
loadPreferences()
load the preferences,
which include the location of the autoplot_data directory and fscache.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener) |
java.lang.String |
resolveProperty(java.lang.String name)
resolve the property, resolving references.
|
void |
setFscache(java.lang.String val) |
static AutoplotSettings |
settings() |
public static final java.lang.String PREF_LAST_OPEN_FOLDER
public static final java.lang.String PREF_RECENTLY_OPENED_FILES
public static final java.lang.String PREF_LAST_OPEN_VAP_FOLDER
public static final java.lang.String PREF_LAST_OPEN_VAP_FILE
protected java.lang.String autoplotData
public static final java.lang.String PROP_AUTOPLOTDATA
public static final java.lang.String PROP_FSCACHE
public static AutoplotSettings settings()
public void loadPreferences()
public java.util.prefs.Preferences getPreferences(java.lang.Class c)
c
- the class requesting preferences.public java.lang.String getAutoplotData()
public java.lang.String getFscache()
public void setFscache(java.lang.String val)
public java.lang.String resolveProperty(java.lang.String name)
name
- the name to resolve, such as PROP_AUTOPLOTDATA or PROP_FSCACHEpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)