KDChartAxisParams.h
Go to the documentation of this file.
153public slots: // PENDING(blackie) Go through this file and reorder, so all slots are in one section
234 void setAxisTrueAreaRect( const TQRect& axisTrueAreaRect ) { _axisTrueAreaRect = axisTrueAreaRect; }
278 void setAxisLabelsFontMinSize( int axisLabelsFontMinSize ) { _axisLabelsFontMinSize = axisLabelsFontMinSize; }
280 void setAxisLabelsDontShrinkFont( bool labelsDontShrinkFont ) { _axisLabelsDontShrinkFont = labelsDontShrinkFont; }
282 void setAxisLabelsDontAutoRotate( bool labelsDontAutoRotate ) { _axisLabelsDontAutoRotate = labelsDontAutoRotate; }
322 enum ValueScale { ValueScaleNumerical = 0, // have gaps here to allow specifying of additional scaling steps in between
347 void setAxisValueStartIsExact( bool isExactValue=true ) { _axisValueStartIsExact = isExactValue; }
389 void setAxisLabelsDateTimeFormat( const TQString& format ) { _axisLabelsDateTimeFormat = format; }
404 const TQStringList* axisLabelTexts() const { return _axisLabelTextsDirty ? 0 : &_axisLabelTexts; }
406 void setAxisLabelTextsDirty( bool axisLabelTextsDirty ) { _axisLabelTextsDirty = axisLabelTextsDirty; }
414 void setAxisSteadyValueCalc( bool axisSteadyValueCalc ) { _axisSteadyValueCalc = axisSteadyValueCalc; }
#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_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_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_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
Definition of global enums.
TQTextStream & operator>>(TQTextStream &s, KDChartParams &p)
Reads the an XML document from the text stream s into the KDChartParams object p.
Definition KDChartParams_io.cpp:1044
TQTextStream & operator<<(TQTextStream &s, const KDChartParams &p)
Writes the KDChartParams object p as an XML document to the text stream s.
Definition KDChartParams_io.cpp:43
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 setAxisLabelsDontAutoRotate(bool labelsDontAutoRotate)
Specifies whether the axis labels may be rotated to avoid overwriting neighboring areas.
Definition KDChartAxisParams.h:282
TQt::PenStyle axisGridStyle() const
Returns the axis grid line pattern.
Definition KDChartAxisParams.h:250
double trueAxisHigh() const
Returns the true end value of the ordinate axis labels as is was calculated and set by setTrueAxisLow...
Definition KDChartAxisParams.h:368
void setAxisValueLeaveOut(const int leaveOut)
Specifies how many axis labels are to be skipped if there is not enough space for displaying all of t...
Definition KDChartAxisParams.h:357
double axisDtLowPosY() const
Returns the not-rounded y-position where drawing of this axis low date/time value could be done.
Definition KDChartAxisParams.h:383
TQVariant axisValueEnd() const
Returns the upper limit for the axis labels: the end value.
Definition KDChartAxisParams.h:352
int axisTrueLineWidth() const
Returns the axis true line width, as calculated and drawn.
Definition KDChartAxisParams.h:241
bool axisValuesDecreasing() const
Returns whether axis values should be printed in reverted order: starting with the highest label and ...
Definition KDChartAxisParams.h:363
double axisDtLowPosX() const
Returns the not-rounded x-position where drawing of this axis low date/time value could be done.
Definition KDChartAxisParams.h:382
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.
double trueAxisLow() const
Returns the true start value of the ordinate axis labels as is was calculated and set by setTrueAxisL...
Definition KDChartAxisParams.h:367
int axisGridSubLineWidth() const
Returns the axis grid sub line width.
Definition KDChartAxisParams.h:263
TQRect axisTrueAreaRect() const
Returns the true axis area rectangle as calculated and drawn.
Definition KDChartAxisParams.h:235
int axisLabelsRotation() const
Returns by how many degrees the axis labels will be rotated.
Definition KDChartAxisParams.h:285
double trueAxisDeltaPixels() const
Returns the true delimiter delta pixel value of the axis labels as is was calculated and set by setTr...
Definition KDChartAxisParams.h:365
TQt::PenStyle axisGridSubStyle() const
Returns the axis grid line pattern for the thin lines showing the sub-delimiter values.
Definition KDChartAxisParams.h:259
void setAxisLabelsDateTimeFormat(const TQString &format)
Specifies the format to be used for displaying abscissa axis TQDateTime item labels.
Definition KDChartAxisParams.h:389
uint isometricReferenceAxis() const
Returns which axis this axis shall be isometric with, this will be either the axis position - see KDC...
Definition KDChartAxisParams.h:231
int axisGridLineWidth() const
Returns the width of the axis grid lines.
Definition KDChartAxisParams.h:254
int axisTrueAreaSize() const
Returns the true axis area width (or height, resp.) as calculated and drawn.
Definition KDChartAxisParams.h:233
void setTrueAxisDeltaPixels(double nDeltaPixels)
Specifies the true axis pixel distance between two label delimiters.
Definition KDChartAxisParams.h:364
void setAxisLabelsRotation(int rotation)
Specifies by how many degrees the axis labels shall be rotated.
Definition KDChartAxisParams.h:284
bool axisShowSubDelimiters() const
Returns whether the axis sub-delimiters will be drawn.
Definition KDChartAxisParams.h:257
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
double axisDtHighPosX() const
Returns the not-rounded x-position where drawing of this axis high date/time value could be done.
Definition KDChartAxisParams.h:385
double axisValueDelta() const
Returns the DELTA value for the axis labels: the distance between two labels.
Definition KDChartAxisParams.h:355
KDChartAxisParams()
enum KDChartAxisParams::Axistype { AxisTypeUnknown, AxisTypeEAST, AxisTypeNORTH, AxisUP }...
Definition KDChartAxisParams.cpp:133
void setAxisDigitsBehindComma(const int digits)
Specifies the number of digits to be printed behind the comma on the axis labels.
Definition KDChartAxisParams.h:387
int axisLabelsFontRelSize() const
Returns the axis labels relative font size.
Definition KDChartAxisParams.h:277
TQString axisLabelsDateTimeFormat() const
Returns the format to be used for displaying abscissa axis TQDateTime item labels.
Definition KDChartAxisParams.h:390
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
double axisZeroLineStartX() const
Returns the not-rounded x-position where drawing of this axis zero line started.
Definition KDChartAxisParams.h:379
void setAxisSteadyValueCalc(bool axisSteadyValueCalc)
Specifies whether label values shall be calculated based upon the associated dataset values (normally...
Definition KDChartAxisParams.h:414
uint axisLabelStringCount() const
Returns the number of strings stored as label texts, the texts can be retrieved by calling axisLabelS...
Definition KDChartAxisParams.h:401
bool axisShowGrid() const
Returns whether a grid should be drawn at the chart data area.
Definition KDChartAxisParams.h:248
void setAxisTrueAreaRect(const TQRect &axisTrueAreaRect)
Specifies the true axis area rectangle.
Definition KDChartAxisParams.h:234
int axisDigitsBehindComma() const
Returns the number of digits to be printed behind the comma on the axis labels.
Definition KDChartAxisParams.h:388
bool axisSteadyValueCalc() const
Returns whether label values shall be calculataed based upon the associated dataset values (normally ...
Definition KDChartAxisParams.h:415
void setAxisMaxEmptyInnerSpan(const int maxEmpty)
Specifies the percentage of the y-axis range that may to contain NO data entries, if - and only if - ...
Definition KDChartAxisParams.h:391
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 axisLabelsDontShrinkFont() const
Specifies whether the axis labels' font size may be shrinked to avoid overwriting neighboring areas.
Definition KDChartAxisParams.h:281
void setAxisValueEnd(const TQVariant &axisValueEnd)
Specifies the upper limit for the axis labels: the end value.
Definition KDChartAxisParams.h:351
void setAxisLabelsFontMinSize(int axisLabelsFontMinSize)
Specifies the minimal font size to be used for displaying the axis labels.
Definition KDChartAxisParams.h:278
double axisZeroLineStartY() const
Returns the not-rounded y-position where drawing of this axis zero line started.
Definition KDChartAxisParams.h:380
void setAxisTrueAreaSize(int axisTrueAreaSize)
Specifies the true axis area width (or height, resp.).
Definition KDChartAxisParams.h:232
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 setAxisTrueLineWidth(int axisTrueLineWidth)
Specifies the actual axis line width, as calculated and drawn.
Definition KDChartAxisParams.h:240
bool axisLabelsDontAutoRotate() const
Returns whether the axis labels may not be rotated to avoid overwriting neighboring areas.
Definition KDChartAxisParams.h:283
ValueScale axisValueDeltaScale() const
Returns the DELTA value scaling mode for the axis labels.
Definition KDChartAxisParams.h:356
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
TQVariant axisValueStart() const
Returns the lower limit for the axis labels: the start value.
Definition KDChartAxisParams.h:350
void setAxisValuesDecreasing(bool valuesDecreasing=true)
Specifies whether axis values should be printed in reverted order: starting with the highest label an...
Definition KDChartAxisParams.h:359
double trueAxisDelta() const
Returns the true delta value of the ordinate axis labels as is was calculated and set by setTrueAxisL...
Definition KDChartAxisParams.h:369
void setAxisValueStart(const TQVariant &axisValueStart)
Specifies the lower limit for the axis labels: the start value.
Definition KDChartAxisParams.h:349
int axisAreaMin() const
Returns the axis area minimum width (or height, resp.).
Definition KDChartAxisParams.h:211
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
bool axisLabelsVisible() const
Returns whether the axis labels should be drawn.
Definition KDChartAxisParams.h:269
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
double axisDtHighPosY() const
Returns the not-rounded y-position where drawing of this axis high date/time value could be done.
Definition KDChartAxisParams.h:386
bool axisLabelTextsDirty() const
Returns whether the label texts that are actually drawn at the axis labels are unknown.
Definition KDChartAxisParams.h:407
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
