org.progeeks.jfreechart
Class DefaultFocusHandler
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final Log log
DefaultFocusHandler
public DefaultFocusHandler()
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.