rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Gantt Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvGanttPanZoomInteractor Class Reference

Interactor to pan and zoom the grapher views of the Gantt chart. More...

#include <ilviews/gantt/ganttint.h>

Inheritance diagram for IlvGanttPanZoomInteractor:
IlvPanZoomInteractor IlvManagerViewInteractor

List of all members.

Public Member Functions

 IlvGanttPanZoomInteractor (IlvGanttChart *gantt, IlvManager *grapher, IlvView *view)
 Constructor.
IlvGanttChartgetGanttChart ()
 Returns the associated Gantt chart.
void setGanttChart (IlvGanttChart *gantt)
 Specifies the Gantt chart to be associated.

Protected Member Functions

virtual void doTranslate (IlvPos dx, IlvPos dy, IlBoolean reDraw)
 Called by the handleEvent method in order to translate the view.
virtual void doZoom (const IlvPoint &center, IlFloat scalex, IlBoolean reDraw)
 Called by the handleEvent method in order to zoom the view.

Detailed Description

Interactor to pan and zoom the grapher views of the Gantt chart.

Library: ilvgantt

Install this interactor in the grapher views of the Gantt chart to pan and zoom. Use the left mouse button to vertically or horizontally pan the grapher views. Use the middle button or the mouse wheel to horizontally zoom the grapher views.

See also:
IlvGanttChart, IlvPanZoomInteractor.

Constructor & Destructor Documentation

IlvGanttPanZoomInteractor::IlvGanttPanZoomInteractor ( IlvGanttChart gantt,
IlvManager grapher,
IlvView view 
)

Constructor.

The constructor initializes an instance of the IlvGanttPanZoomInteractor class.

Parameters:
gantt The Gantt chart.
grapher The grapher of the Gantt chart.
view Specifies one of the grapher views of the Gantt chart.

Member Function Documentation

virtual void IlvGanttPanZoomInteractor::doTranslate ( IlvPos  dx,
IlvPos  dy,
IlBoolean  reDraw 
) [protected, virtual]

Called by the handleEvent method in order to translate the view.

Parameters:
dx The x translation factor.
dy The y translation factor.
reDraw If IlTrue, the view must be redrawn.

Reimplemented from IlvPanZoomInteractor.

virtual void IlvGanttPanZoomInteractor::doZoom ( const IlvPoint center,
IlFloat  scalex,
IlBoolean  reDraw 
) [protected, virtual]

Called by the handleEvent method in order to zoom the view.

The default zooming factor used by the handleEvent is 1.5 for the zoom in operation and 1 / 1.5 for the zoom out. Note that the performed zoom keeps the aspect ratio (for example, scaley = scalex).

Parameters:
center The point that is left unchanged by the zoom operation. The default point used by the handleEvent method is the center of the view.
scalex The x zooming factor.
reDraw If IlTrue, the view must be redrawn.

Reimplemented from IlvPanZoomInteractor.

IlvGanttChart* IlvGanttPanZoomInteractor::getGanttChart (  ) 

Returns the associated Gantt chart.

Returns:
The associated Gantt chart.
void IlvGanttPanZoomInteractor::setGanttChart ( IlvGanttChart gantt  ) 

Specifies the Gantt chart to be associated.

Parameters:
gantt The Gantt chart to be associated.
 All Classes Files Functions Variables Typedefs Enumerations Friends

© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.