org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.gui
Class CreatePlotFromSegRecurIntvFile

java.lang.Object
  extended by org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.gui.CreatePlotFromSegRecurIntvFile
All Implemented Interfaces:
GraphWindowAPI

public class CreatePlotFromSegRecurIntvFile
extends Object
implements GraphWindowAPI

Create the plots from segment recurrence interval file

Author:
vipingupta

Constructor Summary
CreatePlotFromSegRecurIntvFile(ArrayList funcList)
           
 
Method Summary
static void createPlots(String masterDirName, String excelSheetName)
          It creates plots and saves PDFs in A_FaultSegRecurIntvPlots_2_1 subdirectory in masterDirectory
 ArrayList getCurveFunctionList()
           
 ArrayList getPlottingFeatures()
           
 double getUserMaxX()
           
 double getUserMaxY()
           
 double getUserMinX()
           
 double getUserMinY()
           
 String getXAxisLabel()
           
 boolean getXLog()
           
 String getYAxisLabel()
           
 boolean getYLog()
           
 boolean isCustomAxis()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreatePlotFromSegRecurIntvFile

public CreatePlotFromSegRecurIntvFile(ArrayList funcList)
Method Detail

getCurveFunctionList

public ArrayList getCurveFunctionList()
Specified by:
getCurveFunctionList in interface GraphWindowAPI
Returns:
the List for all the ArbitrarilyDiscretizedFunctions and Weighted Function list.

getXLog

public boolean getXLog()
Specified by:
getXLog in interface GraphWindowAPI
Returns:
the boolean: Log for X-Axis Selected

getYLog

public boolean getYLog()
Specified by:
getYLog in interface GraphWindowAPI
Returns:
the boolean: Log for Y-Axis Selected

getXAxisLabel

public String getXAxisLabel()
Specified by:
getXAxisLabel in interface GraphWindowAPI

getYAxisLabel

public String getYAxisLabel()
Specified by:
getYAxisLabel in interface GraphWindowAPI

getPlottingFeatures

public ArrayList getPlottingFeatures()
Specified by:
getPlottingFeatures in interface GraphWindowAPI
Returns:
the plotting feature like width, color and shape type of each curve in list.

isCustomAxis

public boolean isCustomAxis()
Specified by:
isCustomAxis in interface GraphWindowAPI
Returns:
boolean: Checks if Custom Axis is selected

getUserMinX

public double getUserMinX()
Specified by:
getUserMinX in interface GraphWindowAPI
Returns:
the Min X-Axis Range Value, if custom Axis is choosen

getUserMaxX

public double getUserMaxX()
Specified by:
getUserMaxX in interface GraphWindowAPI
Returns:
the Max X-Axis Range Value, if custom axis is choosen

getUserMinY

public double getUserMinY()
Specified by:
getUserMinY in interface GraphWindowAPI
Returns:
the Min Y-Axis Range Value, if custom axis is choosen

getUserMaxY

public double getUserMaxY()
Specified by:
getUserMaxY in interface GraphWindowAPI
Returns:
the Max Y-Axis Range Value, if custom axis is choosen

createPlots

public static void createPlots(String masterDirName,
                               String excelSheetName)
It creates plots and saves PDFs in A_FaultSegRecurIntvPlots_2_1 subdirectory in masterDirectory

Parameters:
masterDirName - MasterDirectoty where A_FaultSegRecurIntvPlots_2_1 will be created
excelSheetName - Absolute pathname to excel file