Package hec.gfx2d

Class PairedValuesExtData

All Implemented Interfaces:
G2dObject, Serializable

public class PairedValuesExtData extends G2dData implements G2dObject
Simple data object for holding PairedValuesExt for ploting.
See Also:
  • Field Details

    • xdata

      public double[] xdata
    • ydata

      public double[][] ydata
    • curveLabels

      public String[] curveLabels
    • numberCurves

      public int numberCurves
    • xdataOrg

      public double[] xdataOrg
    • ydataOrg

      public double[][] ydataOrg
    • _pv

      protected PairedValuesExt _pv
    • _interpolationType

      protected String _interpolationType
  • Constructor Details

    • PairedValuesExtData

      public PairedValuesExtData()
    • PairedValuesExtData

      public PairedValuesExtData(boolean createDefaults)
  • Method Details

    • createDefaultData

      protected void createDefaultData()
    • getXAxisName

      public String getXAxisName()
      Returns the name of the x axis
      Specified by:
      getXAxisName in interface G2dObject
    • getYAxisName

      public String getYAxisName()
      Returns the name of the y axis
      Specified by:
      getYAxisName in interface G2dObject
    • getXAxisType

      public int getXAxisType()
      Returns the name of the x axis
      Specified by:
      getXAxisType in interface G2dObject
    • getYAxisType

      public int getYAxisType()
      Returns the name of the y axis
      Specified by:
      getYAxisType in interface G2dObject
    • setXAxisType

      public void setXAxisType(int xAxis)
      set the x axis type
    • setYAxisType

      public void setYAxisType(int yAxis)
      set the y axis type
    • getXParameterId

      public int getXParameterId()
      Override super class to allow swaping of x and y for plotting
      Specified by:
      getXParameterId in interface G2dObject
      Overrides:
      getXParameterId in class G2dData
    • getYParameterId

      public int getYParameterId()
      Specified by:
      getYParameterId in interface G2dObject
      Overrides:
      getYParameterId in class G2dData
    • getCurveCount

      public int getCurveCount()
      Description copied from class: G2dData
      Returns the number of curves that this object contains.
      Specified by:
      getCurveCount in interface G2dObject
      Overrides:
      getCurveCount in class G2dData
    • setData

      public void setData(double[] xd, double[][] yd)
      sets the data arrays and notifies observers
    • setData

      public void setData(PairedValuesExt pv)
    • resetData

      public void resetData()
      sets the data Vector and notifies observers
    • setInterpolationType

      public void setInterpolationType(String interpType)
      set interpolation type
    • setPlotXvsY

      public void setPlotXvsY(boolean tf)
      flip x-y data for plotting
    • getPlotXvsY

      public boolean getPlotXvsY()
    • calcPlotArrays

      public boolean calcPlotArrays()
    • load

      public void load()
      Causes the object to load its data into memory
      Specified by:
      load in interface G2dObject
    • unload

      public void unload()
      Causes the object to unload its data from memory
      Specified by:
      unload in interface G2dObject
    • getBounds

      public WorldRect getBounds()
      Returns the extents of the object in world coordinates
      Specified by:
      getBounds in interface G2dObject
      Specified by:
      getBounds in class G2dData