NetCharts Pro

netcharts.graphics
Interface NFDwellObserver

All Known Implementing Classes:
NFAbstractBarchart, NFAbstractGroupStackableBarchart, NFAbstractLineChart, NFAbstractPiechart, NFBarchart, NFBarchart3d, NFBoxchart, NFBubblechart, NFCombochart, NFDataChart, NFDiagramchart, NFDialchart, NFGraph, NFHeatmapchart, NFHistogramchart, NFLinechart, NFMultiPiechart, NFParetochart, NFPiechart, NFPolarchart, NFRadarchart, NFSizedChart, NFStockchart, NFStripchart, NFTimechart, NFXYchart, NFZoomableChart

public interface NFDwellObserver

This interface allows any object to interact with the dwell processing performed by NFActiveRegion. See the DwellObserver Example for a sample applet that uses the NFDwellObserver interface to perform custom dwell label processing.


Method Summary
 boolean dwellDisplay(boolean onoff, NFActiveLabel label)
          This method is called when a dwell label is about to be displayed or erased.
 boolean dwellPress(java.awt.Event evt, int x, int y, NFActiveLabel label)
          This method is called whenever a dwell press occurs on the given label.
 

Method Detail

dwellDisplay

boolean dwellDisplay(boolean onoff,
                     NFActiveLabel label)
This method is called when a dwell label is about to be displayed or erased.

When onoff is true, the label is about to be displayed. If true is returned, the label will NOT be displayed.

When onoff is false, the label should be erased by one of the observers.

Parameters:
onoff - Whether the label is to be turned on or off.
label - The ActiveLabel.
Returns:
true if the label is NOT to be drawn, false otherwise.

dwellPress

boolean dwellPress(java.awt.Event evt,
                   int x,
                   int y,
                   NFActiveLabel label)
This method is called whenever a dwell press occurs on the given label. If true is returned, no further processing will be performed. If false is returned, the URL and target associated with the label will be used to showDocument().

Parameters:
evt - The Event.
x - The x coordinate of the event.
y - The y coordinate of the event.
label - The ActiveLabel.
Returns:
true if nothing is to be done, false if the document is to be shown.

NetCharts Pro


Visual Mining, Inc.
2099 Gaither Rd.
Suite 220
Rockville, MD 20850
800.308.0731
301.947.8293 FAX

Copyright © Visual Mining, Inc. 1996 - 2011
All Rights Reserved.

NetCharts Pro TM is a registered trademark of Visual Mining, Inc. Other brands and their products are trademarks of their respective holders.

Last Modified: Jun 28, 2011