KChart::CartesianAxis
#include <KChartCartesianAxis.h>
Public Types | |
enum | Position { Bottom , Top , Right , Left } |
Public Slots | |
void | setCachedSizeDirty () const |
Public Slots inherited from KChart::AbstractAxis | |
void | update () |
Detailed Description
The class for cartesian axes.
For being useful, axes need to be assigned to a diagram, see AbstractCartesianDiagram::addAxis and AbstractCartesianDiagram::takeAxis.
- See also
- PolarAxis, AbstractCartesianDiagram
Definition at line 28 of file KChartCartesianAxis.h.
Member Enumeration Documentation
◆ Position
enum KChart::CartesianAxis::Position |
Definition at line 36 of file KChartCartesianAxis.h.
Constructor & Destructor Documentation
◆ CartesianAxis()
|
explicit |
C'tor of the class for cartesian axes.
- Note
- If you pass a null parent to the constructor, you need to call your diagram's addAxis function to add your axis to the diagram. Otherwise there is no need to call addAxis, since the constructor does it already.
Definition at line 374 of file KChartCartesianAxis.cpp.
◆ ~CartesianAxis()
|
override |
Definition at line 380 of file KChartCartesianAxis.cpp.
Member Function Documentation
◆ annotations()
Returns the currently set axis annotations.
Definition at line 1123 of file KChartCartesianAxis.cpp.
◆ compare()
bool CartesianAxis::compare | ( | const CartesianAxis * | other | ) | const |
Returns true if both axes have the same settings.
Definition at line 403 of file KChartCartesianAxis.cpp.
◆ customTickLength()
int CartesianAxis::customTickLength | ( | ) | const |
Returns the length of custom ticks on the axis.
Definition at line 1112 of file KChartCartesianAxis.cpp.
◆ customTicks()
QList< qreal > CartesianAxis::customTicks | ( | ) | const |
Returns the currently set custom ticks on the axis.
Definition at line 1138 of file KChartCartesianAxis.cpp.
◆ expandingDirections()
|
overridevirtual |
pure virtual in QLayoutItem
Implements QLayoutItem.
Definition at line 928 of file KChartCartesianAxis.cpp.
◆ geometry()
|
overridevirtual |
pure virtual in QLayoutItem
Implements KChart::AbstractAxis.
Definition at line 1097 of file KChartCartesianAxis.cpp.
◆ hasDefaultTitleTextAttributes()
bool CartesianAxis::hasDefaultTitleTextAttributes | ( | ) | const |
Definition at line 460 of file KChartCartesianAxis.cpp.
◆ isAbscissa()
|
virtual |
Definition at line 521 of file KChartCartesianAxis.cpp.
◆ isEmpty()
|
overridevirtual |
pure virtual in QLayoutItem
Implements QLayoutItem.
Definition at line 922 of file KChartCartesianAxis.cpp.
◆ isOrdinate()
|
virtual |
Definition at line 529 of file KChartCartesianAxis.cpp.
◆ layoutPlanes()
|
virtual |
Definition at line 486 of file KChartCartesianAxis.cpp.
◆ maximumSize()
|
overridevirtual |
pure virtual in QLayoutItem
Implements QLayoutItem.
Definition at line 953 of file KChartCartesianAxis.cpp.
◆ minimumSize()
|
overridevirtual |
pure virtual in QLayoutItem
Implements QLayoutItem.
Definition at line 1076 of file KChartCartesianAxis.cpp.
◆ paint()
reimpl
Implements KChart::AbstractLayoutItem.
Definition at line 534 of file KChartCartesianAxis.cpp.
◆ paintCtx()
|
overridevirtual |
reimpl
Reimplemented from KChart::AbstractLayoutItem.
Reimplemented in KChart::LeveyJenningsAxis.
Definition at line 649 of file KChartCartesianAxis.cpp.
◆ position()
|
virtual |
Definition at line 481 of file KChartCartesianAxis.cpp.
◆ resetTitleTextAttributes()
void CartesianAxis::resetTitleTextAttributes | ( | ) |
Reset the title text attributes to the built-in default:
Same font and pen as AbstractAxis::textAttributes() and 1.5 times their size.
Definition at line 453 of file KChartCartesianAxis.cpp.
◆ setAnnotations()
Sets the axis annotations to annotations.
Annotations are a QMap of qreals and QStrings defining special markers and their position. If you use annotations, the normal ticks and values will be invisible. To unset the annotations, pass an empty QMap.
Definition at line 1128 of file KChartCartesianAxis.cpp.
◆ setCachedSizeDirty
|
slot |
Definition at line 947 of file KChartCartesianAxis.cpp.
◆ setCustomTickLength()
void CartesianAxis::setCustomTickLength | ( | int | value | ) |
Sets the length of custom ticks on the axis.
Definition at line 1102 of file KChartCartesianAxis.cpp.
◆ setCustomTicks()
Sets custom ticks on the axis.
Ticks are a QList of qreals defining their special position.
Definition at line 1143 of file KChartCartesianAxis.cpp.
◆ setGeometry()
pure virtual in QLayoutItem
Implements KChart::AbstractAxis.
Definition at line 1088 of file KChartCartesianAxis.cpp.
◆ setPosition()
|
virtual |
Definition at line 465 of file KChartCartesianAxis.cpp.
◆ setTitleSize()
void CartesianAxis::setTitleSize | ( | qreal | value | ) |
use setTitleTextAttributes() instead
Definition at line 593 of file KChartCartesianAxis.cpp.
◆ setTitleSpace()
void CartesianAxis::setTitleSpace | ( | qreal | value | ) |
- Deprecated
- Sets the spacing between the title and the diagram. Be aware that setting this value can lead to collisions between axis labels and the title
Definition at line 583 of file KChartCartesianAxis.cpp.
◆ setTitleText()
Sets the optional text displayed as axis title.
Definition at line 421 of file KChartCartesianAxis.cpp.
◆ setTitleTextAttributes()
void CartesianAxis::setTitleTextAttributes | ( | const TextAttributes & | a | ) |
Definition at line 433 of file KChartCartesianAxis.cpp.
◆ sizeHint()
|
overridevirtual |
pure virtual in QLayoutItem
Implements QLayoutItem.
Definition at line 1082 of file KChartCartesianAxis.cpp.
◆ tickLength()
|
virtual |
Definition at line 1117 of file KChartCartesianAxis.cpp.
◆ titleSize()
qreal CartesianAxis::titleSize | ( | ) | const |
Definition at line 599 of file KChartCartesianAxis.cpp.
◆ titleSpace()
qreal CartesianAxis::titleSpace | ( | ) | const |
Definition at line 588 of file KChartCartesianAxis.cpp.
◆ titleText()
QString CartesianAxis::titleText | ( | ) | const |
Definition at line 428 of file KChartCartesianAxis.cpp.
◆ titleTextAttributes()
TextAttributes CartesianAxis::titleTextAttributes | ( | ) | const |
Returns the text attributes that will be used for displaying the title text.
This is either the text attributes as specified by setTitleTextAttributes, or (if setTitleTextAttributes() was not called) the default text attributes.
- See also
- resetTitleTextAttributes, hasDefaultTitleTextAttributes
Definition at line 441 of file KChartCartesianAxis.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.