rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Gantt Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvGanttScaleInteractor Class Reference

Interactor to change the time interval of a Gantt scale. More...

#include <ilviews/gantt/ganttint.h>

Inheritance diagram for IlvGanttScaleInteractor:
IlvInteractor

List of all members.

Public Member Functions

 IlvGanttScaleInteractor ()
 Constructor.
virtual void drawGhost (IlvContainer *view, IlvGraphic *scale, const IlvRect &timeRect, const IlvTransformer *t=0)
 Draws the interval dragged by the user.
IlvGanttChartgetGanttChart (const IlvGraphic *scale) const
 Returns the Gantt chart managing a given scale.
virtual IlBoolean handleEvent (IlvGraphic *scale, IlvEvent &event, const IlvTransformer *t)
 Handles incoming events.
virtual void validate (IlvGraphic *scale, const IlvRect &timeRect, IlInt &shownStart, IlInt &shownEnd)
 Controls the scale time interval.

Detailed Description

Interactor to change the time interval of a Gantt scale.

Library: ilvgantt

Use the IlvGanttScaleInteractor class to zoom in the Gantt grapher views on the time axis. This interactor is attached by default to the Gantt scales.

The registered name of this interactor is "GanttScale".

See also:
IlvGanttChart, IlvRectangularScale.

Constructor & Destructor Documentation

IlvGanttScaleInteractor::IlvGanttScaleInteractor (  ) 

Constructor.

The constructor initializes an instance of the IlvGanttScaleInteractor class.


Member Function Documentation

virtual void IlvGanttScaleInteractor::drawGhost ( IlvContainer view,
IlvGraphic scale,
const IlvRect timeRect,
const IlvTransformer t = 0 
) [virtual]

Draws the interval dragged by the user.

Draws the rectangle specifying the time interval in XOR mode.

Parameters:
view The view where the scale is displayed.
scale The considered Gantt scale.
timeRect The rectangle specifying the time interval.
t The transformer applied to the view view.
IlvGanttChart* IlvGanttScaleInteractor::getGanttChart ( const IlvGraphic scale  )  const

Returns the Gantt chart managing a given scale.

Parameters:
scale The Gantt scale.
Returns:
The Gantt chart managing the scale scale.
virtual IlBoolean IlvGanttScaleInteractor::handleEvent ( IlvGraphic scale,
IlvEvent event,
const IlvTransformer t 
) [virtual]

Handles incoming events.

Computes and sets the new shown start and shown end of the pointed scale object. The interval is controlled by the IlvGanttScaleInteractor::validate method. When the button is released, the IlvGanttChart::showInterval is used.

Parameters:
scale The considered Gantt scale.
event The received event.
t The transformer applied to the view where the event occurred.

Implements IlvInteractor.

virtual void IlvGanttScaleInteractor::validate ( IlvGraphic scale,
const IlvRect timeRect,
IlInt shownStart,
IlInt shownEnd 
) [virtual]

Controls the scale time interval.

Modifies the shown start time and shown end time of the Gantt chart scale scale. The provided values are computed from the timeRect rectangle drawn by the user. The default implementation does nothing.

Parameters:
scale The considered Gantt scale.
timeRect The rectangle specifying the time interval.
shownStart The computed start time for the scale.
shownEnd The computed end time for the scale.

© 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.