schmitzm.jfree.chart
Class ChangableLegendItem

java.lang.Object
  extended by LegendItem
      extended by schmitzm.jfree.chart.ChangableLegendItem

public class ChangableLegendItem
extends LegendItem

This class extents the LegendItem with functionalities to change the following legend item properties.

Author:
Martin Schmitz

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

label

protected String label
Holds the label shown in the legend. Unfortunately the super class variable is private.


description

protected String description
Holds the description of the legend item. Unfortunately the super class variable is private.


toolTipText

protected String toolTipText
Holds the tooltip of the legend item. Unfortunately the super class variable is private.

Constructor Detail

ChangableLegendItem

public ChangableLegendItem(String label)
Creates a new legend item

Parameters:
item - sample legend item

ChangableLegendItem

public ChangableLegendItem(LegendItem item)
Creates a new legend item

Parameters:
item - sample legend item
Method Detail

getLabel

public String getLabel()
Returns the label shown in the legend.


setLabel

public void setLabel(String label)
Sets the label shown in the legend.

Parameters:
label - the new label.

getDescription

public String getDescription()
Returns the description of the legend item.


setDescription

public void setDescription(String desc)
Sets the description of the legend item.

Parameters:
desc - the new description.

getToolTipText

public String getToolTipText()
Returns the tooltip of the legend item.


setToolTipText

public void setToolTipText(String tooltip)
Sets the tooltip of the legend item.

Parameters:
desc - the new tooltip.