Rogue Wave Views
Gantt Package API Reference Guide
Product Documentation:

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

Gantt chart grid hook class. More...

#include <ilviews/gantt/gantt.h>

Inheritance diagram for IlvGanttGridViewHook:
IlvManagerViewHook

Public Member Functions

 IlvGanttGridViewHook (IlvGanttChart *gantt, IlvManager *mgr, IlvView *view)
 Initializes a new IlvGanttGridViewHook. More...
 
virtual void beforeDraw (IlvPort *dst, const IlvTransformer *t=0, const IlvRegion *r=0, const IlvRegion *clip=0)
 Called internally by the manager before it redraws the hook view. More...
 
virtual void contentsChanged ()
 Called when the contents of the manager are changed. More...
 
virtual void drawGrid (IlvPort *dst, const IlvRegion *clip=0)
 Calls the Gantt member function drawGrid() and then sets the skip-compute flag to IlTrue. More...
 
void skipCompute (IlBoolean flag)
 Sets the skip-compute flag. More...
 
virtual void transformerChanged (const IlvTransformer *current, const IlvTransformer *previous)
 Called when you change the transformer of the view to which this hook is connected. More...
 

Detailed Description

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.

See also
IlvGanttChart, IlvManagerViewHook.

Constructor & Destructor Documentation

§ IlvGanttGridViewHook()

IlvGanttGridViewHook::IlvGanttGridViewHook ( IlvGanttChart gantt,
IlvManager mgr,
IlvView view 
)

Initializes a new IlvGanttGridViewHook.

Parameters
ganttThe Gantt chart.
mgrThe manager.
viewThe view.

Member Function Documentation

§ beforeDraw()

virtual void IlvGanttGridViewHook::beforeDraw ( IlvPort dst,
const IlvTransformer t = 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().

Parameters
dstThe port to draw to.
tThe transformer applied to the view where the event occurred.
rThe areas that are to be refreshed, in the view coordinate system.
clipThe clipping region.

Reimplemented from IlvManagerViewHook.

§ contentsChanged()

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.

§ drawGrid()

virtual void IlvGanttGridViewHook::drawGrid ( IlvPort dst,
const IlvRegion clip = 0 
)
virtual

Calls the Gantt member function drawGrid() and then sets the skip-compute flag to IlTrue.

Parameters
dstThe port to draw to.
clipThe clipping region.

§ skipCompute()

void IlvGanttGridViewHook::skipCompute ( IlBoolean  flag)

Sets the skip-compute flag.

Parameters
flagIf IlTrue, the Gantt chart does not recompute the grid points before drawing the grid.

§ transformerChanged()

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.

Parameters
currentThe current transformer.
previousThe previous transformer.

Reimplemented from IlvManagerViewHook.


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