EchoPoint
1.0

echopoint.event
Class DefaultChartEventGenerator

java.lang.Object
  extended byechopoint.event.DefaultChartEventGenerator
All Implemented Interfaces:
ChartEventGenerator, java.io.Serializable

public class DefaultChartEventGenerator
extends java.lang.Object
implements ChartEventGenerator, java.io.Serializable

DefaultChartEventGenerator generates default action commands and tooltips for ChartEntity by calling the ChartEntity.getURLText() and ChartEntity.getToolTipText() respectively.

You can therefore use the JFreeChart URLGenerator derived classes to generate unique "action" commands for you chart data.

Remember you are not returning an URL in the traditional sense but rather a String that uniquely defines each peice of the chart. This string will be used as the action command of an ActionEvent

See Also:
Serialized Form

Constructor Summary
DefaultChartEventGenerator()
           
 
Method Summary
 java.lang.String generateActionCommand(ChartPanel chartPanel, org.jfree.chart.entity.ChartEntity chartEntity)
          Called the generate an action command string for the given ChartEntity.
 java.lang.String generateToolTip(ChartPanel chartPanel, org.jfree.chart.entity.ChartEntity chartEntity)
          Called the generate a tool tip the given ChartEntity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultChartEventGenerator

public DefaultChartEventGenerator()
Method Detail

generateActionCommand

public java.lang.String generateActionCommand(ChartPanel chartPanel,
                                              org.jfree.chart.entity.ChartEntity chartEntity)
Description copied from interface: ChartEventGenerator
Called the generate an action command string for the given ChartEntity.

Specified by:
generateActionCommand in interface ChartEventGenerator
Parameters:
chartPanel - - the ChartPanel containing the JFreeChart
chartEntity - - the specific ChartEntity.
Returns:
- an action command string
See Also:
ChartEventGenerator.generateActionCommand(echopoint.ChartPanel, org.jfree.chart.entity.ChartEntity)

generateToolTip

public java.lang.String generateToolTip(ChartPanel chartPanel,
                                        org.jfree.chart.entity.ChartEntity chartEntity)
Description copied from interface: ChartEventGenerator
Called the generate a tool tip the given ChartEntity.

Specified by:
generateToolTip in interface ChartEventGenerator
Parameters:
chartPanel - - the ChartPanel containing the JFreeChart
chartEntity - - the specific ChartEntity.
Returns:
- an action command string
See Also:
ChartEventGenerator.generateToolTip(echopoint.ChartPanel, org.jfree.chart.entity.ChartEntity)

EchoPoint
1.0