Package hec.hecmath
Class PlotUtilities
java.lang.Object
hec.hecmath.PlotUtilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic G2dObjectcreatePlotDataObject(HecMath dataSet) Creates a valid G2dObject suitable for plotting or null if there was an error;static DataContainercreateTabulateObject(HecMath dataSet) Creates a valid DataContainer that is suitable for tabulating or null if there was some type of error.static G2dLinestatic G2dLinereturn theG2dLinefor the path specified indssPathstatic ViewportgetViewport(G2dDialog gfxDlg, HecMath dataSet) return theViewportthat contains the curve specified by dataSetstatic ViewportgetViewport(G2dDialog gfxDlg, String dataSetPath) return theViewportthat contains the curve specified by dataSetPath
-
Constructor Details
-
PlotUtilities
public PlotUtilities()
-
-
Method Details
-
createPlotDataObject
Creates a valid G2dObject suitable for plotting or null if there was an error;- Parameters:
dataSet-- Returns:
-
createTabulateObject
Creates a valid DataContainer that is suitable for tabulating or null if there was some type of error.- Parameters:
dataSet-- Returns:
-
getViewport
return theViewportthat contains the curve specified by dataSet- Parameters:
dataSet-- Returns:
- the enclosing Viewport
-
getViewport
return theViewportthat contains the curve specified by dataSetPath- Parameters:
dataSetPath- the path for a curve- Returns:
- the enclosing Viewport
-
getCurve
- Parameters:
dataSet- the dataSet to return theG2dLinefor- Returns:
- the G2dLine that draws dataSet
-
getCurve
return theG2dLinefor the path specified indssPath- Parameters:
dssPath- the DSS path name of the curve to return- Returns:
- the G2dLine or null if not found
-