org.jfree.chart
public class LegendItem extends Object implements Serializable
Constructor Summary | |
---|---|
LegendItem(String label, String description, String toolTipText, String urlText, Shape shape, Paint fillPaint)
Creates a legend item with a filled shape. | |
LegendItem(String label, String description, String toolTipText, String urlText, Shape shape, Paint fillPaint, Stroke outlineStroke, Paint outlinePaint)
Creates a legend item with a filled and outlined shape.
| |
LegendItem(String label, String description, String toolTipText, String urlText, Shape line, Stroke lineStroke, Paint linePaint)
Creates a legend item using a line.
| |
LegendItem(String label, String description, String toolTipText, String urlText, boolean shapeVisible, Shape shape, boolean shapeFilled, Paint fillPaint, boolean shapeOutlineVisible, Paint outlinePaint, Stroke outlineStroke, boolean lineVisible, Shape line, Stroke lineStroke, Paint linePaint)
Creates a new legend item.
| |
LegendItem(AttributedString label, String description, String toolTipText, String urlText, Shape shape, Paint fillPaint)
Creates a legend item with a filled shape. | |
LegendItem(AttributedString label, String description, String toolTipText, String urlText, Shape shape, Paint fillPaint, Stroke outlineStroke, Paint outlinePaint)
Creates a legend item with a filled and outlined shape.
| |
LegendItem(AttributedString label, String description, String toolTipText, String urlText, Shape line, Stroke lineStroke, Paint linePaint)
Creates a legend item using a line.
| |
LegendItem(AttributedString label, String description, String toolTipText, String urlText, boolean shapeVisible, Shape shape, boolean shapeFilled, Paint fillPaint, boolean shapeOutlineVisible, Paint outlinePaint, Stroke outlineStroke, boolean lineVisible, Shape line, Stroke lineStroke, Paint linePaint)
Creates a new legend item.
|
Method Summary | |
---|---|
boolean | equals(Object obj)
Tests this item for equality with an arbitrary object.
|
AttributedString | getAttributedLabel()
Returns the attributed label.
|
int | getDatasetIndex()
Returns the dataset index for this legend item.
|
String | getDescription()
Returns the description for the legend item.
|
Paint | getFillPaint()
Returns the fill paint.
|
GradientPaintTransformer | getFillPaintTransformer()
Returns the transformer used when the fill paint is an instance of
GradientPaint .
|
String | getLabel()
Returns the label.
|
Shape | getLine()
Returns the line.
|
Paint | getLinePaint()
Returns the paint used for lines.
|
Stroke | getLineStroke()
Returns the line stroke for the series.
|
Paint | getOutlinePaint()
Returns the outline paint.
|
Stroke | getOutlineStroke()
Returns the outline stroke.
|
int | getSeriesIndex()
Returns the series index for this legend item.
|
Shape | getShape()
Returns the shape used to label the series represented by this legend
item.
|
String | getToolTipText()
Returns the tool tip text.
|
String | getURLText()
Returns the URL text.
|
boolean | isLineVisible()
Returns a flag that indicates whether or not the line is visible.
|
boolean | isShapeFilled()
Returns a flag that controls whether or not the shape is filled.
|
boolean | isShapeOutlineVisible()
Returns the flag that controls whether or not the shape outline
is visible.
|
boolean | isShapeVisible()
Returns a flag that indicates whether or not the shape is visible.
|
void | setDatasetIndex(int index)
Sets the dataset index for this legend item.
|
void | setFillPaintTransformer(GradientPaintTransformer transformer)
Sets the transformer used when the fill paint is an instance of
GradientPaint .
|
void | setSeriesIndex(int index)
Sets the series index for this legend item.
|
Parameters: label the label (null
not permitted). description the description (null
permitted). toolTipText the tool tip text (null
permitted). urlText the URL text (null
permitted). shape the shape (null
not permitted). fillPaint the paint used to fill the shape (null
not permitted).
Parameters: label the label (null
not permitted). description the description (null
permitted). toolTipText the tool tip text (null
permitted). urlText the URL text (null
permitted). shape the shape (null
not permitted). fillPaint the paint used to fill the shape (null
not permitted). outlineStroke the outline stroke (null
not
permitted). outlinePaint the outline paint (null
not
permitted).
Parameters: label the label (null
not permitted). description the description (null
permitted). toolTipText the tool tip text (null
permitted). urlText the URL text (null
permitted). line the line (null
not permitted). lineStroke the line stroke (null
not permitted). linePaint the line paint (null
not permitted).
Parameters: label the label (null
not permitted). description the description (not currently used,
null
permitted). toolTipText the tool tip text (null
permitted). urlText the URL text (null
permitted). shapeVisible a flag that controls whether or not the shape is
displayed. shape the shape (null
permitted). shapeFilled a flag that controls whether or not the shape is
filled. fillPaint the fill paint (null
not permitted). shapeOutlineVisible a flag that controls whether or not the
shape is outlined. outlinePaint the outline paint (null
not permitted). outlineStroke the outline stroke (null
not
permitted). lineVisible a flag that controls whether or not the line is
visible. line the line. lineStroke the stroke (null
not permitted). linePaint the line paint (null
not permitted).
Parameters: label the label (null
not permitted). description the description (null
permitted). toolTipText the tool tip text (null
permitted). urlText the URL text (null
permitted). shape the shape (null
not permitted). fillPaint the paint used to fill the shape (null
not permitted).
Parameters: label the label (null
not permitted). description the description (null
permitted). toolTipText the tool tip text (null
permitted). urlText the URL text (null
permitted). shape the shape (null
not permitted). fillPaint the paint used to fill the shape (null
not permitted). outlineStroke the outline stroke (null
not
permitted). outlinePaint the outline paint (null
not
permitted).
Parameters: label the label (null
not permitted). description the description (null
permitted). toolTipText the tool tip text (null
permitted). urlText the URL text (null
permitted). line the line (null
not permitted). lineStroke the line stroke (null
not permitted). linePaint the line paint (null
not permitted).
Parameters: label the label (null
not permitted). description the description (not currently used,
null
permitted). toolTipText the tool tip text (null
permitted). urlText the URL text (null
permitted). shapeVisible a flag that controls whether or not the shape is
displayed. shape the shape (null
permitted). shapeFilled a flag that controls whether or not the shape is
filled. fillPaint the fill paint (null
not permitted). shapeOutlineVisible a flag that controls whether or not the
shape is outlined. outlinePaint the outline paint (null
not permitted). outlineStroke the outline stroke (null
not
permitted). lineVisible a flag that controls whether or not the line is
visible. line the line. lineStroke the stroke (null
not permitted). linePaint the line paint (null
not permitted).
Parameters: obj the object (null
permitted).
Returns: A boolean.
Returns: The attributed label (possibly null
).
Returns: The dataset index.
Since: 1.0.2
Returns: The description.
Returns: The fill paint (never null
).
GradientPaint
.
Returns: The transformer (never null
).
Since: 1.0.4
See Also: setFillPaintTransformer
Returns: The label (never null
).
Returns: The line.
Returns: The paint.
Returns: The stroke (never null
).
Returns: The outline paint (never null
).
Returns: The outline stroke (never null
).
Returns: The series index.
Since: 1.0.2
Returns: The shape (never null
).
Returns: The tool tip text (possibly null
).
Returns: The URL text (possibly null
).
Returns: A boolean.
Returns: A boolean.
Returns: A boolean.
Returns: A boolean.
Parameters: index the index.
Since: 1.0.2
GradientPaint
.
Parameters: transformer the transformer (null
not permitted).
Since: 1.0.4
See Also: getFillPaintTransformer
Parameters: index the index.
Since: 1.0.2