List of usage examples for org.jfree.chart.plot PolarPlot getDataset
public XYDataset getDataset()
From source file:edu.ucla.stat.SOCR.chart.gui.SOCRPolarItemRenderer.java
public LegendItem getLegendItem(int series) { LegendItem result = null;/* ww w.j a v a2 s. c om*/ PolarPlot polarPlot = getPlot(); if (polarPlot != null) { XYDataset dataset; dataset = polarPlot.getDataset(); s = new Summary(dataset); if (dataset != null) { //String label = dataset.getSeriesKey(series).toString(); String label = s.getYSummary(series) + "\n"; String description = label; Shape shape = lookupSeriesShape(series); Paint paint = lookupSeriesPaint(series); Paint outlinePaint = lookupSeriesOutlinePaint(series); Stroke outlineStroke = lookupSeriesOutlineStroke(series); result = new LegendItem(label, description, null, null, shape, paint, outlineStroke, outlinePaint); result.setDataset(dataset); } } return result; }