org.jfree.chart.labels
Class BoxAndWhiskerToolTipGenerator

java.lang.Object
  extended byorg.jfree.chart.labels.BoxAndWhiskerToolTipGenerator
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable, XYToolTipGenerator

public class BoxAndWhiskerToolTipGenerator
extends java.lang.Object
implements XYToolTipGenerator, java.lang.Cloneable, java.io.Serializable

A standard tooltip generator for plots that use data from a BoxAndWhiskerXYDataset.

Author:
David Browning
See Also:
Serialized Form

Constructor Summary
BoxAndWhiskerToolTipGenerator()
          Creates a tool tip generator using the default date format.
BoxAndWhiskerToolTipGenerator(java.text.DateFormat formatter)
          Creates a tool tip generator using the supplied date formatter.
 
Method Summary
 java.lang.Object clone()
          Returns an independent copy of the generator.
 boolean equals(java.lang.Object o)
          Tests if this object is equal to another.
 java.lang.String generateToolTip(XYDataset data, int series, int item)
          Generates a tooltip text item for a particular item within a series.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoxAndWhiskerToolTipGenerator

public BoxAndWhiskerToolTipGenerator()
Creates a tool tip generator using the default date format.


BoxAndWhiskerToolTipGenerator

public BoxAndWhiskerToolTipGenerator(java.text.DateFormat formatter)
Creates a tool tip generator using the supplied date formatter.

Parameters:
formatter - the date formatter.
Method Detail

generateToolTip

public java.lang.String generateToolTip(XYDataset data,
                                        int series,
                                        int item)
Generates a tooltip text item for a particular item within a series.

Specified by:
generateToolTip in interface XYToolTipGenerator
Parameters:
data - the dataset.
series - the series (zero-based index).
item - the item (zero-based index).
Returns:
the tooltip text.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Returns an independent copy of the generator.

Returns:
A clone.
Throws:
java.lang.CloneNotSupportedException - if cloning is not supported.

equals

public boolean equals(java.lang.Object o)
Tests if this object is equal to another.

Parameters:
o - the other object.
Returns:
A boolean.