<h2>org.autoplot.ScriptContext2023</h2><p>ScriptContext provides the API to perform abstract functions with the application. For example, <blockquote><pre><small>{@code ScriptContext.load('https://autoplot.org/data/somedata.dat') ScriptContext.writeToPdf('/tmp/foo.pdf') }</small></pre></blockquote></p> <hr> <a name="PNG_KEY_SCRIPT"></a> <h2>PNG_KEY_SCRIPT</h2> <p>The name of the script which results in the image, optionally with its arguments.</p> <hr> <a name="PNG_KEY_VAP"></a> <h2>PNG_KEY_VAP</h2> <p>The Autoplot .vap file which results in the image, optionally with "?" and modifiers.</p> <hr> <a name="PNG_KEY_URI"></a> <h2>PNG_KEY_URI</h2> <p>The Autoplot URI which results in the image.</p> <hr> <a name="_setOutputStream"></a> <h2>_setOutputStream</h2> _setOutputStream( <a href='https://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html'>java.io.OutputStream</a> out ) → void <p>resets the output stream. This method is used internally, do not use this routine.</p> <h3>Parameters</h3> out - an OutputStream <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=_setOutputStream&unscoped_q=_setOutputStream">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#_setOutputStream">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l480">[view source]</a> <br> <br> <hr> <a name="addBottomDecoration"></a> <h2>addBottomDecoration</h2> addBottomDecoration( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/dom/DomNode.html'>org.autoplot.dom.DomNode</a> node, PyFunction painter ) → void <p>add code that will paint custom graphics on the canvas or on a plot. The command will be invoked after all other painting is done, making the decoration to be on top. Note plots can only have one decoration, and the Canvas can have any number. Calling reset() will remove all decorations. <blockquote><pre><small> def paint(g): g.color= Color.BLUE for i in xrange(0,1000,100): g.drawOval(500-i/2,500-i/2,i,i) addBottomDecoration( dom.canvases[0], paint ) </small></pre></blockquote></p> <h3>Parameters</h3> node - the plot or canvas over which to plot <br> painter - the PyFunction to call when painting <h3>Returns:</h3> void (returns nothing) <h3>See Also:</h3> <a href='https://github.com/autoplot/dev/blob/master/demos/2020/20200229/demoAddBottomDecoration.jy'>https://github.com/autoplot/dev/blob/master/demos/2020/20200229/demoAddBottomDecoration.jy</a> <br> <br><br> <a href="https://github.com/autoplot/dev/search?q=addBottomDecoration&unscoped_q=addBottomDecoration">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#addBottomDecoration">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1035">[view source]</a> <br> <br> <hr> <a name="addMouseModule"></a> <h2>addMouseModule</h2> addMouseModule( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/dom/Plot.html'>org.autoplot.dom.Plot</a> plot, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> label, PyFunction listener ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/event/MouseModule.html'>org.das2.event.MouseModule</a> <p>add code that will respond to mouse events. This will receive an event following the mouse release when a box is dragged out. <blockquote><pre><small> def boxLookup( evt ): showMessageDialog( "<html>start: (%s,%s)<br>finish: (%s,%s)" % ( evt.getStartX(), evt.getStartY(), evt.getFinishX(), evt.getFinishY() ) ) addMouseModule( dom.plots[0], 'Box Lookup', boxLookup ) </small></pre></blockquote></p> <h3>Parameters</h3> plot - the plot which will receive the events. <br> label - a label for the mouse module. <br> listener - the PyFunction to call with new events. <h3>Returns:</h3> the mouse module. <h3>See Also:</h3> <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/event/MouseModule.html#setDragRenderer'>org.das2.event.MouseModule#setDragRenderer(org.das2.event.DragRenderer)</a> setDragRenderer to see how to set how feedback can be provided.<br> <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/event/BoxSelectionEvent BoxSelectionEvent for the methods of the event/.html'>org.das2.event.BoxSelectionEvent BoxSelectionEvent for the methods of the event.</a> BoxSelectionEvent for the methods of the event.<br> <br><br> <a href="https://github.com/autoplot/dev/search?q=addMouseModule&unscoped_q=addMouseModule">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#addMouseModule">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l962">[view source]</a> <br> <br> <hr> <a name="addPlotElement"></a> <h2>addPlotElement</h2> addPlotElement( int chNum ) → int <p>"overplot" by adding another PlotElement to the plot and setting the data to this PlotElement.</p> <h3>Parameters</h3> chNum - the focus <h3>Returns:</h3> the channel number for the new plot element. <h3>See Also:</h3> <a href='null'>setLayout(int, int)</a> <br> <br><br> <a href="https://github.com/autoplot/dev/search?q=addPlotElement&unscoped_q=addPlotElement">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#addPlotElement">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l918">[view source]</a> <br> <br> <hr> <a name="addPlots"></a> <h2>addPlots</h2> addPlots( int nrows, int ncolumns, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> dir ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/util/List.html'>java.util.List</a> <p>adds a block of plots to the canvas below the focus plot. A plotElement is added for each plot as well.</p> <h3>Parameters</h3> nrows - number of rows <br> ncolumns - number of columns <br> dir - below, above, right, or left, or null (None in Jython) to replace the current plot. <h3>Returns:</h3> the new plots. <br><br> <a href="https://github.com/autoplot/dev/search?q=addPlots&unscoped_q=addPlots">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#addPlots">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l2135">[view source]</a> <br> <br> <hr> <a name="addTab"></a> <h2>addTab</h2> addTab( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> label, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/javax/swing/JComponent.html'>javax.swing.JComponent</a> c ) → void <p>add a tab to the running application. A new tab will be added with the label, with the component added within a scroll pane.</p> <h3>Parameters</h3> label - the label for the component. <br> c - the component to add. <h3>Returns:</h3> void (returns nothing) <h3>See Also:</h3> <a href='null'>AutoplotUI#setLeftPanel(javax.swing.JComponent)</a> setLeftPanel which adds to the GUI<br> <br><br> <a href="https://github.com/autoplot/dev/search?q=addTab&unscoped_q=addTab">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#addTab">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1162">[view source]</a> <br> <br> <hr> <a name="addTopDecoration"></a> <h2>addTopDecoration</h2> addTopDecoration( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/dom/DomNode.html'>org.autoplot.dom.DomNode</a> node, PyFunction painter ) → void <p>add code that will paint custom graphics on the canvas or on a plot. The command will be invoked after all other painting is done, making the decoration to be on top. Note plots can only have one decoration, and the Canvas can have any number. Calling reset() will remove all decorations. <blockquote><pre><small> def paint(g): for i in xrange(0,1000,100): g.drawOval(500-i/2,500-i/2,i,i) addTopDecoration( dom.canvases[0], paint ) </small></pre></blockquote></p> <h3>Parameters</h3> node - the plot or canvas over which to plot <br> painter - the PyFunction to call when painting <h3>Returns:</h3> void (returns nothing) <h3>See Also:</h3> <a href='https://github.com/autoplot/dev/blob/master/demos/2020/20200229/demoAddBottomDecoration.jy'>https://github.com/autoplot/dev/blob/master/demos/2020/20200229/demoAddBottomDecoration.jy</a> <br> <br><br> <a href="https://github.com/autoplot/dev/search?q=addTopDecoration&unscoped_q=addTopDecoration">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#addTopDecoration">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l991">[view source]</a> <br> <br> <hr> <a name="alert"></a> <h2>alert</h2> alert( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> message ) → void <p>show a popup that you know the user will see. Note HTML code will work.</p> <h3>Parameters</h3> message - a String <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=alert&unscoped_q=alert">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#alert">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1125">[view source]</a> <br> <br> <hr> <a name="bind"></a> <h2>bind</h2> bind( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> src, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> srcProp, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> dst, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> dstProp ) → void <p>binds two bean properties together. Bindings are bidirectional, but the initial copy is from src to dst. In MVC terms, src should be the model and dst should be a view. The properties must fire property change events for the binding mechanism to work. As of v2014a_10, if the src is a DomNode and a child of the application, then use dom.getController().bind so that the vap will contain the binding. Example: <blockquote><pre><small> model= getApplicationModel() bind( model.getPlotDefaults(), "title", model.getPlotDefaults().getXAxis(), "label" ) </small></pre></blockquote></p> <h3>Parameters</h3> src - java bean such as model.getPlotDefaults() <br> srcProp - a property name such as "title" <br> dst - java bean such as model.getPlotDefaults().getXAxis() <br> dstProp - a property name such as "label" <h3>Returns:</h3> void (returns nothing) <h3>See Also:</h3> <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/dom/ApplicationController.html#bind'>org.autoplot.dom.ApplicationController#bind(org.autoplot.dom.DomNode, java.lang.String, java.lang.Object, java.lang.String)</a> which will save the binding to a vap.<br> <br><br> <a href="https://github.com/autoplot/dev/search?q=bind&unscoped_q=bind">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#bind">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1756">[view source]</a> <br> <br> bind( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> src, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> srcProp, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> dst, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> dstProp, Converter c ) → void<br> <hr> <a name="bindGuiSafe"></a> <h2>bindGuiSafe</h2> bindGuiSafe( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> src, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> srcProp, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> dst, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> dstProp, Converter c ) → void <p>binds two bean properties together. Bindings are bidirectional, but the initial copy is from src to dst. In MVC terms, src should be the model and dst should be a view. The properties must fire property change events for the binding mechanism to work. As of v2014a_10, if the src is a DomNode and a child of the application, then use dom.getController().bind so that the vap will contain the binding. Example: <blockquote><pre><small> model= getApplicationModel() bind( model.getPlotDefaults(), "title", model.getPlotDefaults().getXAxis(), "label" ) </small></pre></blockquote></p> <h3>Parameters</h3> src - java bean such as model.getPlotDefaults() <br> srcProp - a property name such as "title" <br> dst - java bean such as model.getPlotDefaults().getXAxis() <br> dstProp - a property name such as "label" <br> c - converter for the binding, or null. <h3>Returns:</h3> void (returns nothing) <h3>See Also:</h3> <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/dom/ApplicationController.html#bind'>org.autoplot.dom.ApplicationController#bind(org.autoplot.dom.DomNode, java.lang.String, java.lang.Object, java.lang.String, org.jdesktop.beansbinding.Converter)</a> which will save the binding to a vap.<br> <br><br> <a href="https://github.com/autoplot/dev/search?q=bindGuiSafe&unscoped_q=bindGuiSafe">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#bindGuiSafe">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1847">[view source]</a> <br> <br> <hr> <a name="createApplicationModel"></a> <h2>createApplicationModel</h2> createApplicationModel( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> id ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/ApplicationModel.html'>org.autoplot.ApplicationModel</a> <p>return a new dom in a minimal Autoplot application. Use result.getCanvas() to get the DasCanvas which can be added to other components. <blockquote><pre><small> report= createApplicationModel() addTab( 'report', report.canvas ) report.setDataSet(linspace(0,1,101)) </small></pre></blockquote></p> <h3>Parameters</h3> id - a String <h3>Returns:</h3> an org.autoplot.ApplicationModel <br><br> <a href="https://github.com/autoplot/dev/search?q=createApplicationModel&unscoped_q=createApplicationModel">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#createApplicationModel">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1099">[view source]</a> <br> <br> <hr> <a name="createDataPointRecorder"></a> <h2>createDataPointRecorder</h2> createDataPointRecorder( ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/components/DataPointRecorder.html'>org.das2.components.DataPointRecorder</a> <p>return a component which can be used to accumulate data. This is typically inserted into its own tab with the addTab command. This is set to sort data in X as it comes in, and this can be disabled with setSorted(False) <blockquote><pre><small> dpr= createDataPointRecorder() addTab( 'digitizer', dpr ) </small></pre></blockquote></p> <h3>Returns:</h3> a new DataPointRecorder. <h3>See Also:</h3> <a href='null'>DataPointRecorder</a> <br> <a href='https://github.com/autoplot/dev/blob/master/demos/digitizers/createDataPointRecorder.jy'>https://github.com/autoplot/dev/blob/master/demos/digitizers/createDataPointRecorder.jy</a> <br> <br><br> <a href="https://github.com/autoplot/dev/search?q=createDataPointRecorder&unscoped_q=createDataPointRecorder">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#createDataPointRecorder">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1074">[view source]</a> <br> <br> <hr> <a name="createGui"></a> <h2>createGui</h2> createGui( ) → void <p>create a model with a GUI presentation layer. If the GUI is already created, then this does nothing.</p> <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=createGui&unscoped_q=createGui">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#createGui">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1711">[view source]</a> <br> <br> <hr> <a name="dumpToDas2Stream"></a> <h2>dumpToDas2Stream</h2> dumpToDas2Stream( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> ds, boolean ascii ) → void <p>serializes the dataset to a das2stream, a well-documented, open, streaming data format. (that's a joke.) Das2Streams are the legacy stream format used by the Plasma Wave Groups's server, and can serialize a limited set of QDataSets. QStreams were introduced to allow streaming of any QDataSet, see dumpToQStream. Currently, to keep the channel open, the stream is created in a buffer and then the buffer is sent. TODO: write a stream-producing code that doesn't close the output stream. (TODO: does it still do this?)</p> <h3>Parameters</h3> ds - a QDataSet <br> ascii - use ascii transfer types, otherwise binary are used. <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=dumpToDas2Stream&unscoped_q=dumpToDas2Stream">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#dumpToDas2Stream">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1905">[view source]</a> <br> <br> dumpToDas2Stream( <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/lang/String.html'>String</a> file, boolean ascii ) → void<br> <hr> <a name="dumpToQStream"></a> <h2>dumpToQStream</h2> dumpToQStream( <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/io/OutputStream.html'>java.io.OutputStream</a> out, boolean ascii ) → void <p>serializes the dataset to a QStream, a self-documenting, streaming format useful for moving datasets. <p><blockquote><pre> ds= getDataSet('http://autoplot.org/data/somedata.cdf?BGSEc') from java.lang import System dumpToQStream( ds, System.out, True ) </pre></blockquote></p></p> <h3>Parameters</h3> ds - The dataset to stream. Note all schemes should be streamable, but some bugs exist that may prevent this. <br> out - stream, such as "System.out" <br> ascii - use ascii transfer types, otherwise binary are used. <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=dumpToQStream&unscoped_q=dumpToQStream">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#dumpToQStream">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1883">[view source]</a> <br> <br> <hr> <a name="fixLayout"></a> <h2>fixLayout</h2> fixLayout( ) → void <p>make the layout more efficient by removing empty spaces and overlapping plots.</p> <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=fixLayout&unscoped_q=fixLayout">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#fixLayout">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l2086">[view source]</a> <br> <br> <hr> <a name="formatDataSet"></a> <h2>formatDataSet</h2> formatDataSet( <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/lang/String.html'>String</a> file ) → void <p>Export the data into a format implied by the filename extension. See the export data dialog for additional parameters available for formatting. For example: <blockquote><pre><small> ds= getDataSet('http://autoplot.org/data/somedata.cdf?BGSEc') formatDataSet( ds, 'vap+dat:file:/home/jbf/temp/foo.dat?tformat=minutes&format=6.2f') </small></pre></blockquote></p> <h3>Parameters</h3> ds - a QDataSet <br> file - local file name that is the target <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=formatDataSet&unscoped_q=formatDataSet">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#formatDataSet">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1652">[view source]</a> <br> <br> formatDataSet( <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/lang/String.html'>String</a> file, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/monitor/ProgressMonitor.html'>ProgressMonitor</a> monitor ) → void<br> <hr> <a name="generateTimeRanges"></a> <h2>generateTimeRanges</h2> generateTimeRanges( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> spec, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> srange ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String[]</a> <p>Given a spec to format timeranges and a range to contain each timerange, produce a list of all timeranges covering the range formatted with the spec. For example, <code>generateTimeRanges( "%Y-%m-%d", "Jun 2009" )</code> would result in 2009-06-01, 2009-06-02, ..., 2009-06-30.</p> <h3>Parameters</h3> spec - such as "%Y-%m". Note specs like "%Y%m" will not be parsable. <br> srange - range limiting the list, such as "2009" <h3>Returns:</h3> a string array of formatted time ranges, such as [ "2009-01", "2009-02", ..., "2009-12" ] <br><br> <a href="https://github.com/autoplot/dev/search?q=generateTimeRanges&unscoped_q=generateTimeRanges">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#generateTimeRanges">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1610">[view source]</a> <br> <br> <hr> <a name="getApplication"></a> <h2>getApplication</h2> getApplication( ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/AutoplotUI.html'>org.autoplot.AutoplotUI</a> <p>return the focus application.</p> <h3>Returns:</h3> the focus application. <br><br> <a href="https://github.com/autoplot/dev/search?q=getApplication&unscoped_q=getApplication">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#getApplication">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l213">[view source]</a> <br> <br> <hr> <a name="getApplicationModel"></a> <h2>getApplicationModel</h2> getApplicationModel( ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/ApplicationModel.html'>org.autoplot.ApplicationModel</a> <p>returns the internal application model (the object that does all the business). This provides access to the internal model for power users. Note the applicationModel provides limited access, and the DOM now provides full access to the application.</p> <h3>Returns:</h3> ApplicationModel object <br><br> <a href="https://github.com/autoplot/dev/search?q=getApplicationModel&unscoped_q=getApplicationModel">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#getApplicationModel">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1722">[view source]</a> <br> <br> <hr> <a name="getCompletions"></a> <h2>getCompletions</h2> getCompletions( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> file ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String[]</a> <p>return a list of completions. This is useful in the IDL context as well as Jython scripts. This will perform the completion for where the carot is at the end of the string. Only completions where maybePlot indicates the URI is now valid are returned, so for example https://autoplot.org/data/somedata.cdf?noDep is not returned and https://autoplot.org/data/somedata.cdf?Magnitude is. Note this is included to continue support as this is described in https://autoplot.org/developer.idlMatlab.</p> <h3>Parameters</h3> file - a String <h3>Returns:</h3> list of completions, containing the entire URI. <br><br> <a href="https://github.com/autoplot/dev/search?q=getCompletions&unscoped_q=getCompletions">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#getCompletions">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1625">[view source]</a> <br> <br> <hr> <a name="getDocumentModel"></a> <h2>getDocumentModel</h2> getDocumentModel( ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/dom/Application.html'>org.autoplot.dom.Application</a> <p>get the document model (DOM). This may initialize the model, in which case defaults like the cache directory are set.</p> <h3>Returns:</h3> an org.autoplot.dom.Application <br><br> <a href="https://github.com/autoplot/dev/search?q=getDocumentModel&unscoped_q=getDocumentModel">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#getDocumentModel">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1985">[view source]</a> <br> <br> <hr> <a name="getInstance"></a> <h2>getInstance</h2> getInstance( ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/ScriptContext2023.html'>org.autoplot.ScriptContext2023</a> <p></p> <h3>Returns:</h3> org.autoplot.ScriptContext2023 <br><br> <a href="https://github.com/autoplot/dev/search?q=getInstance&unscoped_q=getInstance">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#getInstance">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l112">[view source]</a> <br> <br> <hr> <a name="getTimeRangesFor"></a> <h2>getTimeRangesFor</h2> getTimeRangesFor( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> surl, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> timeRange, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> format ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String[]</a> <p>return an array of URLs that match the spec for the time range provided. For example, <p><blockquote><pre> uri= 'http://cdaweb.gsfc.nasa.gov/istp_public/data/polar/hyd_h0/$Y/po_h0_hyd_$Y$m$d_v01.cdf?ELECTRON_DIFFERENTIAL_ENERGY_FLUX' xx= getTimeRangesFor( uri, '2000-jan', '$Y-$d-$m' ) for x in xx: print x </pre></blockquote><p></p> <h3>Parameters</h3> surl - an Autoplot uri with an aggregation specifier. <br> timeRange - a string that is parsed to a time range, such as "2001" <br> format - format for the result, such as "%Y-%m-%d" <h3>Returns:</h3> a list of URLs without the aggregation specifier. <br><br> <a href="https://github.com/autoplot/dev/search?q=getTimeRangesFor&unscoped_q=getTimeRangesFor">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#getTimeRangesFor">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1596">[view source]</a> <br> <br> <hr> <a name="getViewWindow"></a> <h2>getViewWindow</h2> getViewWindow( ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/Window.html'>java.awt.Window</a> <p>return the Window for the application, to be used for dialogs. See createGui(), which creates the view.</p> <h3>Returns:</h3> a java.awt.Window <br><br> <a href="https://github.com/autoplot/dev/search?q=getViewWindow&unscoped_q=getViewWindow">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#getViewWindow">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l469">[view source]</a> <br> <br> <hr> <a name="getWindow"></a> <h2>getWindow</h2> getWindow( ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/ApplicationModel.html'>org.autoplot.ApplicationModel</a> <p>return the internal handle for the window and dom within.</p> <h3>Returns:</h3> the internal handle for the application. <br><br> <a href="https://github.com/autoplot/dev/search?q=getWindow&unscoped_q=getWindow">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#getWindow">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l221">[view source]</a> <br> <br> <hr> <a name="isModelInitialized"></a> <h2>isModelInitialized</h2> isModelInitialized( ) → boolean <p>provide way to see if the model is already initialized (e.g. for clone application)</p> <h3>Returns:</h3> true is the model is already initialized. <br><br> <a href="https://github.com/autoplot/dev/search?q=isModelInitialized&unscoped_q=isModelInitialized">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#isModelInitialized">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1731">[view source]</a> <br> <br> <hr> <a name="load"></a> <h2>load</h2> load( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> filename ) → void <p>load the .vap file. This is implemented by calling plot on the URI.</p> <h3>Parameters</h3> filename - local or remote filename like http://autoplot.org/data/autoplot.vap <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=load&unscoped_q=load">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#load">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l2049">[view source]</a> <br> <br> <hr> <a name="loadVap"></a> <h2>loadVap</h2> loadVap( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> filename ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/dom/Application.html'>org.autoplot.dom.Application</a> <p>load a vap from a file and return the dom.</p> <h3>Parameters</h3> filename - .vap file <h3>Returns:</h3> Application <h3>See Also:</h3> <a href='null'>saveVap(org.autoplot.dom.Application, java.lang.String)</a> <br> <br><br> <a href="https://github.com/autoplot/dev/search?q=loadVap&unscoped_q=loadVap">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#loadVap">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l2060">[view source]</a> <br> <br> <hr> <a name="makeColorTable"></a> <h2>makeColorTable</h2> makeColorTable( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> name, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> index, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> rgb ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/graph/DasColorBar/Type.html'>org.das2.graph.DasColorBar.Type</a> <p>returns a color table with the given name. If the name is already registered, then the registered colortable is returned. using QDataSets as inputs to make it easier to use in scripts.</p> <h3>Parameters</h3> name - the name for the colortable. <br> index - control points for the colors, or None <br> rgb - dataset of ds[N,3] where N is the number of colors <h3>Returns:</h3> object representing the color table. <h3>See Also:</h3> <a href='null'>rgbColorDataset</a> <br> <br><br> <a href="https://github.com/autoplot/dev/search?q=makeColorTable&unscoped_q=makeColorTable">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#makeColorTable">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l649">[view source]</a> <br> <br> <hr> <a name="mkdir"></a> <h2>mkdir</h2> mkdir( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> dir ) → void <p>make the directory. This must be a local file right now, but may start with "file://"</p> <h3>Parameters</h3> dir - the directory <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=mkdir&unscoped_q=mkdir">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#mkdir">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1964">[view source]</a> <br> <br> <hr> <a name="newApplication"></a> <h2>newApplication</h2> newApplication( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> id ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/AutoplotUI.html'>org.autoplot.AutoplotUI</a> <p>get or create the application identified by the name. For example: <blockquote><pre> ds= ripples(20,20) plot( 0, ds ) sliceWindow= newApplication('slice') setApplication(sliceWindow) plot( slice0(ds,0) ) </pre></blockquote> Windows with this name will be reused.</p> <h3>Parameters</h3> id - an identifier <h3>Returns:</h3> the AutoplotUI. <br><br> <a href="https://github.com/autoplot/dev/search?q=newApplication&unscoped_q=newApplication">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#newApplication">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l242">[view source]</a> <br> <br> <hr> <a name="newDialogWindow"></a> <h2>newDialogWindow</h2> newDialogWindow( <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/Window.html'>java.awt.Window</a> parent, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> title ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/ApplicationModel.html'>org.autoplot.ApplicationModel</a> <p>return a new Autoplot.</p> <h3>Parameters</h3> parent - a Window <br> title - a String <h3>Returns:</h3> an org.autoplot.ApplicationModel <br><br> <a href="https://github.com/autoplot/dev/search?q=newDialogWindow&unscoped_q=newDialogWindow">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#newDialogWindow">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l310">[view source]</a> <br> <br> <hr> <a name="newWindow"></a> <h2>newWindow</h2> newWindow( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> id, int width, int height, int x, int y ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/ApplicationModel.html'>org.autoplot.ApplicationModel</a> <p>create a new window with the given location and size.</p> <h3>Parameters</h3> id - identifier for the window <br> width - the canvas width <br> height - the canvas height <br> x - the window upper-left location, if possible <br> y - the window upper-left location, if possible <h3>Returns:</h3> a handle (do not use this object, code will break) for the window. <h3>See Also:</h3> <a href='null'>setWindow(org.autoplot.ApplicationModel)</a> <br> <br><br> <a href="https://github.com/autoplot/dev/search?q=newWindow&unscoped_q=newWindow">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#newWindow">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l270">[view source]</a> <br> <br> newWindow( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> id ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/ApplicationModel.html'>org.autoplot.ApplicationModel</a><br> <hr> <a name="peekAt"></a> <h2>peekAt</h2> peekAt( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> o ) → void <p>This is intended to be used with a debugger. The developer should put a breakpoint at the out.write statement, and then call peekAt from the script.</p> <h3>Parameters</h3> o - any object we want to look at. <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=peekAt&unscoped_q=peekAt">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#peekAt">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1209">[view source]</a> <br> <br> <hr> <a name="plot"></a> <h2>plot</h2> plot( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> suri ) → void <p>bring up the autoplot with the specified URL. Note the URI is resolved asynchronously, so errors thrown during the load cannot be caught here. See getDataSet to load data synchronously.</p> <h3>Parameters</h3> suri - a URI or vap file <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=plot&unscoped_q=plot">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#plot">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l528">[view source]</a> <br> <br> plot( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> surl1, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> surl2 ) → void<br> plot( int chNum, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> surl ) → void<br> plot( int chNum, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> label, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> surl ) → void<br> plot( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> ds ) → void<br> plot( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> x, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> y ) → void<br> plot( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> x, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> y, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> z ) → void<br> plot( int chNum, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> ds ) → void<br> plot( int chNum, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> x, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> y ) → void<br> plot( int chNum, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> x, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> y, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> z ) → void<br> plot( int chNum, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> label, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> ds ) → void<br> plot( int chNum, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> label, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> x, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> y ) → void<br> plot( int chNum, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> label, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> x, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> y, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> renderType ) → void<br> plot( int chNum, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> label, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> x, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> y, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> renderType, boolean reset ) → void<br> plot( int chNum, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> label, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> x, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> y, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> z ) → void<br> plot( int chNum, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> label, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> x, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> y, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> z, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> renderType ) → void<br> plot( int chNum, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> label, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> x, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> y, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> z, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> renderType, boolean reset ) → void<br> <hr> <a name="reset"></a> <h2>reset</h2> reset( ) → void <p>reset the application to its initial state.</p> <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=reset&unscoped_q=reset">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#reset">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l2178">[view source]</a> <br> <br> <hr> <a name="save"></a> <h2>save</h2> save( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> filename ) → void <p>save the current state as a vap file</p> <h3>Parameters</h3> filename - a String <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=save&unscoped_q=save">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#save">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l2033">[view source]</a> <br> <br> <hr> <a name="saveVap"></a> <h2>saveVap</h2> saveVap( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/dom/Application.html'>org.autoplot.dom.Application</a> dom, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> filename ) → void <p>save the application dom to a file.</p> <h3>Parameters</h3> dom - the application state <br> filename - the file. <h3>Returns:</h3> void (returns nothing) <h3>See Also:</h3> <a href='null'>loadVap(java.lang.String)</a> <br> <br><br> <a href="https://github.com/autoplot/dev/search?q=saveVap&unscoped_q=saveVap">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#saveVap">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l2078">[view source]</a> <br> <br> <hr> <a name="setApplication"></a> <h2>setApplication</h2> setApplication( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/AutoplotUI.html'>org.autoplot.AutoplotUI</a> app ) → void <p>set the current application for commands. For example, to have two windows plotting data, you would: <pre> plot([1,2,3]) popup=newWindow('popup') setWindow(popup) plot([3,2,1]) </pre></p> <h3>Parameters</h3> app - the application <h3>Returns:</h3> void (returns nothing) <h3>See Also:</h3> <a href='null'>setWindow(org.autoplot.ApplicationModel)</a> <br> <a href='null'>newApplication(java.lang.String)</a> <br> <br><br> <a href="https://github.com/autoplot/dev/search?q=setApplication&unscoped_q=setApplication">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#setApplication">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l178">[view source]</a> <br> <br> <hr> <a name="setApplicationModel"></a> <h2>setApplicationModel</h2> setApplicationModel( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/ApplicationModel.html'>org.autoplot.ApplicationModel</a> m ) → void <p>set the focus for scripts.</p> <h3>Parameters</h3> m - the application model. <h3>Returns:</h3> void (returns nothing) <h3>See Also:</h3> <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/setWindow, which should be used instead/.html'>setWindow, which should be used instead.</a> <br> <br><br> <a href="https://github.com/autoplot/dev/search?q=setApplicationModel&unscoped_q=setApplicationModel">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#setApplicationModel">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l411">[view source]</a> <br> <br> <hr> <a name="setCanvasSize"></a> <h2>setCanvasSize</h2> setCanvasSize( int width, int height ) → void <p>set the size of the canvas. This is only used when the GUI is not used, and in headless mode, otherwise the GUI controls the size of the canvas.</p> <h3>Parameters</h3> width - the width of the canvas <br> height - the height of the canvas <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=setCanvasSize&unscoped_q=setCanvasSize">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#setCanvasSize">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l491">[view source]</a> <br> <br> <hr> <a name="setDataSourceURL"></a> <h2>setDataSourceURL</h2> setDataSourceURL( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> surl ) → void <p>set the internal model's url to surl. The data set will be loaded, and writeToPng and writeToSvg can be used in headless mode.</p> <h3>Parameters</h3> surl - a String <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=setDataSourceURL&unscoped_q=setDataSourceURL">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#setDataSourceURL">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l517">[view source]</a> <br> <br> <hr> <a name="setDefaultApplication"></a> <h2>setDefaultApplication</h2> setDefaultApplication( ) → void <p>reset the script focus to the default application.</p> <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=setDefaultApplication&unscoped_q=setDefaultApplication">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#setDefaultApplication">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l187">[view source]</a> <br> <br> <hr> <a name="setLayout"></a> <h2>setLayout</h2> setLayout( int nrows ) → void <p>make a stack plot.</p> <h3>Parameters</h3> nrows - number of rows (plots) <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=setLayout&unscoped_q=setLayout">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#setLayout">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l2094">[view source]</a> <br> <br> setLayout( int nrows, int ncolumns ) → void<br> <hr> <a name="setLayoutOverplot"></a> <h2>setLayoutOverplot</h2> setLayoutOverplot( int nplotElement ) → void <p>make a single plot with so many plot elements.</p> <h3>Parameters</h3> nplotElement - the number of plotElements on the one plot. <h3>Returns:</h3> void (returns nothing) <h3>See Also:</h3> <a href='null'>setLayout(int, int)</a> setLayout(int, int) which will create a grid of plots.<br> <a href='null'>addPlotElement(int)</a> addPlotElement(int) which will an another plotElement (an overplot) to the ith position.<br> <br><br> <a href="https://github.com/autoplot/dev/search?q=setLayoutOverplot&unscoped_q=setLayoutOverplot">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#setLayoutOverplot">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l2156">[view source]</a> <br> <br> <hr> <a name="setRenderStyle"></a> <h2>setRenderStyle</h2> setRenderStyle( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> name ) → void <p>Set the style used to render the data using a string identifier: spectrogram, series, scatter, histogram, fill_to_zero, digital</p> <h3>Parameters</h3> name - string name of the plot style. <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=setRenderStyle&unscoped_q=setRenderStyle">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#setRenderStyle">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1197">[view source]</a> <br> <br> <hr> <a name="setStatus"></a> <h2>setStatus</h2> setStatus( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> message ) → void <p>set the Autoplot status bar string. Use the prefixes "busy:", "warning:" and "error:" to set icons.</p> <h3>Parameters</h3> message - a String <h3>Returns:</h3> void (returns nothing) <h3>See Also:</h3> <a href='null'>showMessageDialog(java.lang.String)</a> <br> <br><br> <a href="https://github.com/autoplot/dev/search?q=setStatus&unscoped_q=setStatus">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#setStatus">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1117">[view source]</a> <br> <br> <hr> <a name="setTitle"></a> <h2>setTitle</h2> setTitle( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> title ) → void <p>set the title of the plot.</p> <h3>Parameters</h3> title - a String <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=setTitle&unscoped_q=setTitle">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#setTitle">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1703">[view source]</a> <br> <br> <hr> <a name="setWindow"></a> <h2>setWindow</h2> setWindow( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/ApplicationModel.html'>org.autoplot.ApplicationModel</a> appm ) → void <p>Set the application model. This is the simplest Autoplot implementation existing, where there are no buttons, etc.</p> <h3>Parameters</h3> appm - an ApplicationModel <h3>Returns:</h3> void (returns nothing) <h3>See Also:</h3> <a href='null'>newWindow(java.lang.String)</a> <br> <a href='null'>getWindow()</a> which returns the current window.<br> <a href='null'>setApplication(org.autoplot.AutoplotUI)</a> which creates another application.<br> <br><br> <a href="https://github.com/autoplot/dev/search?q=setWindow&unscoped_q=setWindow">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#setWindow">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l199">[view source]</a> <br> <br> <hr> <a name="setWindowLocation"></a> <h2>setWindowLocation</h2> setWindowLocation( int x, int y ) → void <p>set the window location</p> <h3>Parameters</h3> x - the window upper-left location, if possible <br> y - the window upper-left location, if possible <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=setWindowLocation&unscoped_q=setWindowLocation">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#setWindowLocation">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l295">[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/lang/String.html'>String</a> message ) → void <p>show a popup to the scientist, which they must acknowledge before this returns.</p> <h3>Parameters</h3> message - a String <h3>Returns:</h3> void (returns nothing) <h3>See Also:</h3> <a href='null'>setStatus(java.lang.String)</a> <br> <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/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#showMessageDialog">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1143">[view source]</a> <br> <br> <hr> <a name="sleep"></a> <h2>sleep</h2> sleep( int millis ) → void <p>sleep for so many milliseconds. This is introduced to avoid the import, which makes running scripts securely non-trivial.</p> <h3>Parameters</h3> millis - number of milliseconds to pause execution <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=sleep&unscoped_q=sleep">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#sleep">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1634">[view source]</a> <br> <br> <hr> <a name="unbind"></a> <h2>unbind</h2> unbind( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/dom/DomNode.html'>org.autoplot.dom.DomNode</a> src ) → void <p>unbind the property</p> <h3>Parameters</h3> src - a DomNode <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=unbind&unscoped_q=unbind">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#unbind">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1809">[view source]</a> <br> <br> unbind( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/dom/DomNode.html'>org.autoplot.dom.DomNode</a> src, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> srcProp, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/dom/DomNode.html'>org.autoplot.dom.DomNode</a> dst, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> dstProp ) → void<br> <hr> <a name="waitUntilIdle"></a> <h2>waitUntilIdle</h2> waitUntilIdle( ) → void <p>wait until the application is idle. This does a model.waitUntilIdle, but also checks for the DataSetSelector for pending operations.</p> <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=waitUntilIdle&unscoped_q=waitUntilIdle">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#waitUntilIdle">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1995">[view source]</a> <br> <br> waitUntilIdle( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> id ) → void<br> <hr> <a name="writeToBufferedImage"></a> <h2>writeToBufferedImage</h2> writeToBufferedImage( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/dom/Application.html'>org.autoplot.dom.Application</a> applicationIn ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/image/BufferedImage.html'>java.awt.image.BufferedImage</a> <p>creates a BufferedImage from the provided DOM. This blocks until the image is ready.</p> <h3>Parameters</h3> applicationIn - an Application <h3>Returns:</h3> the image <br><br> <a href="https://github.com/autoplot/dev/search?q=writeToBufferedImage&unscoped_q=writeToBufferedImage">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#writeToBufferedImage">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1546">[view source]</a> <br> <br> writeToBufferedImage( ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/image/BufferedImage.html'>java.awt.image.BufferedImage</a><br> <hr> <a name="writeToPdf"></a> <h2>writeToPdf</h2> writeToPdf( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> filename ) → void <p>write out the current canvas to a pdf file. TODO: this has issues with the size. See writeToPng(filename). It looks like this might be handled here Note for relative references, this will use the Java process present working directory (PWD) instead of the PWD variable found in scripts</p> <h3>Parameters</h3> filename - the local file to write the file. <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=writeToPdf&unscoped_q=writeToPdf">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#writeToPdf">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1502">[view source]</a> <br> <br> writeToPdf( <a href='https://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html'>java.io.OutputStream</a> out ) → void<br> <hr> <a name="writeToPng"></a> <h2>writeToPng</h2> writeToPng( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> filename ) → void <p>write out the current canvas to a png file. TODO: bug 557: this has issues with the size. It's coded to get the size from the DOM, but if it is fitted and has a container it must get size from the container. Use writeToPng( filename, width, height ) instead for now. See writeToPdf(String filename), which appears to have a fix for this that would affect how this is resolved. Note for relative references, this will use the Java process present working directory (PWD) instead of the PWD variable found in scripts</p> <h3>Parameters</h3> filename - The name of a local file <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=writeToPng&unscoped_q=writeToPng">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#writeToPng">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1284">[view source]</a> <br> <br> writeToPng( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> filename, int width, int height ) → void<br> writeToPng( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> filename, int width, int height, <a href='https://docs.oracle.com/javase/8/docs/api/java/util/Map.html'>java.util.Map</a> metadata ) → void<br> writeToPng( <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/image/BufferedImage.html'>java.awt.image.BufferedImage</a> image, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> filename, <a href='https://docs.oracle.com/javase/8/docs/api/java/util/Map.html'>java.util.Map</a> metadata ) → void<br> writeToPng( <a href='https://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html'>java.io.OutputStream</a> out ) → void<br> <hr> <a name="writeToSvg"></a> <h2>writeToSvg</h2> writeToSvg( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> filename ) → void <p>write out the current canvas to a svg file. Note for relative references, this will use the Java process present working directory (PWD) instead of the PWD variable found in scripts</p> <h3>Parameters</h3> filename - the local file to write the file. <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=writeToSvg&unscoped_q=writeToSvg">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/ScriptContext2023.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/ScriptContext2023.html#writeToSvg">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/org/autoplot/ScriptContext2023.java#l1456">[view source]</a> <br> <br> writeToSvg( <a href='https://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html'>java.io.OutputStream</a> out ) → void<br>