org.virbo.autoplot
Class AutoplotUtil

java.lang.Object
  extended by org.virbo.autoplot.AutoplotUtil

public class AutoplotUtil
extends java.lang.Object


Nested Class Summary
static class AutoplotUtil.AutoRangeDescriptor
           
static class AutoplotUtil.MomentDescriptor
           
 
Constructor Summary
AutoplotUtil()
           
 
Method Summary
static org.virbo.dataset.WritableDataSet applyFillValidRange(org.virbo.dataset.QDataSet ds, double vmin, double vmax, double fill)
          rewrite the dataset so that fill values are set by the valid range and fill controls.
static AutoplotUtil.AutoRangeDescriptor autoRange(org.virbo.dataset.QDataSet ds, java.util.Map properties)
           
static java.util.Map<java.lang.String,java.lang.Object> extractProperties(org.virbo.dataset.QDataSet ds)
          extract the properties from the dataset into the same format as metadata model returns.
static edu.uiowa.physics.pw.das.util.PersistentStateSupport getPersistentStateSupport(AutoPlotUI parent, ApplicationModel applicationModel)
           
static java.util.Map<java.lang.String,java.lang.Object> mergeProperties(java.util.Map<java.lang.String,java.lang.Object> properties, java.util.Map<java.lang.String,java.lang.Object> deflt)
          combine the two properties trees, using values from the first when both contain the same property.
static AutoplotUtil.MomentDescriptor moment(org.virbo.dataset.QDataSet ds)
          performs the moment (mean,variance,etc) on the dataset.
static void openBrowser(java.lang.String url)
          open the URL in a browser.
static org.w3c.dom.Document readDoc(java.io.InputStream is)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoplotUtil

public AutoplotUtil()
Method Detail

autoRange

public static AutoplotUtil.AutoRangeDescriptor autoRange(org.virbo.dataset.QDataSet ds,
                                                         java.util.Map properties)

openBrowser

public static void openBrowser(java.lang.String url)
open the URL in a browser. Borrowed from http://www.centerkey.com/java/browser/.


moment

public static AutoplotUtil.MomentDescriptor moment(org.virbo.dataset.QDataSet ds)
performs the moment (mean,variance,etc) on the dataset.


readDoc

public static org.w3c.dom.Document readDoc(java.io.InputStream is)
                                    throws org.xml.sax.SAXException,
                                           java.io.IOException,
                                           javax.xml.parsers.ParserConfigurationException
Throws:
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException

applyFillValidRange

public static org.virbo.dataset.WritableDataSet applyFillValidRange(org.virbo.dataset.QDataSet ds,
                                                                    double vmin,
                                                                    double vmax,
                                                                    double fill)
rewrite the dataset so that fill values are set by the valid range and fill controls.


extractProperties

public static java.util.Map<java.lang.String,java.lang.Object> extractProperties(org.virbo.dataset.QDataSet ds)
extract the properties from the dataset into the same format as metadata model returns.

Parameters:
ds -
spec -
Returns:

mergeProperties

public static java.util.Map<java.lang.String,java.lang.Object> mergeProperties(java.util.Map<java.lang.String,java.lang.Object> properties,
                                                                               java.util.Map<java.lang.String,java.lang.Object> deflt)
combine the two properties trees, using values from the first when both contain the same property.

Parameters:
properties -
deflt -
Returns:

getPersistentStateSupport

public static edu.uiowa.physics.pw.das.util.PersistentStateSupport getPersistentStateSupport(AutoPlotUI parent,
                                                                                             ApplicationModel applicationModel)