KD Chart API Documentation  3.1
Public Member Functions | List of all members
KDChart::TernaryAxis Class Reference

#include <KDChartTernaryAxis.h>

Inheritance diagram for KDChart::TernaryAxis:
KDChart::AbstractAxis KDChart::AbstractArea KDChart::AbstractAreaBase KDChart::AbstractLayoutItem

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 AbstractCoordinatePlanecoordinatePlane () 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 AbstractDiagramdiagram () 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
 

Detailed Description

The class for ternary axes

Definition at line 27 of file KDChartTernaryAxis.h.

Constructor & Destructor Documentation

◆ TernaryAxis()

TernaryAxis::TernaryAxis ( AbstractTernaryDiagram diagram = nullptr)
explicit

◆ ~TernaryAxis()

TernaryAxis::~TernaryAxis ( )
override

Definition at line 43 of file KDChartTernaryAxis.cpp.

Member Function Documentation

◆ expandingDirections()

Qt::Orientations TernaryAxis::expandingDirections ( ) const
override

Definition at line 113 of file KDChartTernaryAxis.cpp.

◆ geometry()

QRect TernaryAxis::geometry ( ) const
overridevirtual

Implements KDChart::AbstractAxis.

Definition at line 87 of file KDChartTernaryAxis.cpp.

◆ hasDefaultTitleTextAttributes()

bool TernaryAxis::hasDefaultTitleTextAttributes ( ) const

Definition at line 184 of file KDChartTernaryAxis.cpp.

◆ isEmpty()

bool TernaryAxis::isEmpty ( ) const
override

Definition at line 81 of file KDChartTernaryAxis.cpp.

◆ maximumSize()

QSize TernaryAxis::maximumSize ( ) const
override

Definition at line 103 of file KDChartTernaryAxis.cpp.

◆ minimumSize()

QSize TernaryAxis::minimumSize ( ) const
override

Definition at line 97 of file KDChartTernaryAxis.cpp.

◆ paint()

void TernaryAxis::paint ( QPainter *  )
overridevirtual

Implements KDChart::AbstractLayoutItem.

Definition at line 56 of file KDChartTernaryAxis.cpp.

◆ paintAll()

void TernaryAxis::paintAll ( QPainter &  painter)
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.

◆ paintCtx()

void TernaryAxis::paintCtx ( PaintContext context)
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().

◆ position()

const Position TernaryAxis::position ( ) const
virtual

Definition at line 118 of file KDChartTernaryAxis.cpp.

Referenced by requiredMargins(), and setPosition().

◆ requiredMargins()

QPair< QSizeF, QSizeF > TernaryAxis::requiredMargins ( ) const

◆ resetTitleTextAttributes()

void TernaryAxis::resetTitleTextAttributes ( )

Definition at line 177 of file KDChartTernaryAxis.cpp.

Referenced by TernaryAxis().

◆ setGeometry()

void TernaryAxis::setGeometry ( const QRect &  rect)
overridevirtual

Implements KDChart::AbstractAxis.

Definition at line 92 of file KDChartTernaryAxis.cpp.

◆ setPosition()

void TernaryAxis::setPosition ( Position  p)
virtual

◆ setTitleText()

void TernaryAxis::setTitleText ( const QString &  text)

Definition at line 155 of file KDChartTernaryAxis.cpp.

References PrerenderedLabel::setText().

◆ setTitleTextAttributes()

void TernaryAxis::setTitleTextAttributes ( const TextAttributes a)

Definition at line 166 of file KDChartTernaryAxis.cpp.

◆ sizeHint()

QSize TernaryAxis::sizeHint ( ) const
override

Definition at line 108 of file KDChartTernaryAxis.cpp.

◆ titleText()

QString TernaryAxis::titleText ( ) const

Definition at line 161 of file KDChartTernaryAxis.cpp.

References PrerenderedLabel::text().

◆ titleTextAttributes()

TextAttributes TernaryAxis::titleTextAttributes ( ) const

Definition at line 172 of file KDChartTernaryAxis.cpp.


The documentation for this class was generated from the following files:

© 2001 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-chart/
Generated by doxygen 1.9.1