Package hec.hecmath

Class DisplayUtilities

java.lang.Object
hec.hecmath.DisplayUtilities

public class DisplayUtilities extends Object
  • Constructor Details

    • DisplayUtilities

      public DisplayUtilities()
  • Method Details

    • createDisplayObject

      public static DataContainer createDisplayObject(HecMath dataSet)
      Creates a valid G2dObject suitable for plotting or null if there was an error;
      Parameters:
      dataSet -
      Returns:
      DataContainer
    • getViewport

      public static Viewport getViewport(G2dDialog gfxDlg, HecMath dataSet)
      return the Viewport that contains the curve specified by dataSet
      Parameters:
      dataSet -
      gfxDlg - Description
      Returns:
      the enclosing Viewport
    • getViewport

      public static Viewport getViewport(G2dDialog gfxDlg, String dataSetPath)
      return the Viewport that contains the curve specified by dataSetPath
      Parameters:
      dataSetPath - the path for a curve
      gfxDlg - Description
      Returns:
      the enclosing Viewport
    • getCurve

      public static G2dLine getCurve(G2dDialog gfxDlg, HecMath dataSet)
      Parameters:
      dataSet - the dataSet to return the G2dLine for
      gfxDlg - Description
      Returns:
      the G2dLine that draws dataSet
    • getCurve

      public static G2dLine getCurve(G2dDialog gfxDlg, String dssPath)
      return the G2dLine for the path specified in dssPath
      Parameters:
      dssPath - the DSS path name of the curve to return
      gfxDlg - Description
      Returns:
      the G2dLine or null if not found