Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Gantt chart horizontal grid implementation class. More...
#include <ilviews/gantt/ganttgrd.h>
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 IlvPalette * | getBackgroundPalette () const =0 |
Returns the palette used to fill the grid. | |
virtual IlvPalette * | getForegroundPalette () const =0 |
Returns the palette used to draw the grid lines. | |
virtual IlvGanttChart * | getGanttChart () 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. |
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.
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.
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.
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.
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.
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.
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.
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.
Implemented in IlvGanttHorizontalGrid, and IlvGanttCalendarGrid.
© 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.