com.jrefinery.chart
Class LegendItem
java.lang.Object
|
+--com.jrefinery.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:
- DG
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,
java.awt.Stroke outlineStroke)
Creates a new legend item. |
Method Summary |
java.lang.String |
getLabel()
Returns the label. |
java.awt.Paint |
getPaint()
Returns the paint. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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,
java.awt.Stroke outlineStroke)
- 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.outlineStroke
- the outline stroke.
getLabel
public java.lang.String getLabel()
- Returns the label.
- Returns:
- the label.
getPaint
public java.awt.Paint getPaint()
- Returns the paint.
- Returns:
- the paint.