Documentation of 'jyplot.BarXYDataset' Java class
BarXYDataset
jyplot

Class BarXYDataset

    • Constructor Summary

      Constructors 
      Constructor and Description
      BarXYDataset()
      Creates a new dataset.
      BarXYDataset(double[] x, double[] y, double[] width, double[] height) 
      BarXYDataset(double[] x, double[] y, double[] width, double[] height, java.lang.Comparable seriesKey) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addSeries(double[] x, double[] y, double[] width, double[] height) 
      void addSeries(double[] x, double[] y, double[] width, double[] height, java.lang.Comparable seriesKey) 
      void addSeries(double x, double y, double width, double height) 
      void datasetChanged(DatasetChangeEvent event)
      Receives notification of an dataset change event.
      Range getDomainBounds(boolean includeInterval)
      Returns the range of the values in this dataset's domain.
      double getDomainLowerBound(boolean includeInterval)
      Returns the minimum x-value in the dataset.
      double getDomainUpperBound(boolean includeInterval)
      Returns the maximum x-value in the dataset.
      java.lang.Number getEndX(int series, int item)
      Returns the ending X value for the specified series and item.
      double getEndXValue(int series, int item)
      Returns the end x-value (as a double primitive) for an item within a series.
      java.lang.Number getEndY(int series, int item)
      Returns the ending Y value for the specified series and item.
      double getEndYValue(int series, int item)
      Returns the end y-value (as a double primitive) for an item within a series.
      int getItemCount(int series)
      Returns the number of items in a series.
      Range getRangeBounds(boolean includeInterval)
      Returns the range of the values in this dataset's range.
      double getRangeLowerBound(boolean includeInterval)
      Returns the minimum y-value in the dataset.
      double getRangeUpperBound(boolean includeInterval)
      Returns the maximum y-value in the dataset.
      int getSeriesCount()
      Returns the number of series in the dataset.
      java.lang.Comparable getSeriesKey(int series)
      Returns the key for a series.
      java.lang.Number getStartX(int series, int item)
      Returns the starting X value for the specified series and item.
      double getStartXValue(int series, int item)
      Returns the start x-value (as a double primitive) for an item within a series.
      java.lang.Number getStartY(int series, int item)
      Returns the starting Y value for the specified series and item.
      double getStartYValue(int series, int item)
      Returns the start y-value (as a double primitive) for an item within a series.
      java.lang.Number getX(int series, int item)
      Returns the x-value for an item within a series.
      double getXValue(int series, int item)
      Returns the x-value (as a double primitive) for an item within a series.
      java.lang.Number getY(int series, int item)
      Returns the y-value for an item within a series.
      double getYValue(int series, int item)
      Returns the y-value (as a double primitive) for an item within a series.
      int indexOf(java.lang.Comparable arg0)
      Returns the index of the named series, or -1.
      void removeSeries(int index) 
      void setSeriesKey(int series, java.lang.Comparable c)
      This is a test Sets the key for a series.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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,
                            java.lang.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 or Double.NaN if there are no values.
      • 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 or Double.NaN if there are no values.
      • 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,
                              java.lang.Comparable seriesKey)
      • getSeriesKey

        public java.lang.Comparable getSeriesKey(int series)
        Returns the key for a series.
        Specified by:
        getSeriesKey in interface SeriesDataset
        Specified by:
        getSeriesKey in class AbstractSeriesDataset
        Parameters:
        series - the series (zero-based index).
        Returns:
        The series key.
      • setSeriesKey

        public void setSeriesKey(int series,
                                 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.