Rogue Wave Views
Gantt Package API Reference Guide
Product Documentation:

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

Horizontal grid (using relief lines) for Gantt lines. More...

#include <ilviews/gantt/ganttgrd.h>

Inheritance diagram for IlvGanttLineReliefGrid:
IlvGanttLineGrid IlvGanttHorizontalGrid IlvGanttHorizontalGridImpl IlvSimpleGraphic IlvGraphic IlvValueInterface

Public Member Functions

 IlvGanttLineReliefGrid (IlvGanttChart *gantt, IlvPalette *gridPal)
 Constructor to create new instances. 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, const IlvRegion *clip) const
 Fills the horizontal grid for the Gantt chart. More...
 
- Public Member Functions inherited from IlvGanttLineGrid
 IlvGanttLineGrid (IlvGanttChart *gantt, IlvPalette *palette=0)
 Constructor to create new instances. More...
 
 IlvGanttLineGrid (IlvGanttChart *gantt, const IlvRect &rect, IlvPalette *palette=0)
 Constructor to create new instances. More...
 
- Public Member Functions inherited from IlvGanttHorizontalGrid
 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...
 

Detailed Description

Horizontal grid (using relief lines) for Gantt lines.

Library: ilvgantt

This class draws horizontal grids using relief lines, for the Gantt lines in the manager views of the Gantt chart.

See also
IlvGanttChart, IlvGanttLineGrid.

Constructor & Destructor Documentation

§ IlvGanttLineReliefGrid()

IlvGanttLineReliefGrid::IlvGanttLineReliefGrid ( IlvGanttChart gantt,
IlvPalette gridPal 
)

Constructor to create new instances.

The gridPal 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.
gridPalThe palette for the grid.

Member Function Documentation

§ drawLine()

virtual void IlvGanttLineReliefGrid::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 from IlvGanttHorizontalGridImpl.

§ fillGrid()

virtual void IlvGanttLineReliefGrid::fillGrid ( IlvPort port,
const IlvTransformer t,
const IlvRegion clip 
) 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 from IlvGanttHorizontalGridImpl.


© Copyright 2017, 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.