Package hec.gfx2d

Class SimpleSeasonalData

All Implemented Interfaces:
G2dObject, Serializable

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

    • tdata

      public int[] tdata
    • ydata

      public double[] ydata
    • tdataOrg

      public int[] tdataOrg
    • ydataOrg

      public double[] ydataOrg
    • xtype

      public String xtype
    • ytype

      public String ytype
    • _sr

      protected SeasonalRecord _sr
    • _interpolationType

      protected String _interpolationType
    • _nyears

      protected int _nyears
  • Constructor Details

    • SimpleSeasonalData

      public SimpleSeasonalData()
  • Method Details

    • 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
    • setData

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

      public void setData(SeasonalRecord sr)
    • setInterpolationType

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

      public void setPlotYears(int n)
      years for plotting
    • calcPlotArrays

      public boolean calcPlotArrays()
    • calculationsSuccessful

      public boolean calculationsSuccessful()
    • 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
    • interpolateValue

      public double interpolateValue(int interpTime)
      interpolates a data value from the calculated plot arrays
    • resetData

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

      public WorldPt getNearestDataPt(WorldPt pt)
      Returns the point in local coordinates of the closest data point to the given pt
    • getTimeSeriesContainer

      public TimeSeriesContainer getTimeSeriesContainer()