Rogue Wave Views |
Rogue Wave Views Documentation Home |
Interactor to pan and zoom the grapher views of the Gantt chart. More...
#include <ilviews/gantt/ganttint.h>
Public Member Functions | |
IlvGanttPanZoomInteractor (IlvGanttChart *gantt, IlvManager *grapher, IlvView *view) | |
Constructor. More... | |
IlvGanttChart * | getGanttChart () |
Returns the associated Gantt chart. More... | |
void | setGanttChart (IlvGanttChart *gantt) |
Specifies the Gantt chart to be associated. More... | |
Protected Member Functions | |
virtual void | doTranslate (IlvPos dx, IlvPos dy, IlBoolean reDraw) |
Called by the handleEvent method in order to translate the view. More... | |
virtual void | doZoom (const IlvPoint ¢er, IlFloat scalex, IlBoolean reDraw) |
Called by the handleEvent method in order to zoom the view. More... | |
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.
IlvGanttChart
, IlvPanZoomInteractor
. IlvGanttPanZoomInteractor::IlvGanttPanZoomInteractor | ( | IlvGanttChart * | gantt, |
IlvManager * | grapher, | ||
IlvView * | view | ||
) |
Constructor.
The constructor initializes an instance of the IlvGanttPanZoomInteractor
class.
gantt | The Gantt chart. |
grapher | The grapher of the Gantt chart. |
view | Specifies one of the grapher views of the Gantt chart. |
|
protectedvirtual |
Called by the handleEvent
method in order to translate the view.
dx | The x translation factor. |
dy | The y translation factor. |
reDraw | If IlTrue , the view must be redrawn. |
Reimplemented from IlvPanZoomInteractor.
|
protectedvirtual |
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).
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.
void IlvGanttPanZoomInteractor::setGanttChart | ( | IlvGanttChart * | gantt | ) |
Specifies the Gantt chart to be associated.
gantt | The Gantt chart to be associated. |
© Copyright 2015, 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.