Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
191
Добавлен:
11.05.2015
Размер:
4.96 Mб
Скачать

graphDirection

Specifies the graphing direction for cross-tab reports. For normal group/total

 

report, the direction, is always PEP_GRAPH_COLS_ONLY = 1. Assigns this value

 

to the CRPEGraphDataInfo::m_graphDirection member variable. Possible values

 

are:

 

 

 

 

 

 

 

 

 

 

 

Constant

Value

Description

 

 

 

 

 

 

 

 

 

PEP_GRAPH_ROWS_ONLY

0

Use only row values in

 

 

 

graph.

 

PEP_GRAPH_COLS_ONLY

1

Use only column values

 

 

 

in graph.

 

 

 

 

 

PEP_GRAPH_MIXED_ROW_COL

2

Graph by row values,

 

 

 

then by column values.

 

PEP_GRAPH_MIXED_COL_ROW

3

Graph by column values,

 

 

 

then by row values.

 

 

 

 

 

PEP_GRAPH_UNKNOWN_DIRECTION

20

The direction of the

 

 

 

graph is unknown.

class CRPEGraphOptions

The CRPEGraphOptions class contains information on several options available with graphs and charts. This class is used by CRPEJob::GetGraphOptions, Page 414, to determine what options have been set for a chart, and it is used by CRPEJob::SetGraphOptions, Page 443, to change the options for a chart.

Data Members

m_graphMaxValue

Specifies the maximum value that will appear in the graph. Any graph values

 

above this value are not charted.

 

 

m_graphMinValue

Specifies the minimum value that will appear in the graph. Any graph values

 

below this value are not charted.

 

 

m_showDataValue

Specifies whether or not to display the numeric value associated with each riser

 

on the chart. If set to TRUE (1), a value appears in the graph for each riser.

 

 

m_showGridLine

Specifies whether or not to display grid lines on the graph.

 

 

m_verticalBars

Specifies whether to display the bars in a bar graph vertically or horizontally.

 

 

m_showLegend

Specifies whether or not to display the graph legend.

m_fontFaceName

Specifies the font for all text and values in the entire graph.

Constructor CRPEGraphOptions::CRPEGraphOptions

Constructs a CRPEGraphOptions class object. Call the constructor with no parameters to allow the Class

Crystal Class Library for NewEra Reference

466

Library to initialize all member variables with default values. Pass parameters to the constructor to assign specific values to each member variable.

Default Syntax

CRPEGraphOptions()

Syntax

CRPEGraphOptions (graphMaxValue FLOAT : 0, graphMinValue FLOAT : 0, showDataValue BOOLEAN : FALSE, showGridLine BOOLEAN : FALSE, verticalBars

BOOLEAN : FALSE, showLegend BOOLEAN : FALSE, fontFaceName CHAR (*) : NULL)

Parameters

graphMaxValue

Specifies the maximum value that will appear in the graph. Any graph values

 

above this value are not charted. Assigns this value to the

 

CRPEGraphOptions::m_graphMaxValue member variable.

graphMinValue

Specifies the minimum value that will appear in the graph. Any graph values

 

below this value are not charted. Assigns this value to the

 

CRPEGraphOptions::m_graphMinValue member variable.

 

 

showDataValue

Specifies whether or not to display the numeric value associated with each riser

 

on the chart. If set to TRUE, a value appears in the graph for each riser. Assigns

 

this value to the CRPEGraphOptions::m_showDataValue member variable.

 

 

showGridLine

Specifies whether or not to display grid lines on the graph. Assigns this value to

 

the CRPEGraphOptions::m_showGridLine member variable.

 

 

verticalBars

Specifies whether to display the bars in a bar graph vertically or horizontally.

 

Assigns this value to the CRPEGraphOptions::m_verticalBars member variable.

 

 

showLegend

Specifies whether or not to display the graph legend. Assigns this value to the

 

CRPEGraphOptions::m_showLegend member variable.

 

 

fontFaceName

Specifies the font for all text and values in the entire graph. Assigns this value to

 

the CRPEGraphOptions::m_fontFaceName member variable.

 

 

Crystal Class Library for NewEra Reference

467

Соседние файлы в папке crystal