public class TrendingPreferences extends Object implements org.freehep.jas.services.PreferencesTopic
| Constructor and Description |
|---|
TrendingPreferences(LsstTrendingPlugin plugin)
Constructs PluginPreferences object and optionally initializes property values from saved user preferences.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(JComponent gui)
Reads GUI and updates current settings.
|
JComponent |
component() |
int |
getDnd() |
int |
getDoubleClick() |
EnumSet<Trend.Meta> |
getDrawMeta() |
int |
getNBins() |
int |
getRefreshMax() |
int |
getRefreshMin() |
boolean |
isAutoSave() |
boolean |
isAutoStart() |
boolean |
isUseRawData() |
boolean |
isWarnOnAlarm() |
String[] |
path() |
protected void |
restore()
Initializes current settings from saved user preferences.
|
protected void |
save()
Saves user preferences.
|
void |
setAutoSave(boolean autoSave,
boolean save) |
void |
setAutoStart(boolean autoStart,
boolean save) |
void |
setDnd(int dnd,
boolean save) |
void |
setDoubleClick(int doubleClick,
boolean save) |
void |
setDrawMeta(EnumSet<Trend.Meta> drawMeta,
boolean save) |
void |
setNBins(int nBins,
boolean save) |
void |
setRefresh(int refreshMin,
int refreshMax,
boolean save) |
void |
setUseRawData(boolean useRawData,
boolean save) |
void |
setWarnOnAlarm(boolean warnOnAlarm,
boolean save) |
public TrendingPreferences(LsstTrendingPlugin plugin)
protected final void restore()
protected void save()
public boolean isAutoStart()
public boolean isAutoSave()
public boolean isUseRawData()
public int getNBins()
public int getRefreshMin()
public int getRefreshMax()
public boolean isWarnOnAlarm()
public EnumSet<Trend.Meta> getDrawMeta()
public int getDoubleClick()
public int getDnd()
public void setAutoStart(boolean autoStart,
boolean save)
public void setAutoSave(boolean autoSave,
boolean save)
public void setUseRawData(boolean useRawData,
boolean save)
public void setNBins(int nBins,
boolean save)
public void setRefresh(int refreshMin,
int refreshMax,
boolean save)
public void setWarnOnAlarm(boolean warnOnAlarm,
boolean save)
public void setDrawMeta(EnumSet<Trend.Meta> drawMeta, boolean save)
public void setDoubleClick(int doubleClick,
boolean save)
public void setDnd(int dnd,
boolean save)
public String[] path()
path in interface org.freehep.jas.services.PreferencesTopicpublic JComponent component()
component in interface org.freehep.jas.services.PreferencesTopicpublic boolean apply(JComponent gui)
apply in interface org.freehep.jas.services.PreferencesTopicCopyright © 2016 LSST. All rights reserved.