Rogue Wave Views
Gantt Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
List of all members | Public Member Functions
IlvGanttZoomInteractor Class Reference

Interactor to perform zooms on gantt lines. More...

#include <ilviews/gantt/ganttint.h>

Inheritance diagram for IlvGanttZoomInteractor:
IlvDragRectangleInteractor IlvManagerViewInteractor IlvValueInterface

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...
 
IlvGanttChartgetGanttChart () const
 Returns the Gantt chart with which this interactor is associated. More...
 

Detailed Description

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.

See also
IlvGanttChart, IlvGanttLine.

Constructor & Destructor Documentation

§ IlvGanttZoomInteractor()

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.

Parameters
ganttThe Gantt chart to which the interactor is attached.
viewThe manager view to which the interactor is attached. This view must be one of the Gantt manager view where resources (lines) are displayed.
buttonThe mouse button that is used for the interaction.

Member Function Documentation

§ doIt()

virtual void IlvGanttZoomInteractor::doIt ( IlvRect rect)
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.

Parameters
rectThe rectangle drawn by the user.

Reimplemented from IlvDragRectangleInteractor.

§ drawGhost()

virtual void IlvGanttZoomInteractor::drawGhost ( )
virtual

Draws the rectangle dragged by the user.

Draws in XOR mode the rectangle dragged by the user.

Reimplemented from IlvDragRectangleInteractor.

§ ensureVisible()

virtual void IlvGanttZoomInteractor::ensureVisible ( const IlvPoint p)
virtual

Translates the working view according to the mouse position.

Performs a logical view translation when the user drags the mouse outside the view.

Parameters
pThe location of the mouse, in view coordinates.

Reimplemented from IlvManagerViewInteractor.

§ getGanttChart()

IlvGanttChart* IlvGanttZoomInteractor::getGanttChart ( ) const

Returns the Gantt chart with which this interactor is associated.

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.