rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Gantt Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvGanttHorizontalGridImpl Class Reference

Gantt chart horizontal grid implementation class. More...

#include <ilviews/gantt/ganttgrd.h>

Inheritance diagram for IlvGanttHorizontalGridImpl:
IlvGanttCalendarGrid IlvGanttHorizontalGrid IlvGanttLineGrid IlvGanttRowGrid IlvGanttLineReliefGrid IlvGanttResourceGrid

List of all members.

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.
virtual void drawLine (IlvPort *port, const IlvPalette *palette, const IlvTransformer *t, IlvPoint &from, IlvPoint &to) const
 Draws a grid line.
virtual void fillGrid (IlvPort *port, const IlvTransformer *t=0, const IlvRegion *clip=0) const
 Fills the horizontal grid for the Gantt chart.
virtual IlvPalettegetBackgroundPalette () const =0
 Returns the palette used to fill the grid.
virtual IlvPalettegetForegroundPalette () const =0
 Returns the palette used to draw the grid lines.
virtual IlvGanttChartgetGanttChart () const =0
 Returns the Gantt chart for which the grid is drawn.
virtual void getGridArea (IlvRect &area) const =0
 Returns the bounds of the grid.

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:
port The destination to draw the grid.
t The transformer used to draw the grid.
clip The clip region.

Reimplemented in IlvGanttResourceGrid, and IlvGanttRowGrid.

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:
port The destination to draw the grid.
palette The palette used to draw the line.
t The transformer used to draw the grid.
from The start point of the line to draw.
to The 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:
port The destination to draw the grid.
t The transformer used to draw the grid.
clip The 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 IlvGanttHorizontalGrid, and IlvGanttCalendarGrid.

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 IlvGanttHorizontalGrid, and IlvGanttCalendarGrid.

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 IlvGanttHorizontalGrid, and IlvGanttCalendarGrid.

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 IlvGanttHorizontalGrid, and IlvGanttCalendarGrid.

 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.