org.jfree.chart
Class LegendItem

java.lang.Object
  |
  +--org.jfree.chart.LegendItem

public class LegendItem
extends java.lang.Object

A legend item.

Records all the properties of a legend item, but is not concerned about the display location.

Author:
David Gilbert

Constructor Summary
LegendItem(java.lang.String label, java.lang.String description, java.awt.Shape shape, java.awt.Paint paint, java.awt.Paint outlinePaint, java.awt.Stroke stroke)
          Creates a new legend item.
 
Method Summary
 java.lang.String getLabel()
          Returns the label.
 java.awt.Paint getPaint()
          Returns the paint.
 java.awt.Shape getShape()
          Returns the shape used to label the series represented by this legend item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegendItem

public LegendItem(java.lang.String label,
                  java.lang.String description,
                  java.awt.Shape shape,
                  java.awt.Paint paint,
                  java.awt.Paint outlinePaint,
                  java.awt.Stroke stroke)
Creates a new legend item.

Parameters:
label - the label.
description - the description.
shape - the shape.
paint - the paint.
outlinePaint - the outline paint.
stroke - the stroke.
Method Detail

getLabel

public java.lang.String getLabel()
Returns the label.

Returns:
the label.

getPaint

public java.awt.Paint getPaint()
Returns the paint.

Returns:
the paint.

getShape

public java.awt.Shape getShape()
Returns the shape used to label the series represented by this legend item.

Returns:
The shape.