Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Gantt chart grid hook class. More...
#include <ilviews/gantt/gantt.h>
Public Member Functions | |
IlvGanttGridViewHook (IlvGanttChart *gantt, IlvManager *mgr, IlvView *view) | |
Constructor. | |
virtual void | beforeDraw (IlvPort *dst, const IlvTransformer *=0, const IlvRegion *r=0, const IlvRegion *clip=0) |
Called internally by the manager before it redraws the hook view. | |
virtual void | contentsChanged () |
Called when the contents of the manager are changed. | |
virtual void | drawGrid (IlvPort *dst, const IlvRegion *clip=0) |
Calls the Gantt member function drawGrid and then sets the skip-compute flag to IlTrue . | |
void | skipCompute (IlBoolean flag) |
Sets the skip-compute flag. | |
virtual void | transformerChanged (const IlvTransformer *current, const IlvTransformer *previous) |
Called when you change the transformer of the view to which this hook is connected. |
Gantt chart grid hook class.
Library: ilvgantt
An IlvGanttGridViewHook
object is connected to each of the four views managed by the Gantt grapher. This hook is used to draw a grid in the grapher views.
IlvGanttGridViewHook::IlvGanttGridViewHook | ( | IlvGanttChart * | gantt, | |
IlvManager * | mgr, | |||
IlvView * | view | |||
) |
Constructor.
The constructor initializes an IlvGanttGridViewHook
object with the parameters you provide.
gantt | The Gantt chart. | |
mgr | The manager. | |
view | The view. |
virtual void IlvGanttGridViewHook::beforeDraw | ( | IlvPort * | dst, | |
const IlvTransformer * | = 0 , |
|||
const IlvRegion * | r = 0 , |
|||
const IlvRegion * | clip = 0 | |||
) | [virtual] |
Called internally by the manager before it redraws the hook view.
The default implementation calls the member function drawGrid
.
dst | The port to draw to. | |
t | The transformer applied to the view where the event occurred. | |
r | The areas that are to be refreshed, in the view coordinate system. | |
clip | The clipping region. |
Reimplemented from IlvManagerViewHook.
virtual void IlvGanttGridViewHook::contentsChanged | ( | ) | [virtual] |
Called when the contents of the manager are changed.
The default implementation sets the skip-compute flag to IlFalse
.
Reimplemented from IlvManagerViewHook.
Calls the Gantt member function drawGrid
and then sets the skip-compute flag to IlTrue
.
dst | The port to draw to. | |
clip | The clipping region. |
void IlvGanttGridViewHook::skipCompute | ( | IlBoolean | flag | ) |
Sets the skip-compute flag.
flag | If IlTrue , the Gantt chart does not recompute the grid points before drawing the grid. |
virtual void IlvGanttGridViewHook::transformerChanged | ( | const IlvTransformer * | current, | |
const IlvTransformer * | previous | |||
) | [virtual] |
Called when you change the transformer of the view to which this hook is connected.
The default implementation sets the skip-compute flag to IlFalse
.
current | The current transformer. | |
previous | The previous transformer. |
Reimplemented from IlvManagerViewHook.
© 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.