Example usage for org.jfree.chart.plot PolarPlot getDataset

List of usage examples for org.jfree.chart.plot PolarPlot getDataset

Introduction

In this page you can find the example usage for org.jfree.chart.plot PolarPlot getDataset.

Prototype

public XYDataset getDataset() 

Source Link

Document

Returns the primary dataset for the plot.

Usage

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;
}