Package com.jbstrap.ui.components.charts
Interface DualSeriesChart<T extends SeriesBasedChart<?>,D extends Series>
- Type Parameters:
T
- Chart typeD
- 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
-
Method Details
-
addSeries
Adds a series to the chart.- Parameters:
series
- Series instance to be added- Returns:
- Chart
-
getSeries
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
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.
-