Package hec.gfx2d

Class SimplePairedValuesData

java.lang.Object
java.util.Observable
hec.gfx2d.G2dData
hec.gfx2d.SimplePairedValuesData
All Implemented Interfaces:
G2dObject, Serializable

public class SimplePairedValuesData extends G2dData implements G2dObject
Simple data object for holding an array for ploting.
See Also:
  • Field Details

    • xdata

      public double[] xdata
    • ydata

      public double[] ydata
    • xdataOrg

      public double[] xdataOrg
    • ydataOrg

      public double[] ydataOrg
    • _pv

      protected PairedValues _pv
    • _interpolationType

      protected String _interpolationType
  • Constructor Details

    • SimplePairedValuesData

      public SimplePairedValuesData()
    • SimplePairedValuesData

      public SimplePairedValuesData(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
    • setData

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

      public void setData(PairedValues 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
    • 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