<h2>org.autoplot.datasource.AutoplotSettings</h2><p>Autoplot's settings, stored in Java preferences, include things like the last folder opened. Also this code handles property resolution like ${HOME}/autoplot_data.</p> <hr> <a name="PREF_LAST_OPEN_FOLDER"></a> <h2>PREF_LAST_OPEN_FOLDER</h2> <p></p> <hr> <a name="PREF_RECENTLY_OPENED_FILES"></a> <h2>PREF_RECENTLY_OPENED_FILES</h2> <p></p> <hr> <a name="PREF_LAST_OPEN_VAP_FOLDER"></a> <h2>PREF_LAST_OPEN_VAP_FOLDER</h2> <p></p> <hr> <a name="PREF_LAST_OPEN_VAP_FILE"></a> <h2>PREF_LAST_OPEN_VAP_FILE</h2> <p></p> <hr> <a name="PROP_AUTOPLOTDATA"></a> <h2>PROP_AUTOPLOTDATA</h2> <p></p> <hr> <a name="PROP_FSCACHE"></a> <h2>PROP_FSCACHE</h2> <p></p> <hr> <a name="addPropertyChangeListener"></a> <h2>addPropertyChangeListener</h2> addPropertyChangeListener( <a href='https://docs.oracle.com/javase/8/docs/api/java/beans/PropertyChangeListener.html'>java.beans.PropertyChangeListener</a> listener ) → void <p></p> <h3>Parameters</h3> listener - a PropertyChangeListener <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=addPropertyChangeListener&unscoped_q=addPropertyChangeListener">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/datasource/AutoplotSettings.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/datasource/AutoplotSettings.html#addPropertyChangeListener">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/DataSource/src/org/autoplot/datasource/AutoplotSettings.java#l205">[view source]</a> <br> <br> <hr> <a name="getAutoplotData"></a> <h2>getAutoplotData</h2> getAutoplotData( ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> <p>return the location where Autoplot is storing its data. This includes bookmarks, history, and the file cache, and is typically "${HOME}/autoplot_data"</p> <h3>Returns:</h3> the user's Autoplot data folder. <br><br> <a href="https://github.com/autoplot/dev/search?q=getAutoplotData&unscoped_q=getAutoplotData">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/datasource/AutoplotSettings.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/datasource/AutoplotSettings.html#getAutoplotData">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/DataSource/src/org/autoplot/datasource/AutoplotSettings.java#l135">[view source]</a> <br> <br> <hr> <a name="getFscache"></a> <h2>getFscache</h2> getFscache( ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> <p></p> <h3>Returns:</h3> java.lang.String <br><br> <a href="https://github.com/autoplot/dev/search?q=getFscache&unscoped_q=getFscache">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/datasource/AutoplotSettings.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/datasource/AutoplotSettings.html#getFscache">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/DataSource/src/org/autoplot/datasource/AutoplotSettings.java#l146">[view source]</a> <br> <br> <hr> <a name="getPreferences"></a> <h2>getPreferences</h2> getPreferences( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html'>java.lang.Class</a> c ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/util/prefs/Preferences.html'>java.util.prefs.Preferences</a> <p>wrapper that will handle legacy (v2016a) prefs, and will allow migration to ~/autoplot_data/config area.</p> <h3>Parameters</h3> c - the class requesting preferences. <h3>Returns:</h3> the preferences object this class should use. <br><br> <a href="https://github.com/autoplot/dev/search?q=getPreferences&unscoped_q=getPreferences">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/datasource/AutoplotSettings.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/datasource/AutoplotSettings.html#getPreferences">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/DataSource/src/org/autoplot/datasource/AutoplotSettings.java#l114">[view source]</a> <br> <br> <hr> <a name="loadPreferences"></a> <h2>loadPreferences</h2> loadPreferences( ) → void <p>load the preferences, which include the location of the autoplot_data directory and fscache. The system property AUTOPLOT_DATA will override the user preference autoplotData which is by default "${HOME}/autoplot_data", and can be set on the command line. The environment variable AUTOPLOT_DATA will also override the default location. AUTOPLOT_FSCACHE is the location of the remote file mirror storing lots of data and can be moved separately.</p> <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=loadPreferences&unscoped_q=loadPreferences">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/datasource/AutoplotSettings.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/datasource/AutoplotSettings.html#loadPreferences">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/DataSource/src/org/autoplot/datasource/AutoplotSettings.java#l73">[view source]</a> <br> <br> <hr> <a name="removePropertyChangeListener"></a> <h2>removePropertyChangeListener</h2> removePropertyChangeListener( <a href='https://docs.oracle.com/javase/8/docs/api/java/beans/PropertyChangeListener.html'>java.beans.PropertyChangeListener</a> listener ) → void <p></p> <h3>Parameters</h3> listener - a PropertyChangeListener <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=removePropertyChangeListener&unscoped_q=removePropertyChangeListener">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/datasource/AutoplotSettings.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/datasource/AutoplotSettings.html#removePropertyChangeListener">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/DataSource/src/org/autoplot/datasource/AutoplotSettings.java#l209">[view source]</a> <br> <br> <hr> <a name="resolveProperty"></a> <h2>resolveProperty</h2> resolveProperty( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> name ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> <p>resolve the property, resolving references. For example, ${HOME} is replaced with System.getProperty("user.home").</p> <h3>Parameters</h3> name - the name to resolve, such as PROP_AUTOPLOTDATA or PROP_FSCACHE <h3>Returns:</h3> the value with references resolved. TODO: this should always make result end in slash... <br><br> <a href="https://github.com/autoplot/dev/search?q=resolveProperty&unscoped_q=resolveProperty">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/datasource/AutoplotSettings.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/datasource/AutoplotSettings.html#resolveProperty">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/DataSource/src/org/autoplot/datasource/AutoplotSettings.java#l184">[view source]</a> <br> <br> <hr> <a name="setFscache"></a> <h2>setFscache</h2> setFscache( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> val ) → void <p></p> <h3>Parameters</h3> val - a String <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=setFscache&unscoped_q=setFscache">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/datasource/AutoplotSettings.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/datasource/AutoplotSettings.html#setFscache">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/DataSource/src/org/autoplot/datasource/AutoplotSettings.java#l150">[view source]</a> <br> <br> <hr> <a name="settings"></a> <h2>settings</h2> settings( ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/datasource/AutoplotSettings.html'>org.autoplot.datasource.AutoplotSettings</a> <p></p> <h3>Returns:</h3> org.autoplot.datasource.AutoplotSettings <br><br> <a href="https://github.com/autoplot/dev/search?q=settings&unscoped_q=settings">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/datasource/AutoplotSettings.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/datasource/AutoplotSettings.html#settings">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/DataSource/src/org/autoplot/datasource/AutoplotSettings.java#l29">[view source]</a> <br> <br>