Views
Gantt Package API Reference Guide
Product Documentation:
Views Documentation Home
List of all members | Public Member Functions
IlvGanttHorizontalGrid Class Reference

Base class for Gantt chart horizontal grids. More...

#include <ilviews/gantt/ganttgrd.h>

Inheritance diagram for IlvGanttHorizontalGrid:
IlvGanttHorizontalGridImpl IlvSimpleGraphic IlvGraphic IlvStylable IlvValueInterface IlvGanttLineGrid IlvGanttRowGrid IlvGanttLineReliefGrid IlvGanttResourceGrid

Public Member Functions

 IlvGanttHorizontalGrid (IlvGanttChart *gantt, const IlvRect &rect, IlvPalette *palette=0)
 Constructor to create new instances. More...
 
virtual IlvPalettegetBackgroundPalette () const
 Returns the palette used to fill the grid. More...
 
virtual IlvPalettegetForegroundPalette () const
 Returns the palette used to draw the grid lines. More...
 
virtual IlvGanttChartgetGanttChart () const
 Returns the Gantt chart for which the grid is drawn. More...
 
virtual void getGridArea (IlvRect &area) const
 Returns the bounds of the grid. More...
 
- Public Member Functions inherited from IlvGanttHorizontalGridImpl
 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...
 

Detailed Description

Base class for Gantt chart horizontal grids.

Library: ilvgantt

This is the base class for all horizontal grid classes such as IlvGanttLineGrid and IlvGanttRowGrid. It is not designed to be independently instantiated. Subclasses can use the implemented functions or override them if they do not meet the needs.

See also
IlvGanttChart, IlvGanttHorizontalGridImpl.

Constructor & Destructor Documentation

◆ IlvGanttHorizontalGrid()

IlvGanttHorizontalGrid::IlvGanttHorizontalGrid ( IlvGanttChart gantt,
const IlvRect rect,
IlvPalette palette = 0 
)

Constructor to create new instances.

The palette parameter specifies the foreground of the grid. An inverted palette is automatically computed for filling the background.

Parameters
ganttThe Gantt chart for which to draw the grid.
rectThe initial bounds of the grid.
paletteThe palette for the grid.

Member Function Documentation

◆ getBackgroundPalette()

virtual IlvPalette* IlvGanttHorizontalGrid::getBackgroundPalette ( ) const
virtual

Returns the palette used to fill the grid.

Subclasses should implement this function.

Returns
The palette used to fill the grid.

Implements IlvGanttHorizontalGridImpl.

◆ getForegroundPalette()

virtual IlvPalette* IlvGanttHorizontalGrid::getForegroundPalette ( ) const
virtual

Returns the palette used to draw the grid lines.

Subclasses should implement this function.

Returns
The palette used to draw the grid lines.

Implements IlvGanttHorizontalGridImpl.

◆ getGanttChart()

virtual IlvGanttChart* IlvGanttHorizontalGrid::getGanttChart ( ) const
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.

Implements IlvGanttHorizontalGridImpl.

◆ getGridArea()

virtual void IlvGanttHorizontalGrid::getGridArea ( IlvRect area) const
virtual

Returns the bounds of the grid.

Subclasses should implement this function.

Returns
The bounds of the grid.

Implements IlvGanttHorizontalGridImpl.