Rogue Wave Views Gantt Package API Reference Guide |
Rogue Wave Views Documentation Home |
Interactor to perform zooms on gantt lines. More...
#include <ilviews/gantt/ganttint.h>
Public Member Functions | |
IlvGanttZoomInteractor (IlvGanttChart *gantt, IlvView *view, IlUShort button=IlvLeftButton) | |
Constructor. More... | |
virtual void | doIt (IlvRect &rect) |
Performs the zoom operation. More... | |
virtual void | drawGhost () |
Draws the rectangle dragged by the user. More... | |
virtual void | ensureVisible (const IlvPoint &p) |
Translates the working view according to the mouse position. More... | |
IlvGanttChart * | getGanttChart () const |
Returns the Gantt chart with which this interactor is associated. More... | |
Interactor to perform zooms on gantt lines.
Library: ilvgantt
An IlvGanttZoomInteractor
interactor zooms in or out in the view connected to the manager that stores the Gantt lines.
IlvGanttChart
, IlvGanttLine
. IlvGanttZoomInteractor::IlvGanttZoomInteractor | ( | IlvGanttChart * | gantt, |
IlvView * | view, | ||
IlUShort | button = IlvLeftButton |
||
) |
Constructor.
The constructor initializes a new instance of the IlvGanttZoomInteractor
class that zooms in or out in the view view connected to the manager that stores the lines of the Gantt chart gantt. The Gantt grapher views having the same row as this view are zoomed automatically. Use button to specify which mouse button must be used for zooming.
gantt | The Gantt chart to which the interactor is attached. |
view | The manager view to which the interactor is attached. This view must be one of the Gantt manager view where resources (lines) are displayed. |
button | The mouse button that is used for the interaction. |
|
virtual |
Performs the zoom operation.
Computes the first and the last visible rows from the rectangle rect that the user has been dragging, then zooms in or out in the view to ensure that these rows remain visible on the screen.
rect | The rectangle drawn by the user. |
Reimplemented from IlvDragRectangleInteractor.
|
virtual |
Draws the rectangle dragged by the user.
Draws in XOR
mode the rectangle dragged by the user.
Reimplemented from IlvDragRectangleInteractor.
|
virtual |
Translates the working view according to the mouse position.
Performs a logical view translation when the user drags the mouse outside the view.
p | The location of the mouse, in view coordinates. |
Reimplemented from IlvManagerViewInteractor.
IlvGanttChart* IlvGanttZoomInteractor::getGanttChart | ( | ) | const |
Returns the Gantt chart with which this interactor is associated.
© Copyright 2017, 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.