Class MatrixSeriesCollection<S extends Comparable<S>>

    • Method Detail

      • getItemCount

        public int getItemCount​(int seriesIndex)
        Returns the number of items in the specified series.
        Specified by:
        getItemCount in interface XYDataset<S extends Comparable<S>>
        Parameters:
        seriesIndex - zero-based series index.
        Returns:
        The number of items in the specified series.
      • getSeries

        public MatrixSeries<SgetSeries​(int seriesIndex)
        Returns the series having the specified index.
        Parameters:
        seriesIndex - zero-based series index.
        Returns:
        The series.
      • getX

        public Number getX​(int seriesIndex,
                           int itemIndex)
        Returns the j index value of the specified Mij matrix item in the specified matrix series.
        Specified by:
        getX in interface XYDataset<S extends Comparable<S>>
        Parameters:
        seriesIndex - zero-based series index.
        itemIndex - zero-based item index.
        Returns:
        The j index value for the specified matrix item.
        See Also:
        XYDataset.getXValue(int, int)
      • getY

        public Number getY​(int seriesIndex,
                           int itemIndex)
        Returns the i index value of the specified Mij matrix item in the specified matrix series.
        Specified by:
        getY in interface XYDataset<S extends Comparable<S>>
        Parameters:
        seriesIndex - zero-based series index.
        itemIndex - zero-based item index.
        Returns:
        The i index value for the specified matrix item.
        See Also:
        XYDataset.getYValue(int, int)
      • getZ

        public Number getZ​(int seriesIndex,
                           int itemIndex)
        Returns the Mij item value of the specified Mij matrix item in the specified matrix series.
        Specified by:
        getZ in interface XYZDataset<S extends Comparable<S>>
        Parameters:
        seriesIndex - the series (zero-based index).
        itemIndex - zero-based item index.
        Returns:
        The Mij item value for the specified matrix item.
        See Also:
        XYZDataset.getZValue(int, int)
      • addSeries

        public void addSeries​(MatrixSeries<S> series)
        Adds a series to the collection.

        Notifies all registered listeners that the dataset has changed.

        Parameters:
        series - the series (null not permitted).
      • equals

        public boolean equals​(Object obj)
        Tests this collection for equality with an arbitrary object.
        Overrides:
        equals in class Object
        Parameters:
        obj - the object.
        Returns:
        A boolean.
      • hashCode

        public int hashCode()
        Returns a hash code.
        Overrides:
        hashCode in class Object
        Returns:
        A hash code.
      • removeAllSeries

        public void removeAllSeries()
        Removes all the series from the collection.

        Notifies all registered listeners that the dataset has changed.

      • removeSeries

        public void removeSeries​(MatrixSeries<S> series)
        Removes a series from the collection.

        Notifies all registered listeners that the dataset has changed.

        Parameters:
        series - the series (null).
      • removeSeries

        public void removeSeries​(int seriesIndex)
        Removes a series from the collection.

        Notifies all registered listeners that the dataset has changed.

        Parameters:
        seriesIndex - the series (zero based index).