org.progeeks.jfreechart
Interface ChartFocusHandler

All Known Implementing Classes:
DefaultFocusHandler, ItemFocusHandler, SeriesFocusHandler, TimeSeriesCrosshairsFocusHandler, XYCrosshairsFocusHandler

public interface ChartFocusHandler

Interface for objects that perform various drawing operations to indicate where the focus of a chart is. ChartFocusHandler objects are invoked when the focus of the ChartContext is changed by both an outside actor (say the parent context passing a setFocus call to us) and by direct user action (a mount click in the chart itself). The most common drawing operation is to set the crosshairs for an XY plot on data for the focus object. It may be that there is not a 1:1 correspondence between the original data items and data points in the chart, so individual focus handlers will attempt to present the best visual clues possible.

Version:
$Revision: 1.1 $
Author:
esword

Method Summary
 org.jfree.chart.JFreeChart getChart()
           
 MetaDatasetProducer getProducer()
           
 boolean handleFocus(java.lang.Object newFocus)
           
 void setChart(org.jfree.chart.JFreeChart chart)
           
 void setProducer(MetaDatasetProducer producer)
           
 

Method Detail

getChart

org.jfree.chart.JFreeChart getChart()

setChart

void setChart(org.jfree.chart.JFreeChart chart)

getProducer

MetaDatasetProducer getProducer()

setProducer

void setProducer(MetaDatasetProducer producer)

handleFocus

boolean handleFocus(java.lang.Object newFocus)


Copyright © 2002-2003 Paul Speed. All Rights Reserved.