<h2>org.autoplot.PersistentStateSupport</h2><p></p>
<h2>PersistentStateSupport( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/graph/DasCanvas.html'>org.das2.graph.DasCanvas</a> canvas, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> extension )</h2>
<p>Provides a means for saving the application persistently, undo/redo support (TODO).
  canvas is the canvas to be serialized, extension identifies the application.  Note that
  internal changes to das may break saved files.</p>

<h2>PersistentStateSupport( <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html'>java.awt.Component</a> parent, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/PersistentStateSupport/SerializationStrategy.html'>org.autoplot.PersistentStateSupport.SerializationStrategy</a> strategy, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> extension )</h2>
<p></p>

<h2>PersistentStateSupport( )</h2>
<p>Creates a new instance of PersistentStateSupport</p>

<hr>
<a name="PROPERTY_OPENING"></a>
<h2>PROPERTY_OPENING</h2>
<p></p>

<hr>
<a name="PROPERTY_SAVING"></a>
<h2>PROPERTY_SAVING</h2>
<p></p>

<hr>
<a name="PROPERTY_DIRTY"></a>
<h2>PROPERTY_DIRTY</h2>
<p></p>

<hr>
<a name="PROPERTY_CURRENT_FILE"></a>
<h2>PROPERTY_CURRENT_FILE</h2>
<p></p>

<hr>
<a name="EMBED_DATA"></a>
<h2>EMBED_DATA</h2>
<p></p>

<hr>
<a name="ONLY_EMBED_LOCAL"></a>
<h2>ONLY_EMBED_LOCAL</h2>
<p></p>

<hr>
<a name="LOCAL_PWD_REFERENCES"></a>
<h2>LOCAL_PWD_REFERENCES</h2>
<p></p>

<hr>
<a name="PROP_DIRECTORY"></a>
<h2>PROP_DIRECTORY</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> l ) &rarr; void

<p>Adds a PropertyChangeListener to the listener list.</p>

<h3>Parameters</h3>
l - The listener to add.

<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/PersistentStateSupport.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/PersistentStateSupport.html#addPropertyChangeListener">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/PersistentStateSupport.java#l524">[view source]</a>
<br>
<br>
<hr>
<a name="close"></a>
<h2>close</h2>
close(  ) &rarr; void

<p>reset the current file so it is null.  We call this for example when
 we are finished with the file and would start a new file without a name.</p>

<h3>Returns:</h3>
void (returns nothing)

<br><br>
<a href="https://github.com/autoplot/dev/search?q=close&unscoped_q=close">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/PersistentStateSupport.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/PersistentStateSupport.html#close">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/PersistentStateSupport.java#l499">[view source]</a>
<br>
<br>
<hr>
<a name="createCurrentFileLabel"></a>
<h2>createCurrentFileLabel</h2>
createCurrentFileLabel(  ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/javax/swing/JLabel.html'>javax.swing.JLabel</a>

<p></p>

<h3>Returns:</h3>
javax.swing.JLabel

<br><br>
<a href="https://github.com/autoplot/dev/search?q=createCurrentFileLabel&unscoped_q=createCurrentFileLabel">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/PersistentStateSupport.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/PersistentStateSupport.html#createCurrentFileLabel">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/PersistentStateSupport.java#l404">[view source]</a>
<br>
<br>
<hr>
<a name="createOpenAction"></a>
<h2>createOpenAction</h2>
createOpenAction(  ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/javax/swing/Action.html'>javax.swing.Action</a>

<p></p>

<h3>Returns:</h3>
javax.swing.Action

<br><br>
<a href="https://github.com/autoplot/dev/search?q=createOpenAction&unscoped_q=createOpenAction">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/PersistentStateSupport.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/PersistentStateSupport.html#createOpenAction">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/PersistentStateSupport.java#l432">[view source]</a>
<br>
<br>
<hr>
<a name="createOpenRecentMenu"></a>
<h2>createOpenRecentMenu</h2>
createOpenRecentMenu(  ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/javax/swing/JMenu.html'>javax.swing.JMenu</a>

<p></p>

<h3>Returns:</h3>
javax.swing.JMenu

<br><br>
<a href="https://github.com/autoplot/dev/search?q=createOpenRecentMenu&unscoped_q=createOpenRecentMenu">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/PersistentStateSupport.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/PersistentStateSupport.html#createOpenRecentMenu">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/PersistentStateSupport.java#l396">[view source]</a>
<br>
<br>
<hr>
<a name="createSaveAction"></a>
<h2>createSaveAction</h2>
createSaveAction(  ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/javax/swing/Action.html'>javax.swing.Action</a>

<p></p>

<h3>Returns:</h3>
javax.swing.Action

<br><br>
<a href="https://github.com/autoplot/dev/search?q=createSaveAction&unscoped_q=createSaveAction">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/PersistentStateSupport.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/PersistentStateSupport.html#createSaveAction">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/PersistentStateSupport.java#l363">[view source]</a>
<br>
<br>
<hr>
<a name="createSaveAsAction"></a>
<h2>createSaveAsAction</h2>
createSaveAsAction(  ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/javax/swing/Action.html'>javax.swing.Action</a>

<p>Create an action which will trigger the save as dialog.  This is
 used to create a "save as" button.</p>

<h3>Returns:</h3>
the action
<br><br>
<a href="https://github.com/autoplot/dev/search?q=createSaveAsAction&unscoped_q=createSaveAsAction">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/PersistentStateSupport.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/PersistentStateSupport.html#createSaveAsAction">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/PersistentStateSupport.java#l184">[view source]</a>
<br>
<br>
<hr>
<a name="createSaveMenuItem"></a>
<h2>createSaveMenuItem</h2>
createSaveMenuItem(  ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/javax/swing/JMenuItem.html'>javax.swing.JMenuItem</a>

<p></p>

<h3>Returns:</h3>
javax.swing.JMenuItem

<br><br>
<a href="https://github.com/autoplot/dev/search?q=createSaveMenuItem&unscoped_q=createSaveMenuItem">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/PersistentStateSupport.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/PersistentStateSupport.html#createSaveMenuItem">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/PersistentStateSupport.java#l388">[view source]</a>
<br>
<br>
<hr>
<a name="getCurrentFile"></a>
<h2>getCurrentFile</h2>
getCurrentFile(  ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a>

<p>return the current file, which will be a reference to the local file system.</p>

<h3>Returns:</h3>
a String

<br><br>
<a href="https://github.com/autoplot/dev/search?q=getCurrentFile&unscoped_q=getCurrentFile">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/PersistentStateSupport.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/PersistentStateSupport.html#getCurrentFile">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/PersistentStateSupport.java#l582">[view source]</a>
<br>
<br>
<hr>
<a name="getDirectory"></a>
<h2>getDirectory</h2>
getDirectory(  ) &rarr; <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=getDirectory&unscoped_q=getDirectory">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/PersistentStateSupport.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/PersistentStateSupport.html#getDirectory">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/PersistentStateSupport.java#l557">[view source]</a>
<br>
<br>
<hr>
<a name="isCurrentFileOpened"></a>
<h2>isCurrentFileOpened</h2>
isCurrentFileOpened(  ) &rarr; boolean

<p>Property currentFileOpened indicates if the current file has ever been opened.  This
 is to handle the initial state where the current file is set, but should not be
 displayed because it has not been opened.</p>

<h3>Returns:</h3>
Value of property currentFileOpened.
<br><br>
<a href="https://github.com/autoplot/dev/search?q=isCurrentFileOpened&unscoped_q=isCurrentFileOpened">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/PersistentStateSupport.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/PersistentStateSupport.html#isCurrentFileOpened">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/PersistentStateSupport.java#l659">[view source]</a>
<br>
<br>
<hr>
<a name="isDirty"></a>
<h2>isDirty</h2>
isDirty(  ) &rarr; boolean

<p>Getter for property dirty.</p>

<h3>Returns:</h3>
Value of property dirty.
<br><br>
<a href="https://github.com/autoplot/dev/search?q=isDirty&unscoped_q=isDirty">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/PersistentStateSupport.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/PersistentStateSupport.html#isDirty">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/PersistentStateSupport.java#l540">[view source]</a>
<br>
<br>
<hr>
<a name="isOpening"></a>
<h2>isOpening</h2>
isOpening(  ) &rarr; boolean

<p>Property loading is true when a load operation is being performed.</p>

<h3>Returns:</h3>
Value of property loading.
<br><br>
<a href="https://github.com/autoplot/dev/search?q=isOpening&unscoped_q=isOpening">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/PersistentStateSupport.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/PersistentStateSupport.html#isOpening">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/PersistentStateSupport.java#l616">[view source]</a>
<br>
<br>
<hr>
<a name="isSaving"></a>
<h2>isSaving</h2>
isSaving(  ) &rarr; boolean

<p>Property saving is true when a save operation is being performed.</p>

<h3>Returns:</h3>
Value of property saving.
<br><br>
<a href="https://github.com/autoplot/dev/search?q=isSaving&unscoped_q=isSaving">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/PersistentStateSupport.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/PersistentStateSupport.html#isSaving">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/PersistentStateSupport.java#l629">[view source]</a>
<br>
<br>
<hr>
<a name="markDirty"></a>
<h2>markDirty</h2>
markDirty(  ) &rarr; void

<p></p>

<h3>Returns:</h3>
void (returns nothing)

<br><br>
<a href="https://github.com/autoplot/dev/search?q=markDirty&unscoped_q=markDirty">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/PersistentStateSupport.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/PersistentStateSupport.html#markDirty">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/PersistentStateSupport.java#l503">[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> l ) &rarr; void

<p>Removes a PropertyChangeListener from the listener list.</p>

<h3>Parameters</h3>
l - The listener to remove.

<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/PersistentStateSupport.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/PersistentStateSupport.html#removePropertyChangeListener">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/PersistentStateSupport.java#l532">[view source]</a>
<br>
<br>
<hr>
<a name="saveAs"></a>
<h2>saveAs</h2>
saveAs(  ) &rarr; int

<p>Save the state to the file selected by a JFileChooser.</p>

<h3>Returns:</h3>
same as jFileChooser.showSaveDialog(), for example:
    JFileChooser.CANCEL_OPTION   means the option was canceled.
    JFileChooser.APPROVE_OPTION  means the file was saved.
    Note this is not the same as  JOptionPane.CANCEL_OPTION!
<br><br>
<a href="https://github.com/autoplot/dev/search?q=saveAs&unscoped_q=saveAs">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/PersistentStateSupport.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/PersistentStateSupport.html#saveAs">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/PersistentStateSupport.java#l200">[view source]</a>
<br>
<br>
<hr>
<a name="setCurrentFile"></a>
<h2>setCurrentFile</h2>
setCurrentFile( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> currentFile ) &rarr; void

<p>set the current file, which could be file:///home/... or /home/...
 if null, then no file is currently opened.</p>

<h3>Parameters</h3>
currentFile - a String

<h3>Returns:</h3>
void (returns nothing)

<br><br>
<a href="https://github.com/autoplot/dev/search?q=setCurrentFile&unscoped_q=setCurrentFile">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/PersistentStateSupport.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/PersistentStateSupport.html#setCurrentFile">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/PersistentStateSupport.java#l598">[view source]</a>
<br>
<br>
<hr>
<a name="setCurrentFileOpened"></a>
<h2>setCurrentFileOpened</h2>
setCurrentFileOpened( boolean currentFileOpened ) &rarr; void

<p>Setter for property currentFileOpened.</p>

<h3>Parameters</h3>
currentFileOpened - New value of property currentFileOpened.

<h3>Returns:</h3>
void (returns nothing)

<br><br>
<a href="https://github.com/autoplot/dev/search?q=setCurrentFileOpened&unscoped_q=setCurrentFileOpened">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/PersistentStateSupport.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/PersistentStateSupport.html#setCurrentFileOpened">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/PersistentStateSupport.java#l667">[view source]</a>
<br>
<br>
<hr>
<a name="setDirectory"></a>
<h2>setDirectory</h2>
setDirectory( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> directory ) &rarr; void

<p></p>

<h3>Parameters</h3>
directory - a String

<h3>Returns:</h3>
void (returns nothing)

<br><br>
<a href="https://github.com/autoplot/dev/search?q=setDirectory&unscoped_q=setDirectory">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/PersistentStateSupport.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/PersistentStateSupport.html#setDirectory">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/PersistentStateSupport.java#l572">[view source]</a>
<br>
<br>
<hr>
<a name="setDirty"></a>
<h2>setDirty</h2>
setDirty( boolean dirty ) &rarr; void

<p>Setter for property dirty.</p>

<h3>Parameters</h3>
dirty - New value of property dirty.

<h3>Returns:</h3>
void (returns nothing)

<br><br>
<a href="https://github.com/autoplot/dev/search?q=setDirty&unscoped_q=setDirty">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/PersistentStateSupport.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/PersistentStateSupport.html#setDirty">[view on old javadoc]</a>
 <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/PersistentStateSupport.java#l548">[view source]</a>
<br>
<br>