org.progeeks.jfreechart
Class TimeSeriesCrosshairsFocusHandler

java.lang.Object
  extended by org.progeeks.jfreechart.DefaultFocusHandler
      extended by org.progeeks.jfreechart.XYCrosshairsFocusHandler
          extended by org.progeeks.jfreechart.TimeSeriesCrosshairsFocusHandler
All Implemented Interfaces:
ChartFocusHandler

public class TimeSeriesCrosshairsFocusHandler
extends XYCrosshairsFocusHandler

FocusHandler which more accurately draws the crosshairs for TimeSeriesDataItems.

Version:
$Revision: 1.4 $
Author:
esword

Field Summary
protected static Log log
           
 
Constructor Summary
TimeSeriesCrosshairsFocusHandler()
           
 
Method Summary
protected  double getDomainCrosshairValue(org.jfree.data.xy.XYDataset focusedData)
          Get the true time point.
 boolean handleFocus(java.lang.Object newFocus)
           
 
Methods inherited from class org.progeeks.jfreechart.XYCrosshairsFocusHandler
getRangeCrosshairValue, getYValue
 
Methods inherited from class org.progeeks.jfreechart.DefaultFocusHandler
getChart, getProducer, setChart, setProducer, transformFocusData
 
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

TimeSeriesCrosshairsFocusHandler

public TimeSeriesCrosshairsFocusHandler()
Method Detail

handleFocus

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

getDomainCrosshairValue

protected double getDomainCrosshairValue(org.jfree.data.xy.XYDataset focusedData)
Get the true time point. If we just got the xValue from the dataset, that would give us the starting time of the TimePeriod the xValue falls into rather than the exact time of the focus object.

Overrides:
getDomainCrosshairValue in class XYCrosshairsFocusHandler
Parameters:
focusedData -


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