Example usage for org.jfree.chart LegendItem getDescription

List of usage examples for org.jfree.chart LegendItem getDescription

Introduction

In this page you can find the example usage for org.jfree.chart LegendItem getDescription.

Prototype

public String getDescription() 

Source Link

Document

Returns the description for the legend item.

Usage

From source file:org.geotools.renderer.chart.GeometryRenderer.java

@Override
public LegendItem getLegendItem(int datasetIndex, int series) {
    LegendItem li = super.getLegendItem(datasetIndex, series);

    Stroke outlineStroke = getItemStroke(series, 0);
    Paint fillPaint = li.getFillPaint();
    Paint outlinePaint = fillPaint;

    if (!fillCoordinates) {
        fillPaint = new Color(255, 255, 255, 255);
    }/*w  w w  . j av  a  2  s.com*/
    return new LegendItem(li.getLabel(), li.getDescription(), li.getToolTipText(), li.getURLText(),
            li.getShape(), fillPaint, outlineStroke, outlinePaint);
}