public final class PuffinPrefs
extends java.lang.Object
Preferences
object.Constructor and Description |
---|
PuffinPrefs(PuffinApp app)
Instantiates a set of PuffinPlot preferences for the specified
PuffinApp instance. |
Modifier and Type | Method and Description |
---|---|
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.
|
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 preferencespublic 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.PcaValues
public void setPcaAnchored(boolean pcaThroughOrigin)
pcaThroughOrigin
- true
if PCA fits should be anchored to
the origin.PcaValues
public java.awt.geom.Rectangle2D getPlotSize(java.lang.String plotName)
plotName
- the name of a plotPlot
public void load()
Preferences
public void save()
Preferences
public 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