KDChart.cpp
421 intMap.insert( "KDCHART_MAX_POLAR_DELIMS_AND_LABELS_POS", KDCHART_MAX_POLAR_DELIMS_AND_LABELS_POS );
428 intMap.insert( "KDCHART_DONT_CHANGE_EMPTY_INNER_SPAN_NOW", KDCHART_DONT_CHANGE_EMPTY_INNER_SPAN_NOW );
444 globals += TQString::fromLatin1( "const KDCHART_DEFAULT_AXIS_GRID_COLOR = new Color(\"%1\");\n" )
Provide access to the chart axis parameters.
#define KDCHART_DEFAULT_AXIS_GRID_COLOR
Use this to reset the grid colour to its default value for re-doing changes made by calling setAxisGr...
Definition KDChartAxisParams.h:96
#define KDCHART_AXIS_LABELS_AUTO_DELTA
Use this to specify that the step-width from one label to the other shall be calculated automatically...
Definition KDChartAxisParams.h:61
#define KDCHART_AXIS_GRID_AUTO_LINEWIDTH
Use this to specify that the width of the axis grid lines shall be equal to the width of the axis lin...
Definition KDChartAxisParams.h:104
#define KDCHART_AXIS_LABELS_AUTO_DATETIME_FORMAT
Use this to specify that date/time format to be used for displaying the axis labels is to be determin...
Definition KDChartAxisParams.h:77
#define KDCHART_DONT_CHANGE_EMPTY_INNER_SPAN_NOW
Use this to prevent setAxisValues from changing the current setting of _axisMaxEmptyInnerSpan.
Definition KDChartAxisParams.h:121
#define KDCHART_AXIS_IGNORE_EMPTY_INNER_SPAN
Use this to specify that the zero-line shall NOT be omitted in case all of the data are grouped far a...
Definition KDChartAxisParams.h:112
#define KDCHART_AXIS_LABELS_AUTO_LEAVEOUT
Use this to specify that an automatically computed amount of axis labels are to be skipped if there i...
Definition KDChartAxisParams.h:71
#define KDCHART_AXIS_LABELS_AUTO_DIGITS
Use this to specify that the number of digits to be shown on the axis labels behind the comma is to b...
Definition KDChartAxisParams.h:86
Header for all common chart parameters.
#define KDCHART_PROPSET_TRANSPARENT_DATA
Predefined (build-in) property ID.
Definition KDChartParams.h:92
#define KDCHART_PROPSET_NORMAL_DATA
Default (built-in) property ID, used for data cells without any special properties.
Definition KDChartParams.h:91
#define KDCHART_CNT_ORDINATES
Our charts may have up to 4 ordinate axes: 2 left ones and 2 right ones.
Definition KDChartParams.h:106
#define KDCHART_MAX_AXES
Charts have up to 12 axes: up to two axes on both sides for X, Y and Z (if data is 3-dimensional).
Definition KDChartParams.h:109
#define KDCHART_NEG_INFINITE
Use special value KDCHART_NEG_INFINITE to indicate negative infinite values.
Definition KDChartTableBase.h:70
#define KDCHART_POS_INFINITE
Use special value KDCHART_POS_INFINITE to indicate positive infinite values.
Definition KDChartTableBase.h:59
Definition of a single entry-point to the charting engine for applications that wish to provide their...
The collection class used by KD Chart to store data region information.
An abstract base class that defines an interface for classes that implement chart drawing.
Definition KDChartPainter.h:88
virtual void setupGeometry(TQPainter *painter, KDChartTableDataBase *data, const TQRect &rect)
This method will be called whenever any parameters that affect geometry have been changed.
Definition KDChartPainter.cpp:2156
virtual void paint(TQPainter *painter, KDChartTableDataBase *data, bool paintFirst, bool paintLast, KDChartDataRegionList *regions=0, const TQRect *rect=0, bool mustCalculateGeometry=true)
Paints the chart for which this chart painter is configured on a TQPainter.
Definition KDChartPainter.cpp:227
static KDChartPainter * create(KDChartParams *params, bool make2nd=false)
Creates an object of a concrete subclass of KDChartPainter that KDChart::paint() (and consequently,...
Definition KDChartPainter.cpp:145
ChartType chartType() const
Returns the chart type configured in this params object.
Definition KDChartParams.h:534
void setLegendPosition(LegendPosition position)
Specifies where the legend should be shown.
Definition KDChartParams.h:1859
void setHeader1Text(const TQString &text)
Specifies the text to be displayed as the first header line.
Definition KDChartParams.h:2308
void setDatasetGap(int gap)
Specifies the number of pixels between two dataset values.
Definition KDChartParams.h:961
int valueBlockGap() const
Returns the number of pixels between each value block.
Definition KDChartParams.h:991
ChartType additionalChartType() const
Returns the additional chart type configured in this params object.
Definition KDChartParams.h:544
bool optimizeOutputForScreen() const
Returns whether drawing is optimized for (low resolution) screen output (this is the default) or whet...
Definition KDChartParams.h:169
void setAxisLabelsVisible(uint n, bool axisLabelsVisible)
Specifies whether the axis labels of an axis are to be shown.
Definition KDChartParams.h:2116
void setPrintDataValues(bool active, uint chart=KDCHART_ALL_CHARTS, int divPow10=0, int digitsBehindComma=KDCHART_DATA_VALUE_AUTO_DIGITS, TQFont *font=0, uint size=UINT_MAX, const TQColor *color=KDCHART_DATA_VALUE_AUTO_COLOR, KDChartEnums::PositionFlag negativePosition=KDChartEnums::PosCenter, uint negativeAlign=TQt::AlignCenter, int negativeDeltaX=0, int negativeDeltaY=0, int negativeRotation=0, KDChartEnums::PositionFlag positivePosition=KDChartEnums::PosCenter, uint positiveAlign=TQt::AlignCenter, int positiveDeltaX=0, int positiveDeltaY=0, int positiveRotation=0, KDChartEnums::TextLayoutPolicy policy=KDChartEnums::LayoutPolicyRotate)
Specifies if and how a chart will print the data value texts near their respective entries.
Definition KDChartParams.cpp:1057
void setAxisShowGrid(uint n, bool axisShowGrid)
Specifies whether a grid should be drawn at the chart data area.
Definition KDChartParams.cpp:7090
void setOptimizeOutputForScreen(bool screenOutput)
Specify whether drawing should be optimized for (low resolution) screen output or whether other routi...
Definition KDChartParams.h:163
KD Chart's build-in table data for an easy way of storing data values.
Definition KDChartTableBase.h:88
virtual void setCell(uint _row, uint _col, const TQVariant &_value1, const TQVariant &_value2=TQVariant())=0
Stores data in a cell.
friend void cleanupPainter()
A global function that cleans up possible KDChartPainter objects at application shutdown.
Definition KDChart.cpp:375
static bool setupGeometry(TQPainter *painter, KDChartParams *params, KDChartTableDataBase *data, const TQRect &drawRect)
Calculates the axis and data area rects of a chart with the specified parameters on the specified pai...
Definition KDChart.cpp:156
static bool painterToDrawRect(TQPainter *painter, TQRect &drawRect)
Calculates the drawing area from a given TQPainter.
Definition KDChart.cpp:122
static void paint(TQPainter *, KDChartParams *, KDChartTableDataBase *, KDChartDataRegionList *regions=0, const TQRect *rect=0, bool mustCalculateGeometry=true)
Paints a chart with the specified parameters on the specified painter.
Definition KDChart.cpp:256
static void print(TQPainter *, KDChartParams *, KDChartTableDataBase *, KDChartDataRegionList *regions=0, const TQRect *rect=0, bool mustCalculateGeometry=true)
Paints a chart with the specified parameters on the specified painter which should use a TQPrinter as...
Definition KDChart.cpp:354
