Interface CategoryDataSeries

All Superinterfaces:
DataSeries, Serializable, Series
All Known Subinterfaces:
CategoryDataSeriesInternal, CategoryErrorBarDataSeries, CategoryErrorBarDataSeriesInternal, CategorySwappableTableDataSeriesInternal, CategoryTableDataSeriesInternal, Figure
All Known Implementing Classes:
AbstractCategoryDataSeries, AbstractMapBasedCategoryDataSeries, AbstractSwappableTableBasedCategoryDataSeries, AbstractTableBasedCategoryDataSeries, CategoryDataSeriesMap, CategoryDataSeriesSwappableTableMap, CategoryDataSeriesTableMap, CategoryErrorBarDataSeriesMap, CategoryErrorBarDataSeriesSwappableTableMap, CategoryErrorBarDataSeriesTableMap, FigureImpl, FigureWidget, ScatterPlotMatrix, TransformedCategoryDataSeries

public interface CategoryDataSeries
extends DataSeries
Dataset with discrete and numeric components. Discrete values must extend Comparable and are called categories.
  • Method Details

    • group

      CategoryDataSeries group​(int group)
      Sets the group for this dataset.
      Returns:
      this data series.
    • linesVisible

      CategoryDataSeries linesVisible​(Boolean visible)
      Sets the visibility of the lines for this dataset.
      Specified by:
      linesVisible in interface DataSeries
      Parameters:
      visible - whether to display lines or not
      Returns:
      this CategoryDataSeries
    • pointsVisible

      CategoryDataSeries pointsVisible​(Boolean visible)
      Sets the visibility of the point shapes for this dataset.
      Specified by:
      pointsVisible in interface DataSeries
      Parameters:
      visible - whether to display point shapes or not
      Returns:
      this CategoryDataSeries
    • gradientVisible

      CategoryDataSeries gradientVisible​(boolean visible)
      Sets the visibility of bar gradients for this dataset.
      Specified by:
      gradientVisible in interface DataSeries
      Parameters:
      visible - whether to display bar gradients or not
      Returns:
      this CategoryDataSeries
    • lineColor

      CategoryDataSeries lineColor​(Paint color)
      Sets the default line Paint for this dataset.
      Specified by:
      lineColor in interface DataSeries
      Parameters:
      color - color
      Returns:
      this CategoryDataSeries
    • lineColor

      CategoryDataSeries lineColor​(int color)
      Sets the default line Paint for this dataset.
      Specified by:
      lineColor in interface DataSeries
      Parameters:
      color - index of the color in the series color palette
      Returns:
      this CategoryDataSeries
    • lineColor

      CategoryDataSeries lineColor​(String color)
      Sets the default line Paint for this dataset.
      Specified by:
      lineColor in interface DataSeries
      Parameters:
      color - color
      Returns:
      this CategoryDataSeries
    • errorBarColor

      CategoryDataSeries errorBarColor​(Paint color)
      Sets the error bar Paint for this dataset.
      Specified by:
      errorBarColor in interface DataSeries
      Parameters:
      color - color
      Returns:
      this CategoryDataSeries
    • errorBarColor

      CategoryDataSeries errorBarColor​(int color)
      Sets the error bar Paint for this dataset.
      Specified by:
      errorBarColor in interface DataSeries
      Parameters:
      color - index of the color in the series color palette
      Returns:
      this CategoryDataSeries
    • errorBarColor

      CategoryDataSeries errorBarColor​(String color)
      Sets the error bar Paint for this dataset.
      Specified by:
      errorBarColor in interface DataSeries
      Parameters:
      color - color
      Returns:
      this CategoryDataSeries
    • lineStyle

      CategoryDataSeries lineStyle​(LineStyle style)
      Sets the LineStyle for this dataset
      Specified by:
      lineStyle in interface DataSeries
      Parameters:
      style - line style
      Returns:
      this dat
    • pointColor

      CategoryDataSeries pointColor​(Paint color)
      Sets the point color. Unspecified points use the default color.
      Specified by:
      pointColor in interface DataSeries
      Parameters:
      color - default point color
      Returns:
      this CategoryDataSeries
    • pointColor

      CategoryDataSeries pointColor​(int color)
      Sets the point color. Unspecified points use the default color.
      Specified by:
      pointColor in interface DataSeries
      Parameters:
      color - index of the color in the series color palette to use as the default color
      Returns:
      this CategoryDataSeries
    • pointColor

      CategoryDataSeries pointColor​(String color)
      Sets the point color. Unspecified points use the default color.
      Specified by:
      pointColor in interface DataSeries
      Parameters:
      color - default point color
      Returns:
      this CategoryDataSeries
    • pointColor

      CategoryDataSeries pointColor​(Comparable category, Paint color)
      Sets the point color. Unspecified points use the default color.
      Parameters:
      category - data point
      color - color
      Returns:
      this CategoryDataSeries
    • pointColor

      CategoryDataSeries pointColor​(Comparable category, int color)
      Sets the point color. Unspecified points use the default color.
      Parameters:
      category - data point
      color - index of the color in the series color palette
      Returns:
      this CategoryDataSeries
    • pointColor

      CategoryDataSeries pointColor​(Comparable category, String color)
      Sets the point color. Unspecified points use the default color.
      Parameters:
      category - data point
      color - color
      Returns:
      this CategoryDataSeries
    • pointColor

      <CATEGORY extends Comparable,​ COLOR extends Paint> CategoryDataSeries pointColor​(Map<CATEGORY,​COLOR> colors)
      Sets the point color. Unspecified points use the default color.
      Type Parameters:
      CATEGORY - type of the categorical data
      COLOR - type of color for the points
      Parameters:
      colors - map from data points to their Paints
      Returns:
      this CategoryDataSeries
    • pointColor

      <COLOR extends Paint> CategoryDataSeries pointColor​(Function<Comparable,​COLOR> colors)
      Sets the point color. Unspecified points use the default color.
      Type Parameters:
      COLOR - type of color for the points
      Parameters:
      colors - function from data points to their Paints
      Returns:
      this CategoryDataSeries
    • pointColor

      default <COLOR extends Paint> CategoryDataSeries pointColor​(groovy.lang.Closure<COLOR> colors)
      Sets the point color. Unspecified points use the default color.
      Type Parameters:
      COLOR - type of input for the closure
      Parameters:
      colors - closure from data points to their Paints
      Returns:
      this CategoryDataSeries
    • pointColorInteger

      <CATEGORY extends Comparable,​ COLOR extends Integer> CategoryDataSeries pointColorInteger​(Map<CATEGORY,​COLOR> colors)
      Sets the point color. Unspecified points use the default color.
      Type Parameters:
      CATEGORY - type of the categorical data
      COLOR - type of color for the points
      Parameters:
      colors - map from data points to the index of the color palette
      Returns:
      this CategoryDataSeries
    • pointColorInteger

      <COLOR extends Integer> CategoryDataSeries pointColorInteger​(Function<Comparable,​COLOR> colors)
      Sets the point color. Unspecified points use the default color.
      Type Parameters:
      COLOR - type of color for the points
      Parameters:
      colors - function from data points to the index of the color palette
      Returns:
      this CategoryDataSeries
    • pointColorInteger

      default <COLOR extends Integer> CategoryDataSeries pointColorInteger​(groovy.lang.Closure<COLOR> colors)
      Sets the point color. Unspecified points use the default color.
      Type Parameters:
      COLOR - type of color palette indices
      Parameters:
      colors - closure from data points to the index of the color palette
      Returns:
      this CategoryDataSeries
    • pointColor

      CategoryDataSeries pointColor​(Table t, String keyColumn, String valueColumn)
      Sets the point color. Unspecified points use the default color.
      Parameters:
      t - table
      keyColumn - column in t, specifying category values
      valueColumn - column in t, specifying Paints or ints/Integers representing color palette values.
      Returns:
      this CategoryDataSeries
    • pointColor

      CategoryDataSeries pointColor​(SelectableDataSet sds, String keyColumn, String valueColumn)
      Sets the point color. Unspecified points use the default color.
      Parameters:
      sds - selectable data set (e.g. OneClick filterable table)
      keyColumn - column in sds, specifying category values
      valueColumn - column in sds, specifying Paints or ints/Integers representing color palette values.
      Returns:
      this CategoryDataSeries
    • pointColorByY

      <T extends Paint> CategoryDataSeries pointColorByY​(Map<Double,​T> colors)
      Sets the point color for a data point based upon the y-value.
      Parameters:
      colors - map from the y-value of data points to Paint
      Returns:
      this CategoryDataSeries
    • pointLabel

      CategoryDataSeries pointLabel​(Comparable category, Object label)
      Sets the point label for data point i from index i of the input labels. Points outside of these indices are unlabeled.
      Parameters:
      category - category value
      label - label
      Returns:
      this CategoryDataSeries
    • pointLabel

      <CATEGORY extends Comparable,​ LABEL> CategoryDataSeries pointLabel​(Map<CATEGORY,​LABEL> labels)
      Sets the point label for data point i from index i of the input labels. Points outside of these indices are unlabeled.
      Type Parameters:
      CATEGORY - type of the categorical data
      LABEL - data type of the point labels
      Parameters:
      labels - map used to determine point labels
      Returns:
      this CategoryDataSeries
    • pointLabel

      <LABEL> CategoryDataSeries pointLabel​(Function<Comparable,​LABEL> labels)
      Sets the point label for data point i from index i of the input labels. Points outside of these indices are unlabeled.
      Type Parameters:
      LABEL - data type of the point labels
      Parameters:
      labels - function used to determine point labels
      Returns:
      this CategoryDataSeries
    • pointLabel

      default <LABEL> CategoryDataSeries pointLabel​(groovy.lang.Closure<LABEL> labels)
      Sets the point label for data point i from index i of the input labels. Points outside of these indices are unlabeled.
      Type Parameters:
      LABEL - data type of the point labels
      Parameters:
      labels - closure used to determine point labels for input categories
      Returns:
      this CategoryDataSeries
    • pointLabel

      CategoryDataSeries pointLabel​(Table t, String keyColumn, String valueColumn)
      Sets the point label for data point i from index i of the input labels. Points outside of these indices are unlabeled.
      Parameters:
      t - table
      keyColumn - column in t, specifying category values
      valueColumn - column in t, specifying labels
      Returns:
      this CategoryDataSeries
    • pointLabel

      CategoryDataSeries pointLabel​(SelectableDataSet sds, String keyColumn, String valueColumn)
      Sets the point label for data point i from index i of the input labels. Points outside of these indices are unlabeled.
      Parameters:
      sds - selectable data set (e.g. OneClick filterable table)
      keyColumn - column in sds, specifying category values
      valueColumn - column in sds, specifying labels
      Returns:
      this CategoryDataSeries
    • piePercentLabelFormat

      CategoryDataSeries piePercentLabelFormat​(String format)
      Sets the format of the percentage point label format in pie plots.
      Parameters:
      format - format
      Returns:
      this data series.
    • pointShape

      CategoryDataSeries pointShape​(Comparable category, String shape)
      Sets the point shapes for data point i from index i of the input labels. Points outside of these indices use default shapes.
      Parameters:
      category - category value
      shape - shape
      Returns:
      this CategoryDataSeries
    • pointShape

      CategoryDataSeries pointShape​(Comparable category, Shape shape)
      Sets the point shapes for data point i from index i of the input labels. Points outside of these indices use default shapes.
      Parameters:
      category - category value
      shape - shape
      Returns:
      this CategoryDataSeries
    • pointShape

      <CATEGORY extends Comparable> CategoryDataSeries pointShape​(Map<CATEGORY,​String> shapes)
      Sets the point shapes for data point i from index i of the input labels. Points outside of these indices use default shapes.
      Type Parameters:
      CATEGORY - type of the categorical data
      Parameters:
      shapes - map used to determine point shapes
      Returns:
      this CategoryDataSeries
    • pointShape

      CategoryDataSeries pointShape​(Function<Comparable,​String> shapes)
      Sets the point shapes for data point i from index i of the input labels. Points outside of these indices use default shapes.
      Parameters:
      shapes - function used to determine point shapes
      Returns:
      this CategoryDataSeries
    • pointShape

      default CategoryDataSeries pointShape​(groovy.lang.Closure<String> shapes)
      Sets the point shapes for data point i from index i of the input labels. Points outside of these indices use default shapes.
      Parameters:
      shapes - closure used to determine point shapes
      Returns:
      this CategoryDataSeries
    • pointShape

      CategoryDataSeries pointShape​(Table t, String keyColumn, String valueColumn)
      Sets the point shapes for data point i from index i of the input labels. Points outside of these indices use default shapes.
      Parameters:
      t - table
      keyColumn - column in t, specifying category values
      valueColumn - column in t, specifying shapes
      Returns:
      this CategoryDataSeries
    • pointShape

      CategoryDataSeries pointShape​(SelectableDataSet sds, String keyColumn, String valueColumn)
      Sets the point shapes for data point i from index i of the input labels. Points outside of these indices use default shapes.
      Parameters:
      sds - selectable data set (e.g. OneClick filterable table)
      keyColumn - column in sds, specifying category values
      valueColumn - column in sds, specifying shapes
      Returns:
      this CategoryDataSeries
    • pointSize

      CategoryDataSeries pointSize​(Comparable category, int factor)
      Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.
      Parameters:
      category - data point
      factor - factor to multiply the default size (1) by
      Returns:
      this CategoryDataSeries
    • pointSize

      CategoryDataSeries pointSize​(Comparable category, long factor)
      Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.
      Parameters:
      category - data point
      factor - factor to multiply the default size (1) by
      Returns:
      this CategoryDataSeries
    • pointSize

      CategoryDataSeries pointSize​(Comparable category, double factor)
      Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.
      Parameters:
      category - data point
      factor - factor to multiply the default size (1) by
      Returns:
      this CategoryDataSeries
    • pointSize

      CategoryDataSeries pointSize​(Comparable category, Number factor)
      Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.
      Parameters:
      category - data point
      factor - factor to multiply the default size (1) by
      Returns:
      this CategoryDataSeries
    • pointSize

      <CATEGORY extends Comparable> CategoryDataSeries pointSize​(CATEGORY[] categories, int[] factors)
      Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.
      Type Parameters:
      CATEGORY - type of the categorical data
      Parameters:
      categories - data points
      factors - factors to multiply the default size (1) by
      Returns:
      this CategoryDataSeries
    • pointSize

      <CATEGORY extends Comparable> CategoryDataSeries pointSize​(CATEGORY[] categories, double[] factors)
      Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.
      Type Parameters:
      CATEGORY - type of the categorical data
      Parameters:
      categories - data points
      factors - factors to multiply the default size (1) by
      Returns:
      this CategoryDataSeries
    • pointSize

      <CATEGORY extends Comparable> CategoryDataSeries pointSize​(CATEGORY[] categories, long[] factors)
      Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.
      Type Parameters:
      CATEGORY - type of the categorical data
      Parameters:
      categories - data points
      factors - factors to multiply the default size (1) by
      Returns:
      this CategoryDataSeries
    • pointSize

      <CATEGORY extends Comparable,​ NUMBER extends Number> CategoryDataSeries pointSize​(CATEGORY[] categories, NUMBER[] factors)
      Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.
      Type Parameters:
      CATEGORY - type of the categorical data
      NUMBER - data type of the point sizes
      Parameters:
      categories - data points
      factors - factors to multiply the default size (1) by
      Returns:
      this CategoryDataSeries
    • pointSize

      <CATEGORY extends Comparable,​ NUMBER extends Number> CategoryDataSeries pointSize​(Map<CATEGORY,​NUMBER> factors)
      Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.
      Type Parameters:
      CATEGORY - type of the categorical data
      NUMBER - data type of the point sizes
      Parameters:
      factors - map used to set sizes of specific data points
      Returns:
      this CategoryDataSeries
    • pointSize

      <NUMBER extends Number> CategoryDataSeries pointSize​(Function<Comparable,​NUMBER> factors)
      Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.
      Type Parameters:
      NUMBER - data type of the point sizes
      Parameters:
      factors - function used to set sizes of data points
      Returns:
      this CategoryDataSeries
    • pointSize

      default <NUMBER extends Number> CategoryDataSeries pointSize​(groovy.lang.Closure<NUMBER> factors)
      Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.
      Type Parameters:
      NUMBER - data type of the point sizes
      Parameters:
      factors - closure used to set sizes of data points
      Returns:
      this CategoryDataSeries
    • pointSize

      CategoryDataSeries pointSize​(Table t, String keyColumn, String valueColumn)
      Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.
      Parameters:
      t - table
      keyColumn - column in t, specifying category values
      valueColumn - column in t, specifying point sizes
      Returns:
      this CategoryDataSeries
    • pointSize

      CategoryDataSeries pointSize​(SelectableDataSet sds, String keyColumn, String valueColumn)
      Sets the point size. A scale factor of 1 is the default size. A scale factor of 2 is 2x the default size. Unspecified points use the default size.
      Parameters:
      sds - selectable data set (e.g. OneClick filterable table)
      keyColumn - column in sds, specifying category values
      valueColumn - column in sds, specifying point sizes
      Returns:
      this CategoryDataSeries