Interface DataSetCollection<T extends DataSeriesInternal>

All Superinterfaces:
DataChangeListener, PlotExceptionCause
All Known Subinterfaces:
XYRangedDataSetCollection<T>
All Known Implementing Classes:
AbstractDataSetCollection, AbstractXYDataSetCollection, CategoryDataSetCollection, CombinedXYDataSetCollection, IntervalAndTableXYDataSetCollectionWrapper, IntervalAndTableXYDataSetCollectionWrapper.IntervalAndTableXYDataSetCollectionWrapperSnapshot, IntervalDataSetCollection, IntervalDataSetCollectionWrapper, IntervalDataSetCollectionWrapper.IntervalDataSetCollectionWrapperSnapshot, OHLCDataSetCollection, PieDataSetCollection, StackedXYDataSetCollection, StackedXYDataSetCollection.StackedXYDataSetCollectionSnapshot, TransformedCategoryDataSetCollection, TransformedIntervalDataSetCollection, TransformedOHLCDataSetCollection, TransformedXYDataSetCollection, XYDataSetCollection

public interface DataSetCollection<T extends DataSeriesInternal>
extends DataChangeListener, PlotExceptionCause
Collection of DataSeriesInternal.
  • Method Details

    • series

      Collection<T> series()
      Returns:
      the series (not including the MultiSeries) in this collection
    • multiSeries

    • add

      void add​(T series)
      Adds a series to this collection.
      Parameters:
      series - series
    • add

      void add​(MultiSeriesInternal<T> series)
    • remove

      Set<? extends SeriesInternal> remove​(String... names)
      Removes the series with the specified names from this collection.
      Parameters:
      names - series names
    • dimension

      int dimension()
      Gets the dimension of this data set.
      Returns:
      dimension of this data set
    • getAllSeries

      List<T> getAllSeries()
      Returns:
      all series from this collection
    • getCurrentSnapshot

      DataSetCollection getCurrentSnapshot()
      Returns a snapshot of this dataset collection in which no series which will update.
    • constructSnapshot

      void constructSnapshot()
      Constructs a snapshot of this dataset collection.
    • axes

      AxesImpl axes()
      Returns:
      the axes of this dataset collection
    • id

      int id()
      Gets the id of this datasetcollection which is same as the id of the Axes instance it is associated with
      Returns:
      - id of the datasetcollection
    • get

      Integer get​(Comparable seriesName)
      Returns index of the series, -1 if its not found
      Parameters:
      seriesName - name of the series
      Returns:
      index of the series