Rogue Wave Views Gantt Package API Reference Guide |
Rogue Wave Views Documentation Home |
Interactor to change the time interval of a Gantt scale. More...
#include <ilviews/gantt/ganttint.h>
Public Member Functions | |
IlvGanttScaleInteractor () | |
Constructor. More... | |
virtual void | drawGhost (IlvContainer *view, IlvGraphic *scale, const IlvRect &timeRect, const IlvTransformer *t=0) |
Draws the interval dragged by the user. More... | |
IlvGanttChart * | getGanttChart (const IlvGraphic *scale) const |
Returns the Gantt chart managing a given scale. More... | |
virtual IlBoolean | handleEvent (IlvGraphic *scale, IlvEvent &event, const IlvTransformer *t) |
Handles incoming events. More... | |
virtual void | validate (IlvGraphic *scale, const IlvRect &timeRect, IlInt &shownStart, IlInt &shownEnd) |
Controls the scale time interval. More... | |
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".
IlvGanttChart
, IlvRectangularScale
. IlvGanttScaleInteractor::IlvGanttScaleInteractor | ( | ) |
Constructor.
The constructor initializes an instance of the IlvGanttScaleInteractor
class.
|
virtual |
Draws the interval dragged by the user.
Draws the rectangle specifying the time interval in XOR
mode.
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.
scale | The Gantt scale. |
|
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.
scale | The considered Gantt scale. |
event | The received event. |
t | The transformer applied to the view where the event occurred. |
IlTrue
if the event is consumed, IlFalse
otherwise. Implements IlvInteractor.
|
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.
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 2018, 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.