![]() |
KD Chart API Documentation
3.1
|
#include <KDChartTernaryAxis.h>
Public Member Functions | |
| TernaryAxis (AbstractTernaryDiagram *diagram=nullptr) | |
| ~TernaryAxis () override | |
| Qt::Orientations | expandingDirections () const override |
| QRect | geometry () const override |
| bool | hasDefaultTitleTextAttributes () const |
| bool | isEmpty () const override |
| QSize | maximumSize () const override |
| QSize | minimumSize () const override |
| void | paint (QPainter *) override |
| void | paintAll (QPainter &) override |
| void | paintCtx (PaintContext *) override |
| virtual const Position | position () const |
| QPair< QSizeF, QSizeF > | requiredMargins () const |
| void | resetTitleTextAttributes () |
| void | setGeometry (const QRect &rect) override |
| virtual void | setPosition (Position p) |
| void | setTitleText (const QString &text) |
| void | setTitleTextAttributes (const TextAttributes &a) |
| QSize | sizeHint () const override |
| QString | titleText () const |
| TextAttributes | titleTextAttributes () const |
Public Member Functions inherited from KDChart::AbstractAxis | |
| AbstractAxis (AbstractDiagram *diagram=nullptr) | |
| ~AbstractAxis () override | |
| bool | compare (const AbstractAxis *other) const |
| virtual void | connectSignals () |
| const AbstractCoordinatePlane * | coordinatePlane () const |
| Convenience function, returns the coordinate plane, in which this axis is used. More... | |
| void | createObserver (AbstractDiagram *diagram) |
| virtual const QString | customizedLabel (const QString &label) const |
| Reimplement this method if you want to adjust axis labels before they are printed. More... | |
| void | deleteObserver (AbstractDiagram *diagram) |
| const AbstractDiagram * | diagram () const |
| QStringList | labels () const |
| bool | observedBy (AbstractDiagram *diagram) const |
| RulerAttributes | rulerAttributes () const |
| Returns the attributes to be used for painting the rulers. More... | |
| void | setLabels (const QStringList &list) |
| Use this to specify your own set of strings, to be used as axis labels. More... | |
| void | setRulerAttributes (const RulerAttributes &a) |
| Use this to specify the attributes used to paint the axis ruler. More... | |
| void | setShortLabels (const QStringList &list) |
| Use this to specify your own set of strings, to be used as axis labels, in case the normal labels are too long. More... | |
| void | setTextAttributes (const TextAttributes &a) |
| Use this to specify the text attributes to be used for axis labels. More... | |
| QStringList | shortLabels () const |
| TextAttributes | textAttributes () const |
| Returns the text attributes to be used for axis labels. More... | |
Public Member Functions inherited from KDChart::AbstractArea | |
| ~AbstractArea () override | |
| virtual int | bottomOverlap (bool doNotRecalculate=false) const |
| virtual int | leftOverlap (bool doNotRecalculate=false) const |
| virtual void | paintIntoRect (QPainter &painter, const QRect &rect) |
| Draws the background and frame, then calls paint(). More... | |
| virtual int | rightOverlap (bool doNotRecalculate=false) const |
| virtual int | topOverlap (bool doNotRecalculate=false) const |
Public Member Functions inherited from KDChart::AbstractAreaBase | |
| void | alignToReferencePoint (const RelativePosition &position) |
| BackgroundAttributes | backgroundAttributes () const |
| bool | compare (const AbstractAreaBase *other) const |
| FrameAttributes | frameAttributes () const |
| void | getFrameLeadings (int &left, int &top, int &right, int &bottom) const |
| virtual void | paintBackground (QPainter &painter, const QRect &rectangle) |
| virtual void | paintFrame (QPainter &painter, const QRect &rectangle) |
| void | setBackgroundAttributes (const BackgroundAttributes &a) |
| void | setFrameAttributes (const FrameAttributes &a) |
Public Member Functions inherited from KDChart::AbstractLayoutItem | |
| AbstractLayoutItem (Qt::Alignment itemAlignment={}) | |
| QLayout * | parentLayout () |
| void | removeFromParentLayout () |
| void | setParentLayout (QLayout *lay) |
| virtual void | setParentWidget (QWidget *widget) |
| virtual void | sizeHintChanged () const |
Additional Inherited Members | |
Public Slots inherited from KDChart::AbstractAxis | |
| void | update () |
Signals inherited from KDChart::AbstractAxis | |
| void | coordinateSystemChanged () |
Signals inherited from KDChart::AbstractArea | |
| void | positionChanged (AbstractArea *) |
Static Public Member Functions inherited from KDChart::AbstractAreaBase | |
| static void | paintBackgroundAttributes (QPainter &painter, const QRect &rectangle, const KDChart::BackgroundAttributes &attributes) |
| static void | paintFrameAttributes (QPainter &painter, const QRect &rectangle, const KDChart::FrameAttributes &attributes) |
Protected Slots inherited from KDChart::AbstractAxis | |
| virtual void | delayedInit () |
Protected Member Functions inherited from KDChart::AbstractArea | |
| AbstractArea () | |
| QRect | areaGeometry () const override |
| void | positionHasChanged () override |
Protected Member Functions inherited from KDChart::AbstractAreaBase | |
| AbstractAreaBase () | |
| virtual | ~AbstractAreaBase () |
| QRect | innerRect () const |
Protected Attributes inherited from KDChart::AbstractLayoutItem | |
| QWidget * | mParent = nullptr |
| QLayout * | mParentLayout = nullptr |
The class for ternary axes
Definition at line 27 of file KDChartTernaryAxis.h.
|
explicit |
Definition at line 30 of file KDChartTernaryAxis.cpp.
References KDChart::AbstractAxis::diagram(), KDChartEnums::PositionSouth, resetTitleTextAttributes(), setPosition(), and PrerenderedLabel::setText().
|
override |
Definition at line 43 of file KDChartTernaryAxis.cpp.
|
override |
Definition at line 113 of file KDChartTernaryAxis.cpp.
|
overridevirtual |
Implements KDChart::AbstractAxis.
Definition at line 87 of file KDChartTernaryAxis.cpp.
| bool TernaryAxis::hasDefaultTitleTextAttributes | ( | ) | const |
Definition at line 184 of file KDChartTernaryAxis.cpp.
|
override |
Definition at line 81 of file KDChartTernaryAxis.cpp.
|
override |
Definition at line 103 of file KDChartTernaryAxis.cpp.
|
override |
Definition at line 97 of file KDChartTernaryAxis.cpp.
|
overridevirtual |
Implements KDChart::AbstractLayoutItem.
Definition at line 56 of file KDChartTernaryAxis.cpp.
|
overridevirtual |
Call paintAll, if you want the background and the frame to be drawn before the normal paint() is invoked automatically.
Reimplemented from KDChart::AbstractArea.
Definition at line 51 of file KDChartTernaryAxis.cpp.
|
overridevirtual |
Default impl: Paint the complete item using its layouted position and size.
Reimplemented from KDChart::AbstractLayoutItem.
Definition at line 61 of file KDChartTernaryAxis.cpp.
References KDChart::PaintContext::coordinatePlane(), KDChart::AbstractAxis::labels(), KDChart::PaintContext::painter(), and PrerenderedLabel::pixmap().
|
virtual |
Definition at line 118 of file KDChartTernaryAxis.cpp.
Referenced by requiredMargins(), and setPosition().
| QPair< QSizeF, QSizeF > TernaryAxis::requiredMargins | ( | ) | const |
Definition at line 243 of file KDChartTernaryAxis.cpp.
References PrerenderedLabel::pixmap(), position(), KDChartEnums::PositionEast, KDChartEnums::PositionSouth, KDChartEnums::PositionWest, and PrerenderedLabel::referencePointLocation().
| void TernaryAxis::resetTitleTextAttributes | ( | ) |
Definition at line 177 of file KDChartTernaryAxis.cpp.
Referenced by TernaryAxis().
|
overridevirtual |
Implements KDChart::AbstractAxis.
Definition at line 92 of file KDChartTernaryAxis.cpp.
|
virtual |
Definition at line 123 of file KDChartTernaryAxis.cpp.
References position(), KDChartEnums::PositionEast, KDChartEnums::PositionSouth, KDChartEnums::PositionWest, PrerenderedLabel::setText(), and KDChart::Position::value().
Referenced by TernaryAxis().
| void TernaryAxis::setTitleText | ( | const QString & | text | ) |
Definition at line 155 of file KDChartTernaryAxis.cpp.
References PrerenderedLabel::setText().
| void TernaryAxis::setTitleTextAttributes | ( | const TextAttributes & | a | ) |
Definition at line 166 of file KDChartTernaryAxis.cpp.
|
override |
Definition at line 108 of file KDChartTernaryAxis.cpp.
| QString TernaryAxis::titleText | ( | ) | const |
Definition at line 161 of file KDChartTernaryAxis.cpp.
References PrerenderedLabel::text().
| TextAttributes TernaryAxis::titleTextAttributes | ( | ) | const |
Definition at line 172 of file KDChartTernaryAxis.cpp.