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

Type Parameters:
T - Chart type
D - Series type
All Known Implementing Classes:
PopulationPyramidChart

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

    Modifier and Type
    Method
    Description
    addSeries(Series series)
    Adds a series to the chart.
    default D
    Gets a series by its title.
    default List<String>
    Gets the name of all series on the chart.
  • Method Details

    • addSeries

      T addSeries(Series series)
      Adds a series to the chart.
      Parameters:
      series - Series instance to be added
      Returns:
      Chart
    • getSeries

      default D getSeries(String title)
      Gets a series by its title.
      Parameters:
      title - Series title
      Returns:
      Series with the specified title or null, if there are no series with the specified title
    • getSeriesNames

      default List<String> getSeriesNames()
      Gets the name of all series on the chart.
      Returns:
      List containing the names of previously added series If there are no series added to the chart, the return value is an empty list.