java.lang.Object | |
↳ | org.jfree.chart.LegendItem |
A temporary storage object for recording the properties of a legend item, without any consideration for layout issues.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a legend item with the specified label.
| |||||||||||
Creates a legend item with the specified label and fill paint.
| |||||||||||
Creates a legend item with a filled shape.
| |||||||||||
Creates a legend item with a filled and outlined shape.
| |||||||||||
Creates a legend item using a line.
| |||||||||||
Creates a new legend item.
| |||||||||||
Creates a legend item with a filled shape.
| |||||||||||
Creates a legend item with a filled and outlined shape.
| |||||||||||
Creates a legend item using a line.
| |||||||||||
Creates a new legend item.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns an independent copy of this object (except that the clone will
still reference the same dataset as the original
LegendItem ). | |||||||||||
Tests this item for equality with an arbitrary object.
| |||||||||||
Returns the attributed label.
| |||||||||||
Returns the dataset.
| |||||||||||
Returns the dataset index for this legend item.
| |||||||||||
Returns the description for the legend item.
| |||||||||||
Returns the fill paint.
| |||||||||||
Returns the transformer used when the fill paint is an instance of
GradientPaint . | |||||||||||
Returns the label.
| |||||||||||
Returns the label font.
| |||||||||||
Returns the paint used to draw the label.
| |||||||||||
Returns the line.
| |||||||||||
Returns the paint used for lines.
| |||||||||||
Returns the line stroke for the series.
| |||||||||||
Returns the outline paint.
| |||||||||||
Returns the outline stroke.
| |||||||||||
Returns the series index for this legend item.
| |||||||||||
Returns the series key.
| |||||||||||
Returns the shape used to label the series represented by this legend
item.
| |||||||||||
Returns the tool tip text.
| |||||||||||
Returns the URL text.
| |||||||||||
Returns a flag that indicates whether or not the line is visible.
| |||||||||||
Returns a flag that controls whether or not the shape is filled.
| |||||||||||
Returns the flag that controls whether or not the shape outline
is visible.
| |||||||||||
Returns a flag that indicates whether or not the shape is visible.
| |||||||||||
Sets the dataset.
| |||||||||||
Sets the dataset index for this legend item.
| |||||||||||
Sets the fill paint.
| |||||||||||
Sets the transformer used when the fill paint is an instance of
GradientPaint . | |||||||||||
Sets the label font.
| |||||||||||
Sets the paint used to draw the label.
| |||||||||||
Sets the line paint.
| |||||||||||
Sets the outline paint.
| |||||||||||
Sets the series index for this legend item.
| |||||||||||
Sets the series key.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a legend item with the specified label. The remaining attributes take default values.
label | the label (null not permitted). |
---|
Creates a legend item with the specified label and fill paint. The remaining attributes take default values.
label | the label (null not permitted). |
---|---|
paint | the paint (null not permitted). |
Creates a legend item with a filled shape. The shape is not outlined, and no line is visible.
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).
|
Creates a legend item with a filled and outlined shape.
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).
|
Creates a legend item using a line.
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).
|
Creates a new legend item.
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).
|
Creates a legend item with a filled shape. The shape is not outlined, and no line is visible.
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).
|
Creates a legend item with a filled and outlined shape.
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).
|
Creates a legend item using a line.
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).
|
Creates a new legend item.
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 (null not permitted). |
lineStroke | the stroke (null not permitted). |
linePaint | the line paint (null not permitted).
|
Returns an independent copy of this object (except that the clone will
still reference the same dataset as the original
LegendItem
).
CloneNotSupportedException | if the legend item cannot be cloned. |
---|
Tests this item for equality with an arbitrary object.
obj | the object (null permitted). |
---|
Returns the attributed label.
null
).
Returns the dataset index for this legend item.
Returns the description for the legend item.
Returns the transformer used when the fill paint is an instance of
GradientPaint
.
null
).Returns the paint used to draw the label.
null
).Returns the line stroke for the series.
null
).
Returns the outline stroke.
null
).
Returns the series index for this legend item.
Returns the shape used to label the series represented by this legend item.
null
).
Returns the tool tip text.
null
).
Returns a flag that indicates whether or not the line is visible.
Returns a flag that controls whether or not the shape is filled.
Returns the flag that controls whether or not the shape outline is visible.
Returns a flag that indicates whether or not the shape is visible.
Sets the fill paint.
paint | the paint (null not permitted). |
---|
Sets the transformer used when the fill paint is an instance of
GradientPaint
.
transformer | the transformer (null not permitted). |
---|
Sets the label font.
font | the font (null permitted). |
---|
Sets the paint used to draw the label.
paint | the paint (null permitted). |
---|
Sets the line paint.
paint | the paint (null not permitted). |
---|
Sets the outline paint.
paint | the paint (null not permitted). |
---|
Sets the series index for this legend item.
index | the index. |
---|