Interface SimpleSeriesChart<T extends SeriesBasedChart<?>,D extends Series>

Type Parameters:
T - Chart type
D - Chart series type
All Known Implementing Classes:
DonutChart, FunnelChart, PieChart

public interface SimpleSeriesChart<T extends SeriesBasedChart<?>,D extends Series>
Charts that implement this interface can only display one series.
Since:
4.0
Author:
JBStrap
  • Method Summary

    Modifier and Type
    Method
    Description
    default D
    Gets the series on the chart.
    default String
    Gets the name of the series displayed on the chart.
    setSeries(Series series)
    Sets the series displayed on the chart.
  • Method Details

    • setSeries

      T setSeries(Series series)
      Sets the series displayed on the chart.
      Parameters:
      series - Series instance displayed on the chart
      Returns:
      Chart
    • getSeries

      default D getSeries()
      Gets the series on the chart.
      Returns:
      Series instance displayed on the chart or null if there are no series displayed
    • getSeriesName

      default String getSeriesName()
      Gets the name of the series displayed on the chart.
      Returns:
      Series instance displayed on the chart or null if there are no series displayed