com.ge.research.charts.jfree.chart.tooltips
Class PieTooltipGenerator

java.lang.Object
  extended bycom.ge.research.charts.tooltips.AbstractTooltipGenerator
      extended bycom.ge.research.charts.jfree.chart.tooltips.PieTooltipGenerator
All Implemented Interfaces:
org.jfree.chart.tooltips.PieToolTipGenerator, org.jfree.chart.tooltips.ToolTipGenerator

public class PieTooltipGenerator
extends AbstractTooltipGenerator
implements org.jfree.chart.tooltips.PieToolTipGenerator

A generic tooltip generator for plots that use data from a PieDataset.

Version:
$Revision: 1.1 $ $Date: 2006/08/11 00:17:43 $
Author:
garbiras

Field Summary
static java.lang.String DEFAULT_PIE_TOOLTIP
          The default tooltip string to use for Pie charts
 
Fields inherited from class com.ge.research.charts.tooltips.AbstractTooltipGenerator
CURRENCYSTYLE, DEFAULT_DATE_FORMAT, DEFAULT_ITEM_LABEL_NUMBER_FORMAT, DEFAULT_ITEM_VALUE_NUMBER_FORMAT, DEFAULT_TOOLTIP, INTEGERSTYLE, ITEM_LABEL_PLACEHOLDER, ITEM_VALUE_PLACEHOLDER, NUMBERSTYLE, PERCENTSTYLE, SERIES_NAME_PLACEHOLDER
 
Constructor Summary
PieTooltipGenerator()
          Default constructor.
 
Method Summary
 java.lang.String generateToolTip(org.jfree.data.PieDataset arg0, java.lang.Comparable arg1, int arg2)
           
 void setTooltipStr(java.lang.String string)
          Sets the tooltip string to use for displaying information about the datapoints of a chart.
 
Methods inherited from class com.ge.research.charts.tooltips.AbstractTooltipGenerator
generateToolTip, getDateFormat, getDateFormatString, getItemLabelNumberFormat, getItemLabelNumberFormatString, getItemValueNumberFormat, getItemValueNumberFormatString, getStringValue, getTooltipStr, setDateFormat, setItemLabelNumberFormat, setItemLabelNumberFormat, setItemValueNumberFormat, setItemValueNumberFormat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PIE_TOOLTIP

public static final java.lang.String DEFAULT_PIE_TOOLTIP
The default tooltip string to use for Pie charts

See Also:
Constant Field Values
Constructor Detail

PieTooltipGenerator

public PieTooltipGenerator()
Default constructor. Sets the default pie tooltip string.

See Also:
setTooltipStr(java.lang.String), DEFAULT_PIE_TOOLTIP
Method Detail

generateToolTip

public java.lang.String generateToolTip(org.jfree.data.PieDataset arg0,
                                        java.lang.Comparable arg1,
                                        int arg2)
Specified by:
generateToolTip in interface org.jfree.chart.tooltips.PieToolTipGenerator

setTooltipStr

public void setTooltipStr(java.lang.String string)
Description copied from class: AbstractTooltipGenerator
Sets the tooltip string to use for displaying information about the datapoints of a chart. If the argument string is null or StringUtils.EMPTY_STRING, then the tooltip string is set to the AbstractTooltipGenerator.DEFAULT_TOOLTIP.

Overrides:
setTooltipStr in class AbstractTooltipGenerator
Parameters:
string - the tooltip string to use for displaying information about the datapoints of a chart
See Also:
DEFAULT_PIE_TOOLTIP