|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.talvi.puffinplot.PuffinPrefs
public final class PuffinPrefs
PuffinPrefs stores, loads, and saves PuffinPlot's user preferences.
It is essentially a convenience wrapper around a
Preferences object.
| Constructor Summary | |
|---|---|
PuffinPrefs(PuffinApp app)
Instantiates a set of PuffinPlot preferences for the specified PuffinApp instance. |
|
| Method Summary | |
|---|---|
void |
exportToFile(java.io.File file)
Exports the current preferences to a specified file. |
TwoGeeLoader.Protocol |
get2gProtocol()
Returns the measurement protocol used when opening 2G data files. |
java.awt.geom.Rectangle2D |
getPlotSize(java.lang.String plotName)
Gives the configured size and position for a specified plot. |
java.util.prefs.Preferences |
getPrefs()
Returns the underlying Preferences object which holds the
preferences. |
SensorLengths |
getSensorLengths()
Returns the effective sensor lengths for opening 2G data files. |
void |
importFromFile(java.io.File file)
Imports preferences from a specified file. |
boolean |
isAxisScaleLocked()
Reports whether the axis scale is locked across all samples in the current suite. |
boolean |
isPcaAnchored()
Reports whether PCA fits should be anchored to the origin. |
void |
load()
Loads the preferences from the preferences backing store. |
void |
save()
Saves the preferences to the preferences backing store. |
void |
set2gProtocol(TwoGeeLoader.Protocol protocol)
Sets the measurement protocol to use when opening 2G data files. |
void |
setAxisScaleLocked(boolean axisScaleLocked)
Sets whether the axis scale is locked across all samples in the current suite. |
void |
setPcaAnchored(boolean pcaThroughOrigin)
Sets whether PCA fits should be anchored to the origin. |
void |
setSensorLengths(SensorLengths sensorLengths)
Sets the effective sensor lengths for opening 2G data files. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PuffinPrefs(PuffinApp app)
PuffinApp instance. The preference settings are loaded
from the Preferences node associated with the package
containing PuffinPrefs.
app - the PuffinPlot instance for which to create the preferences| Method Detail |
|---|
public java.util.prefs.Preferences getPrefs()
Preferences object which holds the
preferences.
public boolean isAxisScaleLocked()
true if the axis scale is lockedpublic void setAxisScaleLocked(boolean axisScaleLocked)
axisScaleLocked - true to lock the axis scale,
false to unlock itpublic SensorLengths getSensorLengths()
public void setSensorLengths(SensorLengths sensorLengths)
sensorLengths - the effective sensor lengths for opening
2G data filespublic boolean isPcaAnchored()
true if PCA fits should be anchored to the origin.PcaValuespublic void setPcaAnchored(boolean pcaThroughOrigin)
pcaThroughOrigin - true if PCA fits should
be anchored to the origin.PcaValuespublic java.awt.geom.Rectangle2D getPlotSize(java.lang.String plotName)
plotName - the name of a plot
Plotpublic void load()
Preferencespublic void save()
Preferencespublic void exportToFile(java.io.File file)
file - the file to which to save the preferencespublic void importFromFile(java.io.File file)
file - the file from which to import the preferencespublic TwoGeeLoader.Protocol get2gProtocol()
public void set2gProtocol(TwoGeeLoader.Protocol protocol)
protocol - the measurement protocol to use when opening 2G data files
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||