org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.gui
Class GraphWindowAPI_Impl
java.lang.Object
org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.gui.GraphWindowAPI_Impl
- All Implemented Interfaces:
- GraphWindowAPI
public class GraphWindowAPI_Impl
- extends Object
- implements GraphWindowAPI
This class will used to plot the Mag Freq dist for RuptureModelApp
- Author:
- vipingupta
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
funcs
protected ArrayList funcs
PLOT_CHAR1
protected final PlotCurveCharacterstics PLOT_CHAR1
PLOT_CHAR2
protected final PlotCurveCharacterstics PLOT_CHAR2
PLOT_CHAR3
protected final PlotCurveCharacterstics PLOT_CHAR3
PLOT_CHAR4
protected final PlotCurveCharacterstics PLOT_CHAR4
PLOT_CHAR5
protected final PlotCurveCharacterstics PLOT_CHAR5
PLOT_CHAR6
protected final PlotCurveCharacterstics PLOT_CHAR6
PLOT_CHAR7
protected final PlotCurveCharacterstics PLOT_CHAR7
PLOT_CHAR8
protected final PlotCurveCharacterstics PLOT_CHAR8
PLOT_CHAR9
protected final PlotCurveCharacterstics PLOT_CHAR9
PLOT_CHAR10
protected final PlotCurveCharacterstics PLOT_CHAR10
PLOT_CHAR11
protected final PlotCurveCharacterstics PLOT_CHAR11
PLOT_CHAR12
protected final PlotCurveCharacterstics PLOT_CHAR12
PLOT_CHAR13
protected final PlotCurveCharacterstics PLOT_CHAR13
PLOT_CHAR14
protected final PlotCurveCharacterstics PLOT_CHAR14
PLOT_CHAR15
protected final PlotCurveCharacterstics PLOT_CHAR15
PLOT_CHAR16
protected final PlotCurveCharacterstics PLOT_CHAR16
PLOT_CHAR17
protected final PlotCurveCharacterstics PLOT_CHAR17
PLOT_CHAR18
protected final PlotCurveCharacterstics PLOT_CHAR18
PLOT_CHAR19
protected final PlotCurveCharacterstics PLOT_CHAR19
PLOT_CHAR20
protected final PlotCurveCharacterstics PLOT_CHAR20
PLOT_CHAR21
protected final PlotCurveCharacterstics PLOT_CHAR21
PLOT_CHAR22
protected final PlotCurveCharacterstics PLOT_CHAR22
PLOT_CHAR23
protected final PlotCurveCharacterstics PLOT_CHAR23
PLOT_CHAR24
protected final PlotCurveCharacterstics PLOT_CHAR24
GraphWindowAPI_Impl
public GraphWindowAPI_Impl(ArrayList funcs,
String xAxisLabel,
String yAxisLabel,
String plotLabel)
- ArrayList of ArbitrarilyDiscretizedFunctions
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
saveAsPNG
public void saveAsPNG(String pngFileName)
- Save the plot as a PNG file
- Parameters:
fpngFileName -
destroy
public void destroy()
- Destroy the plot window