KDChartAxisParams.cpp
499KDChartAxisParams::AxisAreaMode KDChartAxisParams::stringToAxisAreaMode( const TQString& type ) {
744KDChartAxisParams::AxisCalcMode KDChartAxisParams::stringToAxisCalcMode( const TQString& type ) {
1597KDChartAxisParams::LabelsFromDataRow KDChartAxisParams::stringToLabelsFromDataRow( const TQString& type ) {
Provide access to the chart axis parameters.
#define KDCHART_AXIS_LABELS_AUTO_LIMIT
Use this to specify that the axis label limits are to be calculated automatically.
Definition KDChartAxisParams.h:52
#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
static AxisType stringToAxisType(const TQString &type)
Converts the specified string to an axis type enum value.
Definition KDChartAxisParams.cpp:2899
TQStringList axisShortLabelsStringList() const
Returns a TQStringList containing the label texts to be used in case the axis area size is too small ...
Definition KDChartAxisParams.h:402
void setAxisLabelsCalc(int divPow10=0, int digitsBehindComma=KDCHART_AXIS_LABELS_AUTO_DIGITS)
Specifies the calculations to be applied to the axis labels.
Definition KDChartAxisParams.cpp:1464
TQt::PenStyle axisGridStyle() const
Returns the axis grid line pattern.
Definition KDChartAxisParams.h:250
void setAxisLabelStringLists(TQStringList *axisLabelStringList, TQStringList *axisShortLabelStringList, const TQString &valueStart=TQString(), const TQString &valueEnd=TQString())
Specifies a TQStringList which the axis label texts are to be taken from, the second parameter (if no...
Definition KDChartAxisParams.cpp:2505
void setAxisDtLowPos(double x, double y)
Specifies the not-rounded screen positions where drawing of this axis low date/time value could be do...
Definition KDChartAxisParams.cpp:2243
void setAxisGridLineWidth(int axisGridLineWidth)
Specifies the width of the axis grid lines.
Definition KDChartAxisParams.cpp:1106
void setAxisShowSubDelimiters(bool axisShowSubDelimiters)
Specifies whether the axis sub-delimiters should be drawn.
Definition KDChartAxisParams.cpp:876
void setAxisShowFractionalValuesDelimiters(bool axisShowFractValDelim)
Specifies whether the delimiters should be drawn at the position for the fractional values.
Definition KDChartAxisParams.cpp:895
static TQString axisTypeToString(AxisType type)
Converts the specified axis type enum to a string representation.
Definition KDChartAxisParams.cpp:2877
int axisAreaMax() const
Returns the axis area maximum width (or height, resp.).
Definition KDChartAxisParams.h:217
void changed()
Signals: This signal is emitted when any of the chart axis parameters have changed.
void setAxisLineColor(TQColor axisLineColor)
Specifies the axis line colour.
Definition KDChartAxisParams.cpp:984
void setAxisCalcMode(AxisCalcMode axisCalcMode)
enum AxisCalcMode { AxisCalcLinear, AxisCalcLogarithmic }; The axis calculation mode.
Definition KDChartAxisParams.cpp:700
void setAxisLabelsFormat(const TQString &prefix="", const TQString &postfix="", const int &totalLen=0, const TQChar &padFill=' ', const bool &blockAlign=true)
Specifies the way how the axis label strings will be formatted.
Definition KDChartAxisParams.cpp:1535
void setAxisLabelsFont(TQFont axisLabelsFont, bool useFontSize)
Specifies the axis labels font.
Definition KDChartAxisParams.cpp:1299
AxisAreaMode axisAreaMode() const
Returns the axis size mode configured in this params object.
Definition KDChartAxisParams.cpp:468
void setAxisLineVisible(bool axisLineVisible)
Specifies whether the axis line should be drawn.
Definition KDChartAxisParams.cpp:916
static AxisPos basicAxisPos(uint pos)
enum KDChartAxisParams::AxisPos { AxisPosSTART = 0,
Definition KDChartAxisParams.cpp:358
TQt::PenStyle axisGridSubStyle() const
Returns the axis grid line pattern for the thin lines showing the sub-delimiter values.
Definition KDChartAxisParams.h:259
void setAxisZeroLineColor(TQColor axisZeroLineColor)
Specifies the colour of the zero-line that is drawn if zero is not at the lower edge of the chart.
Definition KDChartAxisParams.cpp:1203
int axisGridLineWidth() const
Returns the width of the axis grid lines.
Definition KDChartAxisParams.h:254
void setAxisFirstLabelText(const TQString &axisFirstLabelText=TQString())
Sets a special text that is to be displayed instead_of the first axis label IF the parameter is not a...
Definition KDChartAxisParams.cpp:2712
void setAxisGridSubLineWidth(int axisGridSubLineWidth)
Specifies the width of the thin lines between the normal axis grid lines.
Definition KDChartAxisParams.cpp:1132
static TQString labelsFromDataRowToString(LabelsFromDataRow mode)
enum LabelsFromDataRow { LabelsFromDataRowYes, LabelsFromDataRowNo, LabelsFromDataRowGuess };
Definition KDChartAxisParams.cpp:1577
void setAxisGridColor(TQColor axisGridColor)
Specifies the axis grid colour.
Definition KDChartAxisParams.cpp:1039
void setTrueAxisDeltaPixels(double nDeltaPixels)
Specifies the true axis pixel distance between two label delimiters.
Definition KDChartAxisParams.h:364
void setAxisLabelTexts(const TQStringList *axisLabelTexts)
Specifies the label texts that are actually drawn at the axis labels.
Definition KDChartAxisParams.cpp:2648
void setAxisLabelsTouchEdges(bool axisLabelsTouchEdges)
Specifies whether the axis labels start and end at the edges of the charts instead being positioned i...
Definition KDChartAxisParams.cpp:1266
bool axisShowSubDelimiters() const
Returns whether the axis sub-delimiters will be drawn.
Definition KDChartAxisParams.h:257
TQVariant axisValueStart() const
Returns the lower limit for the axis labels: the start value.
Definition KDChartAxisParams.h:350
void setAxisLineWidth(int axisLineWidth)
Specifies the axis line width.
Definition KDChartAxisParams.cpp:941
void setAxisDtHighPos(double x, double y)
Specifies the not-rounded screen positions where drawing of this axis high date/time value could be d...
Definition KDChartAxisParams.cpp:2286
void setAxisLabelsVisible(bool axisLabelsVisible)
Specifies whether the axis labels should be drawn.
Definition KDChartAxisParams.cpp:1226
int axisMaxEmptyInnerSpan() const
Returns the percentage of the y-axis range that may to contain NO data entries, if - and only if - ax...
Definition KDChartAxisParams.h:392
void setAxisVisible(bool axisVisible)
Specifies if the axis will be drawn.
Definition KDChartAxisParams.cpp:405
static LabelsFromDataRow stringToLabelsFromDataRow(const TQString &type)
Converts the specified string to a data row enum value.
Definition KDChartAxisParams.cpp:1597
double axisValueDelta() const
Returns the DELTA value for the axis labels: the distance between two labels.
Definition KDChartAxisParams.h:355
KDChartAxisParams & operator=(const KDChartAxisParams &R)
Assignment operator: By calling the copy method, see also the copy constructor.
Definition KDChartAxisParams.cpp:2777
KDChartAxisParams()
enum KDChartAxisParams::Axistype { AxisTypeUnknown, AxisTypeEAST, AxisTypeNORTH, AxisUP };
Definition KDChartAxisParams.cpp:133
int axisLabelsFontRelSize() const
Returns the axis labels relative font size.
Definition KDChartAxisParams.h:277
bool axisLabelsFontUseRelSize() const
Returns whether the fix axis font size is used.
Definition KDChartAxisParams.h:275
int labelTextsDataRow() const
Returns the number of the data row that contains (or might contain, resp.) the texts to be taken for ...
Definition KDChartAxisParams.h:395
void setAxisUseAvailableSpace(int axisUseAvailableSpaceFrom, int axisUseAvailableSpaceTo)
Specifies how the axis will make use of the available space.
Definition KDChartAxisParams.cpp:578
void setLabelTextsFormDataRow(int row, LabelsFromDataRow mode)
Specifies whether the axis labels are stored in a data row.
Definition KDChartAxisParams.cpp:2417
static TQString axisAreaModeToString(AxisAreaMode mode)
Converts the specified axis area mode enum to a string representation.
Definition KDChartAxisParams.cpp:479
void setAxisAreaMin(int axisAreaMin)
Specifies the axis area minimum width (or height, resp.).
Definition KDChartAxisParams.cpp:525
bool axisShowGrid() const
Returns whether a grid should be drawn at the chart data area.
Definition KDChartAxisParams.h:248
void setAxisValueDelta(const double axisValueDelta, ValueScale scale=ValueScaleNumerical)
Specifies the DELTA value for the axis labels: the distance between two labels.
Definition KDChartAxisParams.cpp:2005
int axisGridSubLineWidth() const
Returns the axis grid sub line width.
Definition KDChartAxisParams.h:263
int axisDigitsBehindComma() const
Returns the number of digits to be printed behind the comma on the axis labels.
Definition KDChartAxisParams.h:388
void setAxisLastLabelText(const TQString &axisLastLabelText=TQString())
Sets a special text that is to be displayed instead_of the last axis label IF the parameter is not a ...
Definition KDChartAxisParams.cpp:2739
void setAxisArea(AxisAreaMode axisAreaMode, int axisAreaMin, int axisAreaMax)
Specifies the axis area size mode and the minimum and maximum width (or height, resp....
Definition KDChartAxisParams.cpp:650
bool axisSteadyValueCalc() const
Returns whether label values shall be calculataed based upon the associated dataset values (normally ...
Definition KDChartAxisParams.h:415
void setAxisGridStyle(TQt::PenStyle axisGridStyle)
Specifies the axis grid line pattern.
Definition KDChartAxisParams.cpp:1154
static AxisAreaMode stringToAxisAreaMode(const TQString &type)
Converts the specified string to an axis area mode enum value.
Definition KDChartAxisParams.cpp:499
void setAxisLabelsFontRelSize(int axisLabelsFontRelSize)
Specifies the axis labels relative font size.
Definition KDChartAxisParams.cpp:1354
void setAxisShowGrid(bool axisShowGrid)
Specifies whether a grid should be drawn at the chart data area.
Definition KDChartAxisParams.cpp:1014
int axisUseAvailableSpaceFrom() const
Returns the beginning offset of the space used by this axis in comparison to the available space that...
Definition KDChartAxisParams.h:214
bool axisVisible() const
Returns weither the axis will be drawn or not.
Definition KDChartAxisParams.cpp:417
void setAxisLabelsFontUseRelSize(bool axisLabelsFontUseRelSize)
Specifies whether axis labels shall be drawn using relative font size.
Definition KDChartAxisParams.cpp:1328
TQStringList axisLabelStringList() const
Returns a TQStringList containing the label texts to be used.
Definition KDChartAxisParams.h:400
AxisCalcMode axisCalcMode() const
Returns the axis calculation mode configured in this params object.
Definition KDChartAxisParams.h:227
void setAxisGridSubColor(TQColor axisGridSubColor)
Specifies the colour to be used for the thin lines between the normal axis grid lines.
Definition KDChartAxisParams.cpp:1064
void setAxisLabelsColor(TQColor axisLabelsColor)
Specifies the axis labels colour.
Definition KDChartAxisParams.cpp:1437
ValueScale axisValueDeltaScale() const
Returns the DELTA value scaling mode for the axis labels.
Definition KDChartAxisParams.h:356
void setAxisAreaMax(int axisAreaMax)
Specifies the axis area maximum width (or height, resp.).
Definition KDChartAxisParams.cpp:621
void setAxisGridSubStyle(TQt::PenStyle axisGridSubStyle)
Specifies the axis grid line pattern for the thin lines showing the sub-delimiter values.
Definition KDChartAxisParams.cpp:1178
static AxisCalcMode stringToAxisCalcMode(const TQString &type)
Converts the specified string to an axis calc mode enum value.
Definition KDChartAxisParams.cpp:744
int axisUseAvailableSpaceTo() const
Returns the ending offset of the space used by this axis in comparison to the available space that co...
Definition KDChartAxisParams.h:215
void setTrueAxisLowHighDelta(double nLow, double nHigh, double nDelta)
Specifies the true axis lower and upper limit values of the axis and the exact Delta value between th...
Definition KDChartAxisParams.cpp:2109
int axisAreaMin() const
Returns the axis area minimum width (or height, resp.).
Definition KDChartAxisParams.h:211
void setIsometricReferenceAxis(uint isoRefAxis)
Specifies another axis which this axis shall be isometric with.
Definition KDChartAxisParams.cpp:795
void setAxisAreaMode(AxisAreaMode axisAreaMode)
enum AxisAreaMode { AxisAreaModeFixedSize, AxisAreaModeAutoSize, AxisAreaModeMinMaxSize };
Definition KDChartAxisParams.cpp:453
int axisValueLeaveOut() const
Returns how many axis labels are to be skipped if there is not enough space for displaying all of the...
Definition KDChartAxisParams.h:358
TQVariant axisValueEnd() const
Returns the upper limit for the axis labels: the end value.
Definition KDChartAxisParams.h:352
static TQString axisCalcModeToString(AxisCalcMode mode)
Converts the specified axis calc mode enum to a string representation.
Definition KDChartAxisParams.cpp:726
bool axisLabelsVisible() const
Returns whether the axis labels should be drawn.
Definition KDChartAxisParams.h:269
void setAxisValues(bool axisSteadyValueCalc=true, const TQVariant &axisValueStart=KDCHART_AXIS_LABELS_AUTO_LIMIT, const TQVariant &axisValueEnd=KDCHART_AXIS_LABELS_AUTO_LIMIT, double axisValueDelta=KDCHART_AXIS_LABELS_AUTO_DELTA, int axisDigitsBehindComma=KDCHART_AXIS_LABELS_AUTO_DIGITS, int axisMaxEmptyInnerSpan=KDCHART_DONT_CHANGE_EMPTY_INNER_SPAN_NOW, LabelsFromDataRow takeLabelsFromDataRow=LabelsFromDataRowNo, int labelTextsDataRow=0, TQStringList *axisLabelStringList=0, TQStringList *axisShortLabelsStringList=0, int axisValueLeaveOut=KDCHART_AXIS_LABELS_AUTO_LEAVEOUT, ValueScale axisValueDeltaScale=ValueScaleNumerical)
enum ValueScale { ValueScaleNumerical = 0, ( have gaps here to allow specifying of additional scaling...
Definition KDChartAxisParams.cpp:1853
TQColor axisZeroLineColor() const
Returns the colour used for the zero-value line that is drawn if zero is not at the lower edge of the...
Definition KDChartAxisParams.h:266
bool axisLineVisible() const
Returns whether the axis line should be drawn.
Definition KDChartAxisParams.h:237
void setAxisLabelsRadix(const TQString &decimalPoint, const TQString &thousandsPoint)
Specifies the way how the axis label strings will be formatted.
Definition KDChartAxisParams.cpp:1485
void setAxisLabelsNotation(KDChartEnums::NumberNotation notation)
Specifies the way how the number part of the axis label strings will be formatted.
Definition KDChartAxisParams.cpp:1506
void setAxisZeroLineStart(double x, double y)
Specifies the not-rounded screen positions where drawing of this axis zero line started.
Definition KDChartAxisParams.cpp:2201
bool axisLabelsTouchEdges() const
Returns whether the axis labels start and end at the edges of the charts instead being positioned in ...
Definition KDChartAxisParams.h:271
NumberNotation
Number notation specifies the general way, how a number is to be shown.
Definition KDChartEnums.h:108
