Hide Comments
Hide Comments

TRSCustomChartPanel.Pan(Integer,Integer,Boolean,Boolean) Method

Comments (0)

Moves the visual window (or the zoomed window) that the chart panel displays. The zoomed area is not changed. By default, the Pan method uses the    BottomAxis and the    LeftAxis to pan. By changing the UseBottomAxis and UseLeftAxis parameters, you can change which axes are used. The MoveX and MoveY parameters, which is based on pixels, are first converted into the equivalent amounts based on chart axis values.

Specifying a positive MoveX amount moves the zoomed window right and a negative amount moves it left. Specifying a positive MoveY amount moves the zoomed window up and a negative amount moves it down.

Use the overloaded Pan method to move the visual window using chart axis values directly.

noteNote

The Pan method does nothing if no chart axis is zoomed (Zooming = False).

Namespace: RSChartPanel

expandingSyntax

Delphi

public 
  procedure Pan( MoveX, MoveY: Integer; UseBottomAxis: Boolean = True; UseLeftAxis: Boolean = True ); overload; virtual; 
 

Parameters

MoveX

Type: Integer

MoveY

Type: Integer

UseBottomAxis

Type: Boolean

UseLeftAxis

Type: Boolean

expandingExamples

The following code zooms the chart panel and then pans right:

Delphi

begin
   RSChartPanel1.Zoom( RSRect(0, 0, 100, 100) );
   RSChartPanel1.Pan( 10, 0 );
 end;

expandingSee Also

Comments (0)

RiverSoftAVG Charting Component Suite (RCCS) © 2005-2015, Thomas G. Grubb