org.opensha.sha.cybershake.plot
Class ScatterComparisonCreator

java.lang.Object
  extended by org.opensha.sha.cybershake.plot.ScatterComparisonCreator

public class ScatterComparisonCreator
extends java.lang.Object


Constructor Summary
ScatterComparisonCreator(DBAccess db, int erfID, int rupVarScenarioID, int sgtVarID, int velModelID, int imTypeID)
           
 
Method Summary
 org.jfree.chart.JFreeChart getChart(java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, java.util.ArrayList<org.jfree.data.xy.XYSeries> series)
           
 java.util.ArrayList<java.lang.Double> getComparisonValsFromXYZ(java.lang.String xyzFile)
           
 org.jfree.data.xy.XYSeries getSeries(boolean isProbAt_IML, double val, java.util.ArrayList<java.lang.Double> comparisonVals, java.lang.String name)
           
static void main(java.lang.String[] args)
           
 void saveChartPNG(org.jfree.chart.JFreeChart chart, int width, int height, java.lang.String fileName)
           
 void writeScatterFile(boolean isProbAt_IML, double val, java.util.ArrayList<java.lang.Double> comparisonVals, java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScatterComparisonCreator

public ScatterComparisonCreator(DBAccess db,
                                int erfID,
                                int rupVarScenarioID,
                                int sgtVarID,
                                int velModelID,
                                int imTypeID)
Method Detail

writeScatterFile

public void writeScatterFile(boolean isProbAt_IML,
                             double val,
                             java.util.ArrayList<java.lang.Double> comparisonVals,
                             java.lang.String fileName)
                      throws java.io.IOException
Throws:
java.io.IOException

getSeries

public org.jfree.data.xy.XYSeries getSeries(boolean isProbAt_IML,
                                            double val,
                                            java.util.ArrayList<java.lang.Double> comparisonVals,
                                            java.lang.String name)

getChart

public org.jfree.chart.JFreeChart getChart(java.lang.String title,
                                           java.lang.String xLabel,
                                           java.lang.String yLabel,
                                           java.util.ArrayList<org.jfree.data.xy.XYSeries> series)

saveChartPNG

public void saveChartPNG(org.jfree.chart.JFreeChart chart,
                         int width,
                         int height,
                         java.lang.String fileName)
                  throws java.io.IOException
Throws:
java.io.IOException

getComparisonValsFromXYZ

public java.util.ArrayList<java.lang.Double> getComparisonValsFromXYZ(java.lang.String xyzFile)
                                                               throws java.io.FileNotFoundException,
                                                                      java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

main

public static void main(java.lang.String[] args)