org.progeeks.jfreechart
Class DefaultFocusHandler

java.lang.Object
  extended by org.progeeks.jfreechart.DefaultFocusHandler
All Implemented Interfaces:
ChartFocusHandler
Direct Known Subclasses:
ItemFocusHandler, SeriesFocusHandler, XYCrosshairsFocusHandler

public class DefaultFocusHandler
extends java.lang.Object
implements ChartFocusHandler

Base class that contains common handling routines for focusing but does not actually do any drawing.

Version:
$Revision: 1.4 $
Author:
esword

Field Summary
protected static Log log
           
 
Constructor Summary
DefaultFocusHandler()
           
 
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)
           
protected  org.jfree.data.general.Dataset transformFocusData(java.lang.Object newFocus, MetaDatasetProducer producer)
          Creates a dataset containing 1 item - the focus.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final Log log
Constructor Detail

DefaultFocusHandler

public DefaultFocusHandler()
Method Detail

handleFocus

public boolean handleFocus(java.lang.Object newFocus)
Specified by:
handleFocus in interface ChartFocusHandler

transformFocusData

protected org.jfree.data.general.Dataset transformFocusData(java.lang.Object newFocus,
                                                            MetaDatasetProducer producer)
Creates a dataset containing 1 item - the focus. Subclasses can then extract the information from the item to determine how to show the focus.

Parameters:
newFocus -
producer -

getChart

public org.jfree.chart.JFreeChart getChart()
Specified by:
getChart in interface ChartFocusHandler

setChart

public void setChart(org.jfree.chart.JFreeChart chart)
Specified by:
setChart in interface ChartFocusHandler

getProducer

public MetaDatasetProducer getProducer()
Specified by:
getProducer in interface ChartFocusHandler
Returns:
Returns the producer.

setProducer

public void setProducer(MetaDatasetProducer producer)
Specified by:
setProducer in interface ChartFocusHandler
Parameters:
producer - The producer to set.


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