Class FormulaCategoryTooltipGenerator
java.lang.Object
org.pentaho.plugin.jfreereport.reportcharts.FormulaCategoryTooltipGenerator
- All Implemented Interfaces:
org.jfree.chart.labels.CategoryToolTipGenerator
public class FormulaCategoryTooltipGenerator
extends Object
implements org.jfree.chart.labels.CategoryToolTipGenerator
-
Constructor Summary
ConstructorsConstructorDescriptionFormulaCategoryTooltipGenerator(org.pentaho.reporting.engine.classic.core.function.ExpressionRuntime runtime, String formula) -
Method Summary
Modifier and TypeMethodDescriptiongenerateToolTip(org.jfree.data.category.CategoryDataset dataset, int series, int category) Generates the tool tip text for an item in a dataset.
-
Constructor Details
-
FormulaCategoryTooltipGenerator
public FormulaCategoryTooltipGenerator(org.pentaho.reporting.engine.classic.core.function.ExpressionRuntime runtime, String formula)
-
-
Method Details
-
generateToolTip
public String generateToolTip(org.jfree.data.category.CategoryDataset dataset, int series, int category) Generates the tool tip text for an item in a dataset. Note: in the current dataset implementation, each row is a series, and each column contains values for a particular category.- Specified by:
generateToolTipin interfaceorg.jfree.chart.labels.CategoryToolTipGenerator- Parameters:
dataset- the dataset (nullnot permitted).series- the series (zero-based index).category- the category.- Returns:
- The tooltip text (possibly
null).
-