Package hec.gfx2d

Class TimeSeriesDataSetBase

All Implemented Interfaces:
G2dObject, Serializable
Direct Known Subclasses:
TimeSeriesDataSet

public class TimeSeriesDataSetBase extends G2dData implements G2dObject
A plot data object wrapping around a time series container. This class was introduced to allow the display unit changes to be ignored. DssVue's Graphical Editor requires that the data is plotted always in the unit's that the data is stored as.
See Also:
  • Field Details

    • _timeSeries

      public TimeSeriesContainer _timeSeries
    • times

      public long[] times
    • ydata

      public double[] ydata
    • numberValues

      public int numberValues
    • startIdx

      public int startIdx
    • endIdx

      public int endIdx
    • xtype

      public String xtype
    • ytype

      public String ytype
  • Constructor Details

    • TimeSeriesDataSetBase

      public TimeSeriesDataSetBase(TimeSeriesContainer timeSeriesContainer)
  • Method Details

    • setEndOfPeriodData

      public void setEndOfPeriodData(boolean b)
    • isEndOfPeriodData

      public boolean isEndOfPeriodData()
    • getData

      public TimeSeriesContainer getData()
    • setData

      public void setData(TimeSeriesContainer timeSeriesContainer)
    • getXValues

      public double[] getXValues()
      Specified by:
      getXValues in interface G2dObject
      Overrides:
      getXValues in class G2dData
    • getYValues

      public double[] getYValues(int curveNum)
      Description copied from class: G2dData
      Returns a double[] for the curve specified by the curve number.
      Specified by:
      getYValues in interface G2dObject
      Overrides:
      getYValues in class G2dData
    • size

      public int size()
      size returns the number of valid data points
    • 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
    • setVisible

      public void setVisible(boolean tf)
    • isVisible

      public boolean isVisible()
    • load

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

      public boolean isLoaded()
      Returns:
    • setLoaded

      public void setLoaded(boolean loaded)
      Parameters:
      loaded -
    • 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
    • getNearestDataPt

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getInterval

      public double getInterval()
    • getDataZoneId

      public Optional<ZoneId> getDataZoneId()
      Specified by:
      getDataZoneId in interface G2dObject
      Returns: