<h2>org.autoplot.AutoplotUtil</h2><p>Utility functions for Autoplot and other related applications. Note this has no reference to the specific app AutoplotUI, because this is also used in the applet which doesn't use AutoplotUI.</p> <h2>AutoplotUtil( )</h2> <p></p> <hr> <a name="SERIES_SIZE_LIMIT"></a> <h2>SERIES_SIZE_LIMIT</h2> <p></p> <hr> <a name="DS_LENGTH_LIMIT"></a> <h2>DS_LENGTH_LIMIT</h2> <p>absolute length limit for plots. This is used to limit the elements used in autoranging, etc.</p> <hr> <a name="is32bit"></a> <h2>is32bit</h2> <p></p> <hr> <a name="javaVersionWarning"></a> <h2>javaVersionWarning</h2> <p></p> <hr> <a name="autoRange"></a> <h2>autoRange</h2> autoRange( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> hist, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> ds, <a href='https://docs.oracle.com/javase/8/docs/api/java/util/Map.html'>java.util.Map</a> properties ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/AutoRangeUtil/AutoRangeDescriptor.html'>org.autoplot.AutoRangeUtil.AutoRangeDescriptor</a> <p>this is a copy of the other autorange, lacking some of its hacks. TODO: why? This is not used.</p> <h3>Parameters</h3> hist - a QDataSet <br> ds - a QDataSet <br> properties - a java.util.Map <h3>Returns:</h3> an org.autoplot.AutoRangeUtil.AutoRangeDescriptor <h3>See Also:</h3> <a href='null'>autoRange(QDataSet, java.util.Map, boolean)</a> <br> <br><br> <a href="https://github.com/autoplot/dev/search?q=autoRange&unscoped_q=autoRange">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#autoRange">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l743">[view source]</a> <br> <br> autoRange( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> ds, <a href='https://docs.oracle.com/javase/8/docs/api/java/util/Map.html'>java.util.Map</a> properties ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/AutoRangeUtil/AutoRangeDescriptor.html'>org.autoplot.AutoRangeUtil.AutoRangeDescriptor</a><br> autoRange( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> ds, <a href='https://docs.oracle.com/javase/8/docs/api/java/util/Map.html'>java.util.Map</a> properties, boolean ignoreDsProps ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/AutoRangeUtil/AutoRangeDescriptor.html'>org.autoplot.AutoRangeUtil.AutoRangeDescriptor</a><br> <hr> <a name="bounds"></a> <h2>bounds</h2> bounds( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> dataSet, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/RenderType.html'>org.autoplot.RenderType</a> renderType ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> <p>return the bounding qube for the given render type. This was stolen from Test022.</p> <h3>Parameters</h3> dataSet - a QDataSet <br> renderType - a RenderType <h3>Returns:</h3> bounding cube[3,2] <br><br> <a href="https://github.com/autoplot/dev/search?q=bounds&unscoped_q=bounds">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#bounds">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l179">[view source]</a> <br> <br> <hr> <a name="cancelIcon"></a> <h2>cancelIcon</h2> cancelIcon( ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/javax/swing/Icon.html'>javax.swing.Icon</a> <p></p> <h3>Returns:</h3> javax.swing.Icon <br><br> <a href="https://github.com/autoplot/dev/search?q=cancelIcon&unscoped_q=cancelIcon">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#cancelIcon">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l1595">[view source]</a> <br> <br> <hr> <a name="createImage"></a> <h2>createImage</h2> createImage( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> ds, int width, int height ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/image/BufferedImage.html'>java.awt.image.BufferedImage</a> <p>experiment to see if we can get an image of a dataset. This must be called from off of the event thread.</p> <h3>Parameters</h3> ds - a QDataSet <br> width - an int <br> height - an int <h3>Returns:</h3> the image TODO: test me! <br><br> <a href="https://github.com/autoplot/dev/search?q=createImage&unscoped_q=createImage">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#createImage">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l193">[view source]</a> <br> <br> <hr> <a name="createPlot"></a> <h2>createPlot</h2> createPlot( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/graph/DasCanvas.html'>org.das2.graph.DasCanvas</a> c, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> ds, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/graph/DasPlot.html'>org.das2.graph.DasPlot</a> recyclable, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/graph/DasColorBar.html'>org.das2.graph.DasColorBar</a> cb ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/graph/DasPlot.html'>org.das2.graph.DasPlot</a> <p>Create a dasPlot that can be useful to scripts.</p> <h3>Parameters</h3> c - the canvas for the plot, or null. <br> ds - the dataset <br> recyclable - the recyclable dasPlot, or null. <br> cb - the colorbar, or null. <h3>Returns:</h3> the DasPlot. <br><br> <a href="https://github.com/autoplot/dev/search?q=createPlot&unscoped_q=createPlot">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#createPlot">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l208">[view source]</a> <br> <br> <hr> <a name="disableCertificates"></a> <h2>disableCertificates</h2> disableCertificates( ) → void <p>disable certificate checking. A TrustManager and HostnameVerifier which trusts all names and certs is installed.</p> <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=disableCertificates&unscoped_q=disableCertificates">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#disableCertificates">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l1927">[view source]</a> <br> <br> <hr> <a name="extractProperties"></a> <h2>extractProperties</h2> extractProperties( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> ds ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/util/Map.html'>java.util.Map</a> <p>extract the properties from the dataset into the same format as metadata model returns.</p> <h3>Parameters</h3> ds - a QDataSet <h3>Returns:</h3> a java.util.Map <br><br> <a href="https://github.com/autoplot/dev/search?q=extractProperties&unscoped_q=extractProperties">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#extractProperties">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l1042">[view source]</a> <br> <br> <hr> <a name="formatDevicePosition"></a> <h2>formatDevicePosition</h2> formatDevicePosition( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/graph/DasDevicePosition.html'>org.das2.graph.DasDevicePosition</a> pos ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> <p></p> <h3>Parameters</h3> pos - a DasDevicePosition <h3>Returns:</h3> java.lang.String <br><br> <a href="https://github.com/autoplot/dev/search?q=formatDevicePosition&unscoped_q=formatDevicePosition">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#formatDevicePosition">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l1140">[view source]</a> <br> <br> <hr> <a name="getAboutAutoplotHtml"></a> <h2>getAboutAutoplotHtml</h2> getAboutAutoplotHtml( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/ApplicationModel.html'>org.autoplot.ApplicationModel</a> model ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> <p>return an HTML page showing the current system environment.</p> <h3>Parameters</h3> model - an ApplicationModel <h3>Returns:</h3> string containing HTML <br><br> <a href="https://github.com/autoplot/dev/search?q=getAboutAutoplotHtml&unscoped_q=getAboutAutoplotHtml">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#getAboutAutoplotHtml">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l1768">[view source]</a> <br> <br> <hr> <a name="getAutoplotIcon"></a> <h2>getAutoplotIcon</h2> getAutoplotIcon( ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/Image.html'>java.awt.Image</a> <p>return 64x64 pixel Autoplot Icon.</p> <h3>Returns:</h3> a java.awt.Image <br><br> <a href="https://github.com/autoplot/dev/search?q=getAutoplotIcon&unscoped_q=getAutoplotIcon">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#getAutoplotIcon">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l1587">[view source]</a> <br> <br> <hr> <a name="getNoIcon"></a> <h2>getNoIcon</h2> getNoIcon( ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/Image.html'>java.awt.Image</a> <p></p> <h3>Returns:</h3> java.awt.Image <br><br> <a href="https://github.com/autoplot/dev/search?q=getNoIcon&unscoped_q=getNoIcon">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#getNoIcon">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l1591">[view source]</a> <br> <br> <hr> <a name="getProcessId"></a> <h2>getProcessId</h2> getProcessId( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> fallback ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> <p>return the processID (pid), or the fallback if the pid cannot be found.</p> <h3>Parameters</h3> fallback - the string (null is okay) to return when the pid cannot be found. <h3>Returns:</h3> the process id or the fallback provided by the caller. //TODO: Java9 has method for accessing process ID. <br><br> <a href="https://github.com/autoplot/dev/search?q=getProcessId&unscoped_q=getProcessId">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#getProcessId">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l1741">[view source]</a> <br> <br> <hr> <a name="getProperty"></a> <h2>getProperty</h2> getProperty( <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> deft ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> <p>support restricted security environment by checking permissions before checking property.</p> <h3>Parameters</h3> name - a String <br> deft - a String <h3>Returns:</h3> a String <br><br> <a href="https://github.com/autoplot/dev/search?q=getProperty&unscoped_q=getProperty">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#getProperty">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l1112">[view source]</a> <br> <br> <hr> <a name="getUrls"></a> <h2>getUrls</h2> getUrls( <a href='https://docs.oracle.com/javase/8/docs/api/java/util/List.html'>java.util.List</a> recent ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/util/List.html'>java.util.List</a> <p></p> <h3>Parameters</h3> recent - a java.util.List <h3>Returns:</h3> java.util.List <br><br> <a href="https://github.com/autoplot/dev/search?q=getUrls&unscoped_q=getUrls">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#getUrls">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l315">[view source]</a> <br> <br> <hr> <a name="guessRenderType"></a> <h2>guessRenderType</h2> guessRenderType( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> fillds ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/RenderType.html'>org.autoplot.RenderType</a> <p></p> <h3>Parameters</h3> fillds - a QDataSet <h3>Returns:</h3> an org.autoplot.RenderType <h3>See Also:</h3> <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/datasource/DataSourceUtil.html#guessRenderType'>org.autoplot.datasource.DataSourceUtil#guessRenderType(QDataSet)</a> <br> <a href='https://autoplot.org/developer.guessRenderType'>https://autoplot.org/developer.guessRenderType</a> <br> <br><br> <a href="https://github.com/autoplot/dev/search?q=guessRenderType&unscoped_q=guessRenderType">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#guessRenderType">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l1164">[view source]</a> <br> <br> <hr> <a name="isParsableDouble"></a> <h2>isParsableDouble</h2> isParsableDouble( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> myString ) → boolean <p>The Double.parseDouble contains this javadoc describing how to test for a valid double.</p> <h3>Parameters</h3> myString - a String <h3>Returns:</h3> a boolean <br><br> <a href="https://github.com/autoplot/dev/search?q=isParsableDouble&unscoped_q=isParsableDouble">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#isParsableDouble">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l1339">[view source]</a> <br> <br> <hr> <a name="maybeCreateRenderer"></a> <h2>maybeCreateRenderer</h2> maybeCreateRenderer( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/RenderType.html'>org.autoplot.RenderType</a> renderType, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/graph/Renderer.html'>org.das2.graph.Renderer</a> recyclable, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/graph/DasColorBar.html'>org.das2.graph.DasColorBar</a> colorbar, boolean justRenderType ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/graph/Renderer.html'>org.das2.graph.Renderer</a> <p>return a renderer that is configured for this renderType.</p> <h3>Parameters</h3> renderType - a RenderType <br> recyclable - a Renderer <br> colorbar - a DasColorBar <br> justRenderType - if true, then just set the render type, other code will configure it. If true, presumably bindings will set the state. <h3>Returns:</h3> an org.das2.graph.Renderer <br><br> <a href="https://github.com/autoplot/dev/search?q=maybeCreateRenderer&unscoped_q=maybeCreateRenderer">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#maybeCreateRenderer">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l1391">[view source]</a> <br> <br> <hr> <a name="maybeInitializeEditorColors"></a> <h2>maybeInitializeEditorColors</h2> maybeInitializeEditorColors( ) → void <p></p> <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=maybeInitializeEditorColors&unscoped_q=maybeInitializeEditorColors">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#maybeInitializeEditorColors">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l1941">[view source]</a> <br> <br> <hr> <a name="maybeLoadSystemProperties"></a> <h2>maybeLoadSystemProperties</h2> maybeLoadSystemProperties( ) → void <p>check to see if the user has the file HOME/autoplot_data/system.properties, which if found will cause System.setProperty for each one. This was introduced to facilitate Craig with his testing of enableReferenceCache=true, and should make it easier to provide generic extensions.</p> <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=maybeLoadSystemProperties&unscoped_q=maybeLoadSystemProperties">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#maybeLoadSystemProperties">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l630">[view source]</a> <br> <br> <hr> <a name="mergeProperties"></a> <h2>mergeProperties</h2> mergeProperties( <a href='https://docs.oracle.com/javase/8/docs/api/java/util/Map.html'>java.util.Map</a> properties, <a href='https://docs.oracle.com/javase/8/docs/api/java/util/Map.html'>java.util.Map</a> deflt ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/util/Map.html'>java.util.Map</a> <p>combine the two properties trees, using values from the first when both contain the same property.</p> <h3>Parameters</h3> properties - a java.util.Map <br> deflt - a java.util.Map <h3>Returns:</h3> a java.util.Map <br><br> <a href="https://github.com/autoplot/dev/search?q=mergeProperties&unscoped_q=mergeProperties">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#mergeProperties">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l1089">[view source]</a> <br> <br> <hr> <a name="openBrowser"></a> <h2>openBrowser</h2> openBrowser( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> url ) → void <p>open the URL in a browser. Borrowed from http://www.centerkey.com/java/browser/.</p> <h3>Parameters</h3> url - the URL. <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=openBrowser&unscoped_q=openBrowser">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#openBrowser">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l1015">[view source]</a> <br> <br> <hr> <a name="readDoc"></a> <h2>readDoc</h2> readDoc( <a href='https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html'>java.io.InputStream</a> is ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/w3c/dom/Document.html'>org.w3c.dom.Document</a> <p></p> <h3>Parameters</h3> is - an InputStream <h3>Returns:</h3> org.w3c.dom.Document <br><br> <a href="https://github.com/autoplot/dev/search?q=readDoc&unscoped_q=readDoc">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#readDoc">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l1019">[view source]</a> <br> <br> <hr> <a name="reloadAll"></a> <h2>reloadAll</h2> reloadAll( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/dom/Application.html'>org.autoplot.dom.Application</a> dom ) → void <p>reload all the data. This should not be called on the event thread.</p> <h3>Parameters</h3> dom - an Application <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=reloadAll&unscoped_q=reloadAll">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#reloadAll">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l390">[view source]</a> <br> <br> <hr> <a name="replaceFile"></a> <h2>replaceFile</h2> replaceFile( <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/dom/Application.html'>org.autoplot.dom.Application</a> dom ) → void <p>Replace filename references within the DOM, and reset xrange. This was the often-used ReplaceFile script. This now follows focus.</p> <h3>Parameters</h3> parent - focus for response dialogs. <br> dom - the application <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=replaceFile&unscoped_q=replaceFile">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#replaceFile">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l332">[view source]</a> <br> <br> <hr> <a name="resetZoomX"></a> <h2>resetZoomX</h2> resetZoomX( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/dom/Application.html'>org.autoplot.dom.Application</a> dom ) → boolean <p></p> <h3>Parameters</h3> dom - an Application <h3>Returns:</h3> boolean <br><br> <a href="https://github.com/autoplot/dev/search?q=resetZoomX&unscoped_q=resetZoomX">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#resetZoomX">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l839">[view source]</a> <br> <br> resetZoomX( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/dom/Application.html'>org.autoplot.dom.Application</a> dom, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/dom/Plot.html'>org.autoplot.dom.Plot</a> plot ) → boolean<br> <hr> <a name="resetZoomY"></a> <h2>resetZoomY</h2> resetZoomY( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/dom/Application.html'>org.autoplot.dom.Application</a> dom ) → boolean <p></p> <h3>Parameters</h3> dom - an Application <h3>Returns:</h3> boolean <br><br> <a href="https://github.com/autoplot/dev/search?q=resetZoomY&unscoped_q=resetZoomY">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#resetZoomY">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l767">[view source]</a> <br> <br> resetZoomY( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/dom/Application.html'>org.autoplot.dom.Application</a> dom, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/dom/Plot.html'>org.autoplot.dom.Plot</a> plot ) → boolean<br> <hr> <a name="resetZoomZ"></a> <h2>resetZoomZ</h2> resetZoomZ( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/dom/Application.html'>org.autoplot.dom.Application</a> dom ) → boolean <p></p> <h3>Parameters</h3> dom - an Application <h3>Returns:</h3> boolean <br><br> <a href="https://github.com/autoplot/dev/search?q=resetZoomZ&unscoped_q=resetZoomZ">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#resetZoomZ">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l918">[view source]</a> <br> <br> resetZoomZ( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/dom/Application.html'>org.autoplot.dom.Application</a> dom, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/dom/Plot.html'>org.autoplot.dom.Plot</a> plot ) → boolean<br> <hr> <a name="scaleIcon"></a> <h2>scaleIcon</h2> scaleIcon( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/javax/swing/ImageIcon.html'>javax.swing.ImageIcon</a> icon, int w, int h ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/javax/swing/ImageIcon.html'>javax.swing.ImageIcon</a> <p>create a new Icon that is a scaled instance of the first. The image should be a BufferedImage.</p> <h3>Parameters</h3> icon - an ImageIcon <br> w - an int <br> h - an int <h3>Returns:</h3> a javax.swing.ImageIcon <br><br> <a href="https://github.com/autoplot/dev/search?q=scaleIcon&unscoped_q=scaleIcon">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#scaleIcon">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l295">[view source]</a> <br> <br> <hr> <a name="scaleImage"></a> <h2>scaleImage</h2> scaleImage( <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/image/BufferedImage.html'>java.awt.image.BufferedImage</a> image, int w, int h ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/image/BufferedImage.html'>java.awt.image.BufferedImage</a> <p></p> <h3>Parameters</h3> image - a BufferedImage <br> w - an int <br> h - an int <h3>Returns:</h3> java.awt.image.BufferedImage <br><br> <a href="https://github.com/autoplot/dev/search?q=scaleImage&unscoped_q=scaleImage">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#scaleImage">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l306">[view source]</a> <br> <br> <hr> <a name="setDevicePosition"></a> <h2>setDevicePosition</h2> setDevicePosition( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/graph/DasDevicePosition.html'>org.das2.graph.DasDevicePosition</a> row, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> spec ) → void <p>set the device position, using spec string like "+5em,80%-5em"</p> <h3>Parameters</h3> row - the row/column to modify <br> spec - the spec <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=setDevicePosition&unscoped_q=setDevicePosition">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#setDevicePosition">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l1126">[view source]</a> <br> <br> <hr> <a name="showConfirmDialog"></a> <h2>showConfirmDialog</h2> showConfirmDialog( <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html'>java.awt.Component</a> parentComponent, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> message, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> title, int optionType ) → int <p>Wrapper for displaying ok,cancel dialogs. If the message is a component, then the dialog will be resizeable.</p> <h3>Parameters</h3> parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used <br> message - the String or GUI component to display <br> title - the title string for the dialog <br> optionType - an int designating the options available on the dialog: YES_NO_OPTION, YES_NO_CANCEL_OPTION, or OK_CANCEL_OPTION <h3>Returns:</h3> JOptionPane.OK_OPTION, JOptionPane.CANCEL_OPTION, etc. <br><br> <a href="https://github.com/autoplot/dev/search?q=showConfirmDialog&unscoped_q=showConfirmDialog">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#showConfirmDialog">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l1686">[view source]</a> <br> <br> <hr> <a name="showConfirmDialog2"></a> <h2>showConfirmDialog2</h2> showConfirmDialog2( <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html'>java.awt.Component</a> parent, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> omessage, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> title, int optionType ) → int <p>new okay/cancel dialog that is resizable and is made with a simple dialog.</p> <h3>Parameters</h3> parent - a Component <br> omessage - String or Component. <br> title - a String <br> optionType - an int <h3>Returns:</h3> JOptionPane.OK_OPTION, JOptionPane.CANCEL_OPTION. <br><br> <a href="https://github.com/autoplot/dev/search?q=showConfirmDialog2&unscoped_q=showConfirmDialog2">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#showConfirmDialog2">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l1702">[view source]</a> <br> <br> <hr> <a name="showMessageDialog"></a> <h2>showMessageDialog</h2> showMessageDialog( <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html'>java.awt.Component</a> parentComponent, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> message, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> title, int messageType ) → void <p>wrapper for displaying messages. This will eventually use the Autoplot icon, etc. This should be called, not JOptionPane.showMessageDialog(...)</p> <h3>Parameters</h3> parentComponent - a Component <br> message - an Object <br> title - a String <br> messageType - an int <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=showMessageDialog&unscoped_q=showMessageDialog">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#showMessageDialog">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l1645">[view source]</a> <br> <br> <hr> <a name="showUserExceptionDialog"></a> <h2>showUserExceptionDialog</h2> showUserExceptionDialog( <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html'>java.awt.Component</a> parent, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> string, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html'>java.lang.Exception</a> ex, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/ExceptionHandler.html'>org.das2.util.ExceptionHandler</a> exh ) → void <p>put in a place to call where the message is shown assuming the problem is on the user's end, but provide a button to inspect the exception.</p> <h3>Parameters</h3> parent - parent component to center the dialog. <br> string - the message, a string or html code. <br> ex - the wrapped exception <br> exh - an exception handler to show the exception. <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=showUserExceptionDialog&unscoped_q=showUserExceptionDialog">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#showUserExceptionDialog">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l713">[view source]</a> <br> <br> <hr> <a name="toDataSet"></a> <h2>toDataSet</h2> toDataSet( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/AutoRangeUtil/AutoRangeDescriptor.html'>org.autoplot.AutoRangeUtil.AutoRangeDescriptor</a> ard ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> <p>convert the legacy AutoRangeDescriptor to a QDataSet bounding cube. The bounding cube is a rank 1, 2-element dataset with min and max as the elements, and SCALE_TYPE="log" if the AutoRangeDescriptor log property was true.</p> <h3>Parameters</h3> ard - AutoRangeDescriptor. <h3>Returns:</h3> a rank 1 bounding cube. <br><br> <a href="https://github.com/autoplot/dev/search?q=toDataSet&unscoped_q=toDataSet">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/AutoplotUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/AutoplotUtil.html#toDataSet">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/AutoplotUtil.java#l755">[view source]</a> <br> <br>