rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Gantt Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

List of all members | Public Member Functions
IlvGanttHorizontalGridImpl Class Referenceabstract

Gantt chart horizontal grid implementation class. More...

#include <ilviews/gantt/ganttgrd.h>

Inheritance diagram for IlvGanttHorizontalGridImpl:
IlvGanttCalendarGrid IlvGanttHorizontalGrid IlvGanttLineGrid IlvGanttRowGrid IlvGanttLineReliefGrid IlvGanttResourceGrid

Public Member Functions

 IlvGanttHorizontalGridImpl ()
 Users should user directly this constructor to create new instances.
 
virtual void drawGrid (IlvPort *port, const IlvTransformer *t=0, const IlvRegion *clip=0) const
 Draws the horizontal grid for the Gantt chart. More...
 
virtual void drawLine (IlvPort *port, const IlvPalette *palette, const IlvTransformer *t, IlvPoint &from, IlvPoint &to) const
 Draws a grid line. More...
 
virtual void fillGrid (IlvPort *port, const IlvTransformer *t=0, const IlvRegion *clip=0) const
 Fills the horizontal grid for the Gantt chart. More...
 
virtual IlvPalettegetBackgroundPalette () const =0
 Returns the palette used to fill the grid. More...
 
virtual IlvPalettegetForegroundPalette () const =0
 Returns the palette used to draw the grid lines. More...
 
virtual IlvGanttChartgetGanttChart () const =0
 Returns the Gantt chart for which the grid is drawn. More...
 
virtual void getGridArea (IlvRect &area) const =0
 Returns the bounds of the grid. More...
 

Detailed Description

Gantt chart horizontal grid implementation class.

Library: ilvgantt

This class implements some basic functions for drawing horizontal grids for an IlvGanttChart or IlvGanttChartForm. It is not designed to be independently instanced. Subclasses of this can use the implemented functions or override them if they do not meet the needs.

See Also
IlvGanttChart, IlvGanttHorizontalGrid.

Member Function Documentation

virtual void IlvGanttHorizontalGridImpl::drawGrid ( IlvPort port,
const IlvTransformer t = 0,
const IlvRegion clip = 0 
) const
virtual

Draws the horizontal grid for the Gantt chart.

This function calls drawLine() to draw the grid. Note that this function does not push the clip.

Parameters
portThe destination to draw the grid.
tThe transformer used to draw the grid.
clipThe clip region.

Reimplemented in IlvGanttRowGrid, and IlvGanttResourceGrid.

virtual void IlvGanttHorizontalGridImpl::drawLine ( IlvPort port,
const IlvPalette palette,
const IlvTransformer t,
IlvPoint from,
IlvPoint to 
) const
virtual

Draws a grid line.

This function is called by the drawGrid() method to draw the grid lines. Subclasses can override this function to draw customized lines.

Parameters
portThe destination to draw the grid.
paletteThe palette used to draw the line.
tThe transformer used to draw the grid.
fromThe start point of the line to draw.
toThe end point of the line to draw.

Reimplemented in IlvGanttLineReliefGrid.

virtual void IlvGanttHorizontalGridImpl::fillGrid ( IlvPort port,
const IlvTransformer t = 0,
const IlvRegion clip = 0 
) const
virtual

Fills the horizontal grid for the Gantt chart.

This function fills the background of the grid. Note that this function does not push the clip.

Parameters
portThe destination to draw the grid.
tThe transformer used to draw the grid.
clipThe clip region.

Reimplemented in IlvGanttLineReliefGrid.

virtual IlvPalette* IlvGanttHorizontalGridImpl::getBackgroundPalette ( ) const
pure virtual

Returns the palette used to fill the grid.

Subclasses should implement this function.

Returns
The palette used to fill the grid.

Implemented in IlvGanttCalendarGrid, and IlvGanttHorizontalGrid.

virtual IlvPalette* IlvGanttHorizontalGridImpl::getForegroundPalette ( ) const
pure virtual

Returns the palette used to draw the grid lines.

Subclasses should implement this function.

Returns
The palette used to draw the grid lines.

Implemented in IlvGanttCalendarGrid, and IlvGanttHorizontalGrid.

virtual IlvGanttChart* IlvGanttHorizontalGridImpl::getGanttChart ( ) const
pure virtual

Returns the Gantt chart for which the grid is drawn.

Subclasses should implement this function.

Returns
The Gantt chart for which the grid is drawn.

Implemented in IlvGanttCalendarGrid, and IlvGanttHorizontalGrid.

virtual void IlvGanttHorizontalGridImpl::getGridArea ( IlvRect area) const
pure virtual

Returns the bounds of the grid.

Subclasses should implement this function.

Returns
The bounds of the grid.

Implemented in IlvGanttCalendarGrid, and IlvGanttHorizontalGrid.


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