kchart
KDChartAxisParams Class Reference
#include <KDChartAxisParams.h>
Detailed Description
access the chart axis parameters.To be used in combination with the axis access methods in class KDChartParams.
- See also:
- KDChartParams.h
Definition at line 131 of file KDChartAxisParams.h.
Public Types | |
enum | AxisType { AxisTypeUnknown, AxisTypeEAST, AxisTypeNORTH, AxisUP } |
enum | AxisPos { AxisPosSTART = 0, AxisPosBottom = 0, AxisPosSagittal = 0, AxisPosSaggital = 0, AxisPosLeft = 1, AxisPosCircular = 1, AxisPosLowerRightEdge = 2, AxisPosTop = 3, AxisPosRight = 4, AxisPosLowerLeftEdge = 5, AxisPosAdditionalsSTART = 6, AxisPosBottom2 = 6, AxisPosLeft2 = 7, AxisPosLowerRightEdge2 = 8, AxisPosTop2 = 9, AxisPosRight2 = 10, AxisPosLowerLeftEdge2 = 11, AxisPosEND = 11 } |
enum | AxisAreaMode { AxisAreaModeFixedSize, AxisAreaModeAutoSize, AxisAreaModeMinMaxSize } |
enum | AxisCalcMode { AxisCalcLinear, AxisCalcLogarithmic } |
enum | LabelsFromDataRow { LabelsFromDataRowYes, LabelsFromDataRowNo, LabelsFromDataRowGuess } |
enum | ValueScale { ValueScaleNumerical = 0, ValueScaleSecond = 20, ValueScaleMinute = 30, ValueScaleHour = 40, ValueScaleDay = 50, ValueScaleWeek = 60, ValueScaleMonth = 70, ValueScaleQuarter = 80, ValueScaleYear = 90 } |
Public Slots | |
void | setAxisType (AxisType axisType) |
AxisType | axisType () const |
static QString | axisTypeToString (AxisType type) |
static AxisType | stringToAxisType (const QString &type) |
static AxisPos | basicAxisPos (uint pos) |
void | setAxisVisible (bool axisVisible) |
bool | axisVisible () const |
void | setAxisAreaMode (AxisAreaMode axisAreaMode) |
AxisAreaMode | axisAreaMode () const |
static QString | axisAreaModeToString (AxisAreaMode mode) |
static AxisAreaMode | stringToAxisAreaMode (const QString &type) |
void | setAxisAreaMin (int axisAreaMin) |
int | axisAreaMin () const |
void | setAxisUseAvailableSpace (int axisUseAvailableSpaceFrom, int axisUseAvailableSpaceTo) |
int | axisUseAvailableSpaceFrom () const |
int | axisUseAvailableSpaceTo () const |
void | setAxisAreaMax (int axisAreaMax) |
int | axisAreaMax () const |
void | setAxisArea (AxisAreaMode axisAreaMode, int axisAreaMin, int axisAreaMax) |
void | setAxisCalcMode (AxisCalcMode axisCalcMode) |
AxisCalcMode | axisCalcMode () const |
static QString | axisCalcModeToString (AxisCalcMode mode) |
static AxisCalcMode | stringToAxisCalcMode (const QString &type) |
void | setIsometricReferenceAxis (uint isoRefAxis) |
uint | isometricReferenceAxis () const |
void | setAxisTrueAreaSize (int axisTrueAreaSize) |
int | axisTrueAreaSize () const |
void | setAxisTrueAreaRect (const QRect &axisTrueAreaRect) |
QRect | axisTrueAreaRect () const |
void | setAxisLineVisible (bool axisLineVisible) |
bool | axisLineVisible () const |
void | setAxisLineWidth (int axisLineWidth) |
int | axisLineWidth () const |
void | setAxisTrueLineWidth (int axisTrueLineWidth) |
int | axisTrueLineWidth () const |
void | setAxisLineColor (QColor axisLineColor) |
QColor | axisLineColor () const |
void | setAxisShowFractionalValuesDelimiters (bool axisShowFractValDelim) |
bool | axisShowFractionalValuesDelimiters () const |
void | setAxisShowGrid (bool axisShowGrid) |
bool | axisShowGrid () const |
void | setAxisGridStyle (PenStyle axisGridStyle) |
PenStyle | axisGridStyle () const |
void | setAxisGridColor (QColor axisGridColor) |
QColor | axisGridColor () const |
void | setAxisGridLineWidth (int axisGridLineWidth) |
int | axisGridLineWidth () const |
void | setAxisShowSubDelimiters (bool axisShowSubDelimiters) |
bool | axisShowSubDelimiters () const |
void | setAxisGridSubStyle (PenStyle axisGridSubStyle) |
PenStyle | axisGridSubStyle () const |
void | setAxisGridSubColor (QColor axisGridSubColor) |
QColor | axisGridSubColor () const |
void | setAxisGridSubLineWidth (int axisGridSubLineWidth) |
int | axisGridSubLineWidth () const |
void | setAxisZeroLineColor (QColor axisZeroLineColor) |
QColor | axisZeroLineColor () const |
void | setAxisLabelsVisible (bool axisLabelsVisible) |
bool | axisLabelsVisible () const |
void | setAxisLabelsTouchEdges (bool axisLabelsTouchEdges) |
bool | axisLabelsTouchEdges () const |
void | setAxisLabelsFont (QFont axisLabelsFont, bool useFontSize) |
QFont | axisLabelsFont () const |
void | setAxisLabelsFontUseRelSize (bool axisLabelsFontUseRelSize) |
bool | axisLabelsFontUseRelSize () const |
void | setAxisLabelsFontRelSize (int axisLabelsFontRelSize) |
int | axisLabelsFontRelSize () const |
void | setAxisLabelsFontMinSize (int axisLabelsFontMinSize) |
int | axisLabelsFontMinSize () const |
void | setAxisLabelsDontShrinkFont (bool labelsDontShrinkFont) |
bool | axisLabelsDontShrinkFont () const |
void | setAxisLabelsDontAutoRotate (bool labelsDontAutoRotate) |
bool | axisLabelsDontAutoRotate () const |
void | setAxisLabelsRotation (int rotation) |
int | axisLabelsRotation () const |
void | setAxisLabelsColor (QColor axisLabelsColor) |
QColor | axisLabelsColor () const |
void | setAxisLabelsCalc (int divPow10=0, int digitsBehindComma=KDCHART_AXIS_LABELS_AUTO_DIGITS) |
int | axisLabelsDivPow10 () const |
int | axisLabelsDigitsBehindComma () const |
void | setAxisLabelsRadix (const QString &decimalPoint, const QString &thousandsPoint) |
QString | axisLabelsDecimalPoint () const |
QString | axisLabelsThousandsPoint () const |
void | setAxisLabelsFormat (const QString &prefix="", const QString &postfix="", const int &totalLen=0, const QChar &padFill= ' ', const bool &blockAlign=true) |
QString | axisLabelsPrefix () const |
QString | axisLabelsPostfix () const |
int | axisLabelsTotalLen () const |
QChar | axisLabelsPadFill () const |
bool | axisLabelsBlockAlign () const |
static QString | labelsFromDataRowToString (LabelsFromDataRow mode) |
static LabelsFromDataRow | stringToLabelsFromDataRow (const QString &type) |
void | setAxisValues (bool axisSteadyValueCalc=true, const QVariant &axisValueStart=KDCHART_AXIS_LABELS_AUTO_LIMIT, const QVariant &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, QStringList *axisLabelStringList=0, QStringList *axisShortLabelsStringList=0, int axisValueLeaveOut=KDCHART_AXIS_LABELS_AUTO_LEAVEOUT, ValueScale axisValueDeltaScale=ValueScaleNumerical) |
void | setAxisValueStartIsExact (bool isExactValue=true) |
bool | axisValueStartIsExact () const |
void | setAxisValueStart (const QVariant &axisValueStart) |
QVariant | axisValueStart () const |
void | setAxisValueEnd (const QVariant &axisValueEnd) |
QVariant | axisValueEnd () const |
void | setAxisValueDelta (const double axisValueDelta, ValueScale scale=ValueScaleNumerical) |
double | axisValueDelta () const |
ValueScale | axisValueDeltaScale () const |
void | setAxisValueLeaveOut (const int leaveOut) |
int | axisValueLeaveOut () const |
void | setAxisValuesDecreasing (bool valuesDecreasing=true) |
bool | axisValuesDecreasing () const |
void | setTrueAxisDeltaPixels (double nDeltaPixels) |
double | trueAxisDeltaPixels () const |
void | setTrueAxisLowHighDelta (double nLow, double nHigh, double nDelta) |
double | trueAxisLow () const |
double | trueAxisHigh () const |
double | trueAxisDelta () const |
void | setTrueAxisDtLowHighDeltaScale (QDateTime dtLow, QDateTime dtHigh, ValueScale dtDeltaScale) |
void | setTrueAxisDtLow (QDateTime dtLow) |
void | setTrueAxisDtHigh (QDateTime dtHigh) |
void | setTrueAxisDtScale (ValueScale scale) |
QDateTime | trueAxisDtLow () const |
QDateTime | trueAxisDtHigh () const |
ValueScale | trueAxisDtDeltaScale () const |
void | setAxisZeroLineStart (double x, double y) |
double | axisZeroLineStartX () const |
double | axisZeroLineStartY () const |
void | setAxisDtLowPos (double x, double y) |
double | axisDtLowPosX () const |
double | axisDtLowPosY () const |
void | setAxisDtHighPos (double x, double y) |
double | axisDtHighPosX () const |
double | axisDtHighPosY () const |
void | setAxisDigitsBehindComma (const int digits) |
int | axisDigitsBehindComma () const |
void | setAxisLabelsDateTimeFormat (const QString &format) |
QString | axisLabelsDateTimeFormat () const |
void | setAxisMaxEmptyInnerSpan (const int maxEmpty) |
int | axisMaxEmptyInnerSpan () const |
void | setLabelTextsFormDataRow (int row, LabelsFromDataRow mode) |
LabelsFromDataRow | axisLabelTextsFormDataRow () const |
int | labelTextsDataRow () const |
void | setAxisLabelStringLists (QStringList *axisLabelStringList, QStringList *axisShortLabelStringList, const QString &valueStart=QString::null, const QString &valueEnd=QString::null) |
QStringList | axisLabelStringList () const |
uint | axisLabelStringCount () const |
QStringList | axisShortLabelsStringList () const |
uint | axisShortLabelsStringCount () const |
const QStringList * | axisLabelTexts () const |
void | setAxisLabelTexts (const QStringList *axisLabelTexts) |
void | setAxisLabelTextsDirty (bool axisLabelTextsDirty) |
bool | axisLabelTextsDirty () const |
void | setAxisFirstLabelText (const QString &axisFirstLabelText=QString()) |
void | setAxisLastLabelText (const QString &axisLastLabelText=QString()) |
QString | axisFirstLabelText () const |
QString | axisLastLabelText () const |
bool | hasAxisFirstLabelText () const |
bool | hasAxisLastLabelText () const |
void | setAxisSteadyValueCalc (bool axisSteadyValueCalc) |
bool | axisSteadyValueCalc () const |
Signals | |
void | changed () |
Public Member Functions | |
KDChartAxisParams () | |
virtual | ~KDChartAxisParams () |
KDChartAxisParams & | operator= (const KDChartAxisParams &R) |
Static Public Member Functions | |
static void | deepCopy (KDChartAxisParams &D, const KDChartAxisParams &R) |
Friends | |
class | KDChartParams |
QTextStream & | operator<< (QTextStream &s, const KDChartParams &p) |
QTextStream & | operator>> (QTextStream &s, KDChartParams &p) |
Constructor & Destructor Documentation
|
Constructor. Define default values:
Definition at line 133 of file KDChartAxisParams.cpp. |
|
Destructor. Only defined to have it virtual. Definition at line 223 of file KDChartAxisParams.cpp. |
Member Function Documentation
|
Returns the axis area maximum width (or height, resp. ).
Definition at line 215 of file KDChartAxisParams.h. |
|
Returns the axis area minimum width (or height, resp. ).
Definition at line 209 of file KDChartAxisParams.h. |
|
Returns the axis size mode configured in this params object.
Definition at line 467 of file KDChartAxisParams.cpp. |
|
Converts the specified axis area mode enum to a string representation.
Definition at line 478 of file KDChartAxisParams.cpp. |
|
Returns the axis calculation mode configured in this params object.
Definition at line 225 of file KDChartAxisParams.h. |
|
Converts the specified axis calc mode enum to a string representation.
Definition at line 725 of file KDChartAxisParams.cpp. |
|
Returns the number of digits to be printed behind the comma on the axis labels.
Definition at line 382 of file KDChartAxisParams.h. |
|
Returns the not-rounded x-position where drawing of this axis high date/time value could be done. This function needed when painting the data of isometric axes (bars, lines, dots...).
Definition at line 379 of file KDChartAxisParams.h. |
|
Returns the not-rounded y-position where drawing of this axis high date/time value could be done. This function needed when painting the data of isometric axes (bars, lines, dots...).
Definition at line 380 of file KDChartAxisParams.h. |
|
Returns the not-rounded x-position where drawing of this axis low date/time value could be done. This function needed when painting the data of isometric axes (bars, lines, dots...).
Definition at line 376 of file KDChartAxisParams.h. |
|
Returns the not-rounded y-position where drawing of this axis low date/time value could be done. This function needed when painting the data of isometric axes (bars, lines, dots...).
Definition at line 377 of file KDChartAxisParams.h. |
|
Returns the axis grid color.
Definition at line 250 of file KDChartAxisParams.h. |
|
Returns the width of the axis grid lines.
(see explanation given with
Definition at line 252 of file KDChartAxisParams.h. |
|
Returns the axis grid line pattern.
Definition at line 248 of file KDChartAxisParams.h. |
|
Returns the axis grid sub color.
Definition at line 259 of file KDChartAxisParams.h. |
|
Returns the axis grid sub line width.
Definition at line 261 of file KDChartAxisParams.h. |
|
Returns the axis grid line pattern for the thin lines showing the sub-delimiter values.
Definition at line 257 of file KDChartAxisParams.h. |
|
Returns the axis labels colour.
Definition at line 285 of file KDChartAxisParams.h. |
|
Returns the format to be used for displaying abscissa axis QDateTime item labels.
Definition at line 384 of file KDChartAxisParams.h. |
|
Returns whether the axis labels may not be rotated to avoid overwriting neighboring areas.
Definition at line 281 of file KDChartAxisParams.h. |
|
Specifies whether the axis labels' font size may be shrinked to avoid overwriting neighboring areas.
Definition at line 279 of file KDChartAxisParams.h. |
|
Returns the axis labels font.
Definition at line 271 of file KDChartAxisParams.h. |
|
Returns the axis labels relative font size.
Definition at line 275 of file KDChartAxisParams.h. |
|
Returns whether the fix axis font size is used.
Definition at line 273 of file KDChartAxisParams.h. |
|
Returns by how many degrees the axis labels will be rotated.
Definition at line 283 of file KDChartAxisParams.h. |
|
Returns whether the axis labels start and end at the edges of the charts instead being positioned in the middle of the first data point (or the last one, resp. )
Definition at line 269 of file KDChartAxisParams.h. |
|
Returns the number of strings stored as label texts, the texts can be retrieved by calling
Definition at line 395 of file KDChartAxisParams.h. |
|
Returns a
Calling
Definition at line 394 of file KDChartAxisParams.h. |
|
Returns whether the axis labels should be drawn.
Definition at line 267 of file KDChartAxisParams.h. |
|
Returns whether the label texts that are actually drawn at the axis labels are unknown.
If
Definition at line 401 of file KDChartAxisParams.h. |
|
Returns the axis line colour.
Definition at line 241 of file KDChartAxisParams.h. |
|
Returns whether the axis line should be drawn.
Definition at line 235 of file KDChartAxisParams.h. |
|
Returns the axis line width.
Definition at line 237 of file KDChartAxisParams.h. |
|
Returns the percentage of the y-axis range that may to contain NO data entries, if - and only if - axisValueStart (or axisValueEnd, resp. ) is set to KDCHART_AXIS_LABELS_AUTO_LIMIT.
Definition at line 386 of file KDChartAxisParams.h. |
|
Returns a
Calling
Definition at line 396 of file KDChartAxisParams.h. |
|
Returns whether a grid should be drawn at the chart data area.
Definition at line 246 of file KDChartAxisParams.h. |
|
Returns whether the axis sub-delimiters will be drawn.
Definition at line 255 of file KDChartAxisParams.h. |
|
Returns whether label values shall be calculataed based upon the associated dataset values (normally this is true for ordinate axes) or based upon some string list (as you might expect it for abscissa labels).
Definition at line 409 of file KDChartAxisParams.h. |
|
Returns the true axis area rectangle as calculated and drawn.
Definition at line 233 of file KDChartAxisParams.h. |
|
Returns the true axis area width (or height, resp. ) as calculated and drawn.
Definition at line 231 of file KDChartAxisParams.h. |
|
Returns the axis true line width, as calculated and drawn.
Definition at line 239 of file KDChartAxisParams.h. |
|
Definition at line 155 of file KDChartAxisParams.h. |
|
Converts the specified axis type enum to a string representation.
Definition at line 2852 of file KDChartAxisParams.cpp. |
|
Returns the beginning offset of the space used by this axis in comparison to the available space that could be used by this axis.
Definition at line 212 of file KDChartAxisParams.h. |
|
Returns the ending offset of the space used by this axis in comparison to the available space that could be used by this axis.
Definition at line 213 of file KDChartAxisParams.h. |
|
Returns the DELTA value for the axis labels: the distance between two labels.
Definition at line 349 of file KDChartAxisParams.h. |
|
Returns the DELTA value scaling mode for the axis labels.
Definition at line 350 of file KDChartAxisParams.h. |
|
Returns the upper limit for the axis labels: the end value.
Definition at line 346 of file KDChartAxisParams.h. |
|
Returns how many axis labels are to be skipped if there is not enough space for displaying all of them.
Definition at line 352 of file KDChartAxisParams.h. |
|
Returns whether axis values should be printed in reverted order: starting with the highest label and decreasing until the lowest label is reached.
Definition at line 357 of file KDChartAxisParams.h. |
|
Returns the lower limit for the axis labels: the start value.
Definition at line 344 of file KDChartAxisParams.h. |
|
Returns weither the axis will be drawn or not.
Definition at line 416 of file KDChartAxisParams.cpp. |
|
Returns the colour used for the zero-value line that is drawn if zero is not at the lower edge of the chart.
Definition at line 264 of file KDChartAxisParams.h. |
|
Returns the not-rounded x-position where drawing of this axis zero line started. This function needed when painting the data of isometric axes (bars, lines, dots...).
Definition at line 373 of file KDChartAxisParams.h. |
|
Returns the not-rounded y-position where drawing of this axis zero line started. This function needed when painting the data of isometric axes (bars, lines, dots...).
Definition at line 374 of file KDChartAxisParams.h. |
|
The basic axis type.
Definition at line 357 of file KDChartAxisParams.cpp. |
|
|
|
Returns which axis this axis shall be isometric with, this will be either the axis position - see KDChartAxisParams::AxisPos - or one of the special values KDCHART_ALL_AXES and KDCHART_NO_AXIS.
Definition at line 229 of file KDChartAxisParams.h. |
|
Converts the specified labels from data row enum to a string representation.
Definition at line 1553 of file KDChartAxisParams.cpp. |
|
Returns the number of the data row that contains (or might contain, resp.
) the texts to be taken for the axis labels.
Use
Use
Definition at line 389 of file KDChartAxisParams.h. |
|
Assignment operator: By calling the copy method, see also the copy constructor.
Definition at line 2753 of file KDChartAxisParams.cpp. |
|
Specifies the axis area size mode and the minimum and maximum width (or height, resp.
) of the area. This method is here for convenience, see Note: Is AxisAreaModeFixedSize is set the smaller value of axisAreaMax and axisAreaMin is used for the area size.
Definition at line 649 of file KDChartAxisParams.cpp. |
|
Specifies the axis area maximum width (or height, resp. ).
Definition at line 620 of file KDChartAxisParams.cpp. |
|
Specifies the axis area minimum width (or height, resp. ).
Definition at line 524 of file KDChartAxisParams.cpp. |
|
Specifies the axis size mode. The default is auto size (AxisAreaModeAutoSize).
Definition at line 452 of file KDChartAxisParams.cpp. |
|
Specifies the axis calculation mode. The default is linear calculation (AxisCalcLinear).
if( AxisCalcLogarithmic == axisCalcMode ) setAxisValues( true, KDCHART_AXIS_LABELS_AUTO_LIMIT, KDCHART_AXIS_LABELS_AUTO_LIMIT, 1.0, KDCHART_AXIS_LABELS_AUTO_DIGITS ); You may override these setting by making an extra setAxisValues() call AFTER calling setAxisCalcMode( AxisCalcLogarithmic ).
Definition at line 699 of file KDChartAxisParams.cpp. |
|
Specifies the number of digits to be printed behind the comma on the axis labels.
Definition at line 381 of file KDChartAxisParams.h. |
|
Specifies the not-rounded screen positions where drawing of this axis high date/time value could be done.
Definition at line 2262 of file KDChartAxisParams.cpp. |
|
Specifies the not-rounded screen positions where drawing of this axis low date/time value could be done.
Definition at line 2219 of file KDChartAxisParams.cpp. |
|
Sets a special text that is to be displayed _instead_of_ the first axis label IF the parameter is not a NULL string.
Definition at line 2688 of file KDChartAxisParams.cpp. |
|
Specifies the axis grid colour.
To reset the color to the built-in default value please call
Definition at line 1038 of file KDChartAxisParams.cpp. |
|
Specifies the width of the axis grid lines.
Definition at line 1105 of file KDChartAxisParams.cpp. |
|
Specifies the axis grid line pattern.
Definition at line 1153 of file KDChartAxisParams.cpp. |
|
Specifies the colour to be used for the thin lines between the normal axis grid lines.
To reset the color to the built-in default value please call
Definition at line 1063 of file KDChartAxisParams.cpp. |
|
Specifies the width of the thin lines between the normal axis grid lines. You may use setAxisGridSubLineWidth( KDCHART_AXIS_GRID_AUTO_LINEWIDTH ) to reset the value to its default: being automatically adjusted to the width of the axis line.
Definition at line 1131 of file KDChartAxisParams.cpp. |
|
Specifies the axis grid line pattern for the thin lines showing the sub-delimiter values.
Definition at line 1177 of file KDChartAxisParams.cpp. |
|
Specifies the calculations to be applied to the axis labels.
Definition at line 1461 of file KDChartAxisParams.cpp. |
|
Specifies the axis labels colour.
Definition at line 1436 of file KDChartAxisParams.cpp. |
|
Specifies the format to be used for displaying abscissa axis QDateTime item labels.
KDCHART_AXIS_LABELS_AUTO_DATETIME_FORMAT - this is the default setting.See Qt documentation on the format to be used here: $QTDIR/doc/html/qdatetime.html::toString-2
Definition at line 383 of file KDChartAxisParams.h. |
|
Specifies whether the axis labels may be rotated to avoid overwriting neighboring areas.
Definition at line 280 of file KDChartAxisParams.h. |
|
Specifies the axis labels font.
Definition at line 1298 of file KDChartAxisParams.cpp. |
|
Specifies the minimal font size to be used for displaying the axis labels. Use this to specify the minimal font size to be used for axis labels, in case KD Chart is calculating the axis labels fonts dynamically. Default value is 10 points.
Definition at line 276 of file KDChartAxisParams.h. |
|
Specifies the axis labels relative font size.
Definition at line 1353 of file KDChartAxisParams.cpp. |
|
Specifies whether axis labels shall be drawn using relative font size.
Definition at line 1327 of file KDChartAxisParams.cpp. |
|
Specifies the way how the axis label strings will be formatted. Will be ignored for non-numerical axis labels.
Definition at line 1511 of file KDChartAxisParams.cpp. |
|
Specifies the way how the axis label strings will be formatted. Will be ignored for non-numerical axis labels.
Definition at line 1481 of file KDChartAxisParams.cpp. |
|
Specifies by how many degrees the axis labels shall be rotated.
Definition at line 282 of file KDChartAxisParams.h. |
|
Specifies whether the axis labels start and end at the edges of the charts instead being positioned in the middle of the first data point (or the last one, resp. )
Definition at line 1265 of file KDChartAxisParams.cpp. |
|
Specifies a
QStringList abscissaNames; abscissaNames << "Sunday" << "Monday" << "Tuesday" << "Wednesday" << "Thursday" << "Friday" << "Saturday"; QStringList abscissaShortNames; abscissaShortNames << "Sun" << "Mon" << "Tue" << "Wed" << "Thu" << "Fri" << "Sat"; KDChartAxisParams pa( _p->axisParams( KDChartAxisParams::AxisPosBottom ) ); setAxisLabelStringParams( &abscissaNames, &abscissaShortNames, "Monday", "Friday") _p->setAxisParams( KDChartAxisParams::AxisPosBottom, pa );
Definition at line 2481 of file KDChartAxisParams.cpp. |
|
Specifies whether the axis labels should be drawn.
Definition at line 1225 of file KDChartAxisParams.cpp. |
|
Specifies the label texts that are actually drawn at the axis labels.
Definition at line 2624 of file KDChartAxisParams.cpp. |
|
Sets a special text that is to be displayed _instead_of_ the last axis label IF the parameter is not a NULL string.
Definition at line 2715 of file KDChartAxisParams.cpp. |
|
Specifies the axis line colour.
Definition at line 983 of file KDChartAxisParams.cpp. |
|
Specifies whether the axis line should be drawn.
Definition at line 915 of file KDChartAxisParams.cpp. |
|
Specifies the axis line width.
Definition at line 940 of file KDChartAxisParams.cpp. |
|
Specifies the percentage of the y-axis range that may to contain NO data entries, if - and only if - axisValueStart (or axisValueEnd, resp. ) is set to KDCHART_AXIS_LABELS_AUTO_LIMIT.
Definition at line 385 of file KDChartAxisParams.h. |
|
Specifies whether the delimiters should be drawn at the position for the fractional values.
Definition at line 894 of file KDChartAxisParams.cpp. |
|
Specifies whether a grid should be drawn at the chart data area. By default the grid will be drawn based on the left ordinate axis and on the bottom abscissa axis.
The grid will show a solid line for each delimiter. (or a line with a pattern defined by
Definition at line 1013 of file KDChartAxisParams.cpp. |
|
Specifies whether the axis sub-delimiters should be drawn.
Definition at line 875 of file KDChartAxisParams.cpp. |
|
Specifies whether label values shall be calculated based upon the associated dataset values (normally this is true for ordinate axes) or based upon some string list (as you might expect it for abscissa labels).
Definition at line 408 of file KDChartAxisParams.h. |
|
Specifies the true axis area rectangle.
Definition at line 232 of file KDChartAxisParams.h. |
|
Specifies the true axis area width (or height, resp. ).
Definition at line 230 of file KDChartAxisParams.h. |
|
Specifies the actual axis line width, as calculated and drawn.
Definition at line 238 of file KDChartAxisParams.h. |
|
Specifies the axis type. The default is unknown (AxisTypeUnknown).
Definition at line 239 of file KDChartAxisParams.cpp. |
|
Specifies how the axis will make use of the available space. Use this function to specify how large the area of the axis will be and where it will be positioned.
See also the examples given with
Definition at line 577 of file KDChartAxisParams.cpp. |
|
Specifies the DELTA value for the axis labels: the distance between two labels.
Definition at line 1981 of file KDChartAxisParams.cpp. |
|
Specifies how many axis labels are to be skipped if there is not enough space for displaying all of them. This is usefull in case you have lots of entries in one dataset.
Definition at line 351 of file KDChartAxisParams.h. |
|
General axis texts setup routine.
To specify the start value and the way the label values are calculated you may
Examples:
setAxisValues();
setAxisValues( true, KDChartData( 0.0 ) );
setAxisValues( true, KDChartData( -2.0 ), KDChartData( 7.5 ), 0.5, 1 );
setAxisValues( false, KDChartData( 0.0 ), KDChartData( 3.5), 0.25, 2 );
setAxisValues( false, KDChartData( 1964.0 ), KDCHART_AXIS_LABELS_AUTO_LIMIT, 1, 0 );
KDChartParams p; KDChartAxisParams pa( p.axisParams( KDChartAxisParams::AxisPosBottom ) ); QStringList abscissaNames; abscissaNames << "Sunday" << "Monday" << "Tuesday" << "Wednesday" << "Thursday" << "Friday" << "Saturday"; QStringList abscissaShortNames; abscissaShortNames << "Sun" << "Mon" << "Tue" << "Wed" << "Thu" << "Fri" << "Sat"; pa.setAxisValues( false, KDChartData( "Monday" ), KDCHART_AXIS_LABELS_AUTO_LIMIT, KDCHART_AXIS_LABELS_AUTO_DELTA, KDCHART_AXIS_LABELS_AUTO_DIGITS, KDChartAxisParams::LabelsFromDataRowNo, 0, &abscissaNames, &abscissaShortNames ); p.setAxisParams( KDChartAxisParams::AxisPosBottom, pa ); LabelsFromDataRowNo indicating that the texts are not to be taken from a data row and note &abscissaNames indicating the QStringList where to take the texts from instead. (In case the axis area is not wide enough to display the strings in their full length their counterparts stored in abscissaShortNames will be displayed instead.) Note also: The strings in those two QStringList are not copied into the KDChartAxisParams nor into the KDChartParams so please make sure the Lists are alive and valid till the end of the param objects. Otherwise you will not be able to display the texts.
Definition at line 1829 of file KDChartAxisParams.cpp. |
|
Specifies whether axis values should be printed in reverted order: starting with the highest label and decreasing until the lowest label is reached.
Definition at line 353 of file KDChartAxisParams.h. |
|
Specifies if the axis will be drawn. The default is false.
Definition at line 404 of file KDChartAxisParams.cpp. |
|
Specifies the colour of the zero-line that is drawn if zero is not at the lower edge of the chart.
Definition at line 1202 of file KDChartAxisParams.cpp. |
|
Specifies the not-rounded screen positions where drawing of this axis zero line started.
Definition at line 2177 of file KDChartAxisParams.cpp. |
|
Specifies another axis which this axis shall be isometric with.
For example to have the left axis using the same scale as the right axis you could invoke this:
KDChartAxisParams pa( _p->axisParams( KDChartAxisParams::AxisPosLeft ) ); pa.setIsometricReferenceAxis( KDChartAxisParams::AxisPosBottom ); _p->setAxisParams( KDChartAxisParams::AxisPosLeft, pa ); These commands are equivalent to the following ones:
KDChartAxisParams pa( _p->axisParams( KDChartAxisParams::AxisPosBottom ) ); pa.setIsometricReferenceAxis( KDChartAxisParams::AxisPosLeft ); _p->setAxisParams( KDChartAxisParams::AxisPosBottom, pa ); In any case both axes will use the same scale so - unless you are using more axes than these two ones - the resulting chart will be true to scale.
Definition at line 794 of file KDChartAxisParams.cpp. |
|
Specifies whether the axis labels are stored in a data row.
If
Definition at line 2393 of file KDChartAxisParams.cpp. |
|
Specifies the true axis pixel distance between two label delimiters.
Definition at line 358 of file KDChartAxisParams.h. |
|
Specifies the true axis lower and upper limit values of the axis and the exact Delta value between the axis delimiters.
Definition at line 2085 of file KDChartAxisParams.cpp. |
|
Converts the specified string to an axis area mode enum value.
Definition at line 498 of file KDChartAxisParams.cpp. |
|
Converts the specified string to an axis calc mode enum value.
Definition at line 743 of file KDChartAxisParams.cpp. |
|
Converts the specified string to an axis type enum value.
Definition at line 2874 of file KDChartAxisParams.cpp. |
|
Converts the specified string to a data row enum value.
Definition at line 1573 of file KDChartAxisParams.cpp. |
|
Returns the true delta value of the ordinate axis labels as is was calculated and set by
Definition at line 363 of file KDChartAxisParams.h. |
|
Returns the true delimiter delta pixel value of the axis labels as is was calculated and set by
Definition at line 359 of file KDChartAxisParams.h. |
|
Returns the true end value of the ordinate axis labels as is was calculated and set by
Definition at line 362 of file KDChartAxisParams.h. |
|
Returns the true start value of the ordinate axis labels as is was calculated and set by
Definition at line 361 of file KDChartAxisParams.h. |
The documentation for this class was generated from the following files: