|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.chart.LegendItem
public class LegendItem
A storage object for recording the properties of a legend item, without any consideration for layout issues. Instances of this class are immutable.
Constructor Summary | |
---|---|
LegendItem(java.text.AttributedString label,
java.lang.String description,
java.lang.String toolTipText,
java.lang.String urlText,
boolean shapeVisible,
java.awt.Shape shape,
boolean shapeFilled,
java.awt.Paint fillPaint,
boolean shapeOutlineVisible,
java.awt.Paint outlinePaint,
java.awt.Stroke outlineStroke,
boolean lineVisible,
java.awt.Shape line,
java.awt.Stroke lineStroke,
java.awt.Paint linePaint)
Creates a new legend item. |
|
LegendItem(java.text.AttributedString label,
java.lang.String description,
java.lang.String toolTipText,
java.lang.String urlText,
java.awt.Shape shape,
java.awt.Paint fillPaint)
Creates a legend item with a filled shape. |
|
LegendItem(java.text.AttributedString label,
java.lang.String description,
java.lang.String toolTipText,
java.lang.String urlText,
java.awt.Shape shape,
java.awt.Paint fillPaint,
java.awt.Stroke outlineStroke,
java.awt.Paint outlinePaint)
Creates a legend item with a filled and outlined shape. |
|
LegendItem(java.text.AttributedString label,
java.lang.String description,
java.lang.String toolTipText,
java.lang.String urlText,
java.awt.Shape line,
java.awt.Stroke lineStroke,
java.awt.Paint linePaint)
Creates a legend item using a line. |
|
LegendItem(java.lang.String label,
java.lang.String description,
java.lang.String toolTipText,
java.lang.String urlText,
boolean shapeVisible,
java.awt.Shape shape,
boolean shapeFilled,
java.awt.Paint fillPaint,
boolean shapeOutlineVisible,
java.awt.Paint outlinePaint,
java.awt.Stroke outlineStroke,
boolean lineVisible,
java.awt.Shape line,
java.awt.Stroke lineStroke,
java.awt.Paint linePaint)
Creates a new legend item. |
|
LegendItem(java.lang.String label,
java.lang.String description,
java.lang.String toolTipText,
java.lang.String urlText,
java.awt.Shape shape,
java.awt.Paint fillPaint)
Creates a legend item with a filled shape. |
|
LegendItem(java.lang.String label,
java.lang.String description,
java.lang.String toolTipText,
java.lang.String urlText,
java.awt.Shape shape,
java.awt.Paint fillPaint,
java.awt.Stroke outlineStroke,
java.awt.Paint outlinePaint)
Creates a legend item with a filled and outlined shape. |
|
LegendItem(java.lang.String label,
java.lang.String description,
java.lang.String toolTipText,
java.lang.String urlText,
java.awt.Shape line,
java.awt.Stroke lineStroke,
java.awt.Paint linePaint)
Creates a legend item using a line. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Tests this item for equality with an arbitrary object. |
java.text.AttributedString |
getAttributedLabel()
Returns the attributed label. |
java.lang.String |
getDescription()
Returns the description for the legend item. |
java.awt.Paint |
getFillPaint()
Returns the fill paint. |
java.lang.String |
getLabel()
Returns the label. |
java.awt.Shape |
getLine()
Returns the line. |
java.awt.Paint |
getLinePaint()
Returns the paint used for lines. |
java.awt.Stroke |
getLineStroke()
Returns the line stroke for the series. |
java.awt.Paint |
getOutlinePaint()
Returns the outline paint. |
java.awt.Stroke |
getOutlineStroke()
Returns the outline stroke. |
java.awt.Shape |
getShape()
Returns the shape used to label the series represented by this legend item. |
java.lang.String |
getToolTipText()
Returns the tool tip text. |
java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LegendItem(java.lang.String label, java.lang.String description, java.lang.String toolTipText, java.lang.String urlText, java.awt.Shape shape, java.awt.Paint fillPaint)
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).public LegendItem(java.lang.String label, java.lang.String description, java.lang.String toolTipText, java.lang.String urlText, java.awt.Shape shape, java.awt.Paint fillPaint, java.awt.Stroke outlineStroke, java.awt.Paint outlinePaint)
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).public LegendItem(java.lang.String label, java.lang.String description, java.lang.String toolTipText, java.lang.String urlText, java.awt.Shape line, java.awt.Stroke lineStroke, java.awt.Paint linePaint)
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).public LegendItem(java.lang.String label, java.lang.String description, java.lang.String toolTipText, java.lang.String urlText, boolean shapeVisible, java.awt.Shape shape, boolean shapeFilled, java.awt.Paint fillPaint, boolean shapeOutlineVisible, java.awt.Paint outlinePaint, java.awt.Stroke outlineStroke, boolean lineVisible, java.awt.Shape line, java.awt.Stroke lineStroke, java.awt.Paint linePaint)
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).public LegendItem(java.text.AttributedString label, java.lang.String description, java.lang.String toolTipText, java.lang.String urlText, java.awt.Shape shape, java.awt.Paint fillPaint)
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).public LegendItem(java.text.AttributedString label, java.lang.String description, java.lang.String toolTipText, java.lang.String urlText, java.awt.Shape shape, java.awt.Paint fillPaint, java.awt.Stroke outlineStroke, java.awt.Paint outlinePaint)
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).public LegendItem(java.text.AttributedString label, java.lang.String description, java.lang.String toolTipText, java.lang.String urlText, java.awt.Shape line, java.awt.Stroke lineStroke, java.awt.Paint linePaint)
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).public LegendItem(java.text.AttributedString label, java.lang.String description, java.lang.String toolTipText, java.lang.String urlText, boolean shapeVisible, java.awt.Shape shape, boolean shapeFilled, java.awt.Paint fillPaint, boolean shapeOutlineVisible, java.awt.Paint outlinePaint, java.awt.Stroke outlineStroke, boolean lineVisible, java.awt.Shape line, java.awt.Stroke lineStroke, java.awt.Paint linePaint)
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).Method Detail |
---|
public java.lang.String getLabel()
null
).public java.text.AttributedString getAttributedLabel()
null
).public java.lang.String getDescription()
public java.lang.String getToolTipText()
null
).public java.lang.String getURLText()
null
).public boolean isShapeVisible()
public java.awt.Shape getShape()
null
).public boolean isShapeFilled()
public java.awt.Paint getFillPaint()
null
).public boolean isShapeOutlineVisible()
public java.awt.Stroke getLineStroke()
null
).public java.awt.Paint getLinePaint()
public java.awt.Paint getOutlinePaint()
null
).public java.awt.Stroke getOutlineStroke()
null
).public boolean isLineVisible()
public java.awt.Shape getLine()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object (null
permitted).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |