NetCharts Pro

netcharts.graphics
Interface NFScrollObserver

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 NFScrollObserver

This interface allows any object to monitor the scrolling/zooming activity of another object, such as the NFAxis object.


Method Summary
 void postScroll(java.lang.Object obj, double scrollMin, double scrollMax, double scaleMin, double scaleMax)
          This method is called immediately after a scroll/zoom activity, allowing the observer to monitor the new settings.
 boolean preScroll(java.lang.Object obj, double scrollMin, double scrollMax, double curScaleMin, double curScaleMax, double newScaleMin, double newScaleMax)
          This method is called immediately prior to a scroll/zoom activity, allowing the observer to examine the current and desired settings and to perform any custom processing.
 

Method Detail

preScroll

boolean preScroll(java.lang.Object obj,
                  double scrollMin,
                  double scrollMax,
                  double curScaleMin,
                  double curScaleMax,
                  double newScaleMin,
                  double newScaleMax)
This method is called immediately prior to a scroll/zoom activity, allowing the observer to examine the current and desired settings and to perform any custom processing. The <obj> pointer specifies the object which is being scrolled. If a return value of "true" is specified, then the scroll action will be allowed. Otherwise, it will be aborted.

Parameters:
obj - The object being scrolled.
scrollMin - The minimum scroll value.
scrollMax - The maximum scroll value.
curScrollMin - The current minimum scroll value.
curScrollMax - The current maximum scroll value.
newScrollMin - The new minimum scroll value.
newScrollMax - The new maximum scroll value.
Returns:
Whether to proceed with the scroll or not.

postScroll

void postScroll(java.lang.Object obj,
                double scrollMin,
                double scrollMax,
                double scaleMin,
                double scaleMax)
This method is called immediately after a scroll/zoom activity, allowing the observer to monitor the new settings. The <obj> pointer specifies the object that was affected.

Parameters:
obj - The object scrolled.
scrollMin - The minimum scroll value.
scrollMax - The maximum scroll value.
scaleMin - The minimum scale value.
scaleMax - The maximum scale value.

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