BarXYDataset
jyplot

Class BarXYDataset

    • Constructor Detail

      • BarXYDataset

        public BarXYDataset()
        Creates a new dataset.
      • BarXYDataset

        public BarXYDataset(double[] x,            double[] y,            double[] width,            double[] height)
      • BarXYDataset

        public BarXYDataset(double[] x,            double[] y,            double[] width,            double[] height,            Comparable seriesKey)
    • Method Detail

      • getRangeBounds

        public Range getRangeBounds(boolean includeInterval)
        Description copied from interface: RangeInfo
        Returns the range of the values in this dataset's range.
        Specified by:
        getRangeBounds in interface RangeInfo
        Parameters:
        includeInterval - a flag that determines whether or not the y-interval is taken into account.
        Returns:
        The range (or null if the dataset contains no values).
      • getRangeLowerBound

        public double getRangeLowerBound(boolean includeInterval)
        Description copied from interface: RangeInfo
        Returns the minimum y-value in the dataset.
        Specified by:
        getRangeLowerBound in interface RangeInfo
        Parameters:
        includeInterval - a flag that determines whether or not the y-interval is taken into account.
        Returns:
        The minimum value.
      • getRangeUpperBound

        public double getRangeUpperBound(boolean includeInterval)
        Description copied from interface: RangeInfo
        Returns the maximum y-value in the dataset.
        Specified by:
        getRangeUpperBound in interface RangeInfo
        Parameters:
        includeInterval - a flag that determines whether or not the y-interval is taken into account.
        Returns:
        The maximum value.
      • getDomainBounds

        public Range getDomainBounds(boolean includeInterval)
        Description copied from interface: DomainInfo
        Returns the range of the values in this dataset's domain.
        Specified by:
        getDomainBounds in interface DomainInfo
        Parameters:
        includeInterval - a flag that determines whether or not the x-interval is taken into account.
        Returns:
        The range (or null if the dataset contains no values).
      • getDomainLowerBound

        public double getDomainLowerBound(boolean includeInterval)
        Description copied from interface: DomainInfo
        Returns the minimum x-value in the dataset.
        Specified by:
        getDomainLowerBound in interface DomainInfo
        Parameters:
        includeInterval - a flag that determines whether or not the x-interval is taken into account.
        Returns:
        The minimum value.
      • getDomainUpperBound

        public double getDomainUpperBound(boolean includeInterval)
        Description copied from interface: DomainInfo
        Returns the maximum x-value in the dataset.
        Specified by:
        getDomainUpperBound in interface DomainInfo
        Parameters:
        includeInterval - a flag that determines whether or not the x-interval is taken into account.
        Returns:
        The maximum value.
      • addSeries

        public void addSeries(double x,             double y,             double width,             double height)
      • addSeries

        public void addSeries(double[] x,             double[] y,             double[] width,             double[] height)
      • addSeries

        public void addSeries(double[] x,             double[] y,             double[] width,             double[] height,             Comparable seriesKey)
      • setSeriesKey

        public void setSeriesKey(int series,                Comparable c)
        This is a test Sets the key for a series.
        Parameters:
        series - the series (zero-based index).
      • getItemCount

        public int getItemCount(int series)
        Returns the number of items in a series.
        Specified by:
        getItemCount in interface XYDataset
        Parameters:
        series - the series (zero-based index).
        Returns:
        the number of items within a series.
      • getX

        public Number getX(int series,          int item)
        Returns the x-value for an item within a series.

        The implementation is responsible for ensuring that the x-values are presented in ascending order.

        Specified by:
        getX in interface XYDataset
        Parameters:
        series - the series (zero-based index).
        item - the item (zero-based index).
        Returns:
        the x-value for an item within a series.
      • getY

        public Number getY(int series,          int item)
        Returns the y-value for an item within a series.
        Specified by:
        getY in interface XYDataset
        Parameters:
        series - the series (zero-based index).
        item - the item (zero-based index).
        Returns:
        the y-value for an item within a series.
      • getStartX

        public Number getStartX(int series,               int item)
        Returns the starting X value for the specified series and item.
        Specified by:
        getStartX in interface IntervalXYDataset
        Parameters:
        series - the series (zero-based index).
        item - the item within a series (zero-based index).
        Returns:
        The value.
      • getEndX

        public Number getEndX(int series,             int item)
        Returns the ending X value for the specified series and item.
        Specified by:
        getEndX in interface IntervalXYDataset
        Parameters:
        series - the series (zero-based index).
        item - the item within a series (zero-based index).
        Returns:
        the end x value.
      • getStartY

        public Number getStartY(int series,               int item)
        Returns the starting Y value for the specified series and item.
        Specified by:
        getStartY in interface IntervalXYDataset
        Parameters:
        series - the series (zero-based index).
        item - the item within a series (zero-based index).
        Returns:
        The value.
      • getEndY

        public Number getEndY(int series,             int item)
        Returns the ending Y value for the specified series and item.
        Specified by:
        getEndY in interface IntervalXYDataset
        Parameters:
        series - the series (zero-based index).
        item - the item within a series (zero-based index).
        Returns:
        The value.
      • getXValue

        public double getXValue(int series,               int item)
        Description copied from class: AbstractXYDataset
        Returns the x-value (as a double primitive) for an item within a series.
        Specified by:
        getXValue in interface XYDataset
        Overrides:
        getXValue in class AbstractXYDataset
        Parameters:
        series - the series index (zero-based).
        item - the item index (zero-based).
        Returns:
        The value.
      • getYValue

        public double getYValue(int series,               int item)
        Description copied from class: AbstractXYDataset
        Returns the y-value (as a double primitive) for an item within a series.
        Specified by:
        getYValue in interface XYDataset
        Overrides:
        getYValue in class AbstractXYDataset
        Parameters:
        series - the series index (zero-based).
        item - the item index (zero-based).
        Returns:
        The value.
      • removeSeries

        public void removeSeries(int index)

SCaVis 1.8 © jWork.org