|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectLegendItem
schmitzm.jfree.chart.ChangableLegendItem
public class ChangableLegendItem
This class extents the LegendItem
with functionalities to
change the following legend item properties.
Field Summary | |
---|---|
protected String |
description
Holds the description of the legend item. |
protected String |
label
Holds the label shown in the legend. |
protected String |
toolTipText
Holds the tooltip of the legend item. |
Constructor Summary | |
---|---|
ChangableLegendItem(LegendItem item)
Creates a new legend item |
|
ChangableLegendItem(String label)
Creates a new legend item |
Method Summary | |
---|---|
String |
getDescription()
Returns the description of the legend item. |
String |
getLabel()
Returns the label shown in the legend. |
String |
getToolTipText()
Returns the tooltip of the legend item. |
void |
setDescription(String desc)
Sets the description of the legend item. |
void |
setLabel(String label)
Sets the label shown in the legend. |
void |
setToolTipText(String tooltip)
Sets the tooltip of the legend item. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String label
protected String description
protected String toolTipText
Constructor Detail |
---|
public ChangableLegendItem(String label)
item
- sample legend itempublic ChangableLegendItem(LegendItem item)
item
- sample legend itemMethod Detail |
---|
public String getLabel()
public void setLabel(String label)
label
- the new label.public String getDescription()
public void setDescription(String desc)
desc
- the new description.public String getToolTipText()
public void setToolTipText(String tooltip)
desc
- the new tooltip.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |