rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Gantt Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvGanttGridViewHook Class Reference

Gantt chart grid hook class. More...

#include <ilviews/gantt/gantt.h>

Inheritance diagram for IlvGanttGridViewHook:
IlvManagerViewHook

List of all members.

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.

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 ( IlvGanttChart gantt,
IlvManager mgr,
IlvView view 
)

Constructor.

The constructor initializes an IlvGanttGridViewHook object with the parameters you provide.

Parameters:
gantt The Gantt chart.
mgr The manager.
view The view.

Member Function Documentation

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.

Parameters:
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.

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:
dst The port to draw to.
clip The clipping region.
void IlvGanttGridViewHook::skipCompute ( IlBoolean  flag  ) 

Sets the skip-compute flag.

Parameters:
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.

Parameters:
current The current transformer.
previous The previous transformer.

Reimplemented from IlvManagerViewHook.

 All Classes Files Functions Variables Typedefs Enumerations Friends

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