![]() |
KD Chart API Documentation
3.1
|
#include <KDChartLayoutItems.h>
Public Member Functions | |
| TextLayoutItem () | |
| TextLayoutItem (const QString &text, const TextAttributes &attributes, const QObject *autoReferenceArea, KDChartEnums::MeasureOrientation autoReferenceOrientation, Qt::Alignment alignment={}) | |
| const QObject * | autoReferenceArea () const |
| QPolygon | boundingPolygon () const |
| Qt::Orientations | expandingDirections () const override |
| QRect | geometry () const override |
| virtual bool | intersects (const TextLayoutItem &other, const QPoint &myPos, const QPoint &otherPos) const |
| virtual bool | intersects (const TextLayoutItem &other, const QPointF &myPos, const QPointF &otherPos) const |
| bool | isEmpty () const override |
| virtual int | marginWidth () const |
| QSize | maximumSize () const override |
| QSize | minimumSize () const override |
| void | paint (QPainter *) override |
| virtual QFont | realFont () const |
| virtual qreal | realFontSize () const |
| void | setAutoReferenceArea (const QObject *area) |
| void | setGeometry (const QRect &r) override |
| void | setText (const QString &text) |
| void | setTextAlignment (Qt::Alignment) |
| void | setTextAttributes (const TextAttributes &a) |
| Use this to specify the text attributes to be used for this item. More... | |
| QSize | sizeHint () const override |
| virtual QSize | sizeHintUnrotated () const |
| QString | text () const |
| Qt::Alignment | textAlignment () const |
| TextAttributes | textAttributes () const |
Public Member Functions inherited from KDChart::AbstractLayoutItem | |
| AbstractLayoutItem (Qt::Alignment itemAlignment={}) | |
| virtual void | paintAll (QPainter &painter) |
| virtual void | paintCtx (PaintContext *context) |
| QLayout * | parentLayout () |
| void | removeFromParentLayout () |
| void | setParentLayout (QLayout *lay) |
| virtual void | setParentWidget (QWidget *widget) |
| virtual void | sizeHintChanged () const |
Additional Inherited Members | |
Protected Attributes inherited from KDChart::AbstractLayoutItem | |
| QWidget * | mParent = nullptr |
| QLayout * | mParentLayout = nullptr |
Layout item showing a text
Definition at line 88 of file KDChartLayoutItems.h.
| KDChart::TextLayoutItem::TextLayoutItem | ( | ) |
Definition at line 205 of file KDChartLayoutItems.cpp.
| KDChart::TextLayoutItem::TextLayoutItem | ( | const QString & | text, |
| const TextAttributes & | attributes, | ||
| const QObject * | autoReferenceArea, | ||
| KDChartEnums::MeasureOrientation | autoReferenceOrientation, | ||
| Qt::Alignment | alignment = {} |
||
| ) |
Definition at line 188 of file KDChartLayoutItems.cpp.
| const QObject * KDChart::TextLayoutItem::autoReferenceArea | ( | ) | const |
Definition at line 222 of file KDChartLayoutItems.cpp.
Referenced by KDChart::HeaderFooter::compare(), and KDChart::HeaderFooter::setParent().
| QPolygon KDChart::TextLayoutItem::boundingPolygon | ( | ) | const |
Definition at line 374 of file KDChartLayoutItems.cpp.
Referenced by intersects().
|
override |
pure virtual in QLayoutItem
Definition at line 280 of file KDChartLayoutItems.cpp.
|
override |
pure virtual in QLayoutItem
Definition at line 285 of file KDChartLayoutItems.cpp.
Referenced by KDChart::TextArea::areaGeometry(), KDChart::TextArea::paintAll(), and KDChart::TextArea::paintIntoRect().
|
virtual |
Definition at line 385 of file KDChartLayoutItems.cpp.
References boundingPolygon().
|
virtual |
Definition at line 380 of file KDChartLayoutItems.cpp.
|
override |
pure virtual in QLayoutItem
Definition at line 290 of file KDChartLayoutItems.cpp.
|
virtual |
Definition at line 427 of file KDChartLayoutItems.cpp.
|
override |
pure virtual in QLayoutItem
Definition at line 295 of file KDChartLayoutItems.cpp.
|
override |
pure virtual in QLayoutItem
Definition at line 300 of file KDChartLayoutItems.cpp.
|
overridevirtual |
Implements KDChart::AbstractLayoutItem.
Definition at line 470 of file KDChartLayoutItems.cpp.
References fitFontSizeToGeometry(), and KDChart::PrintingParameters::scalePen().
Referenced by KDChart::TextArea::paintAll(), KDChart::LeveyJenningsAxis::paintAsAbscissa(), and KDChart::LeveyJenningsAxis::paintAsOrdinate().
|
virtual |
Definition at line 368 of file KDChartLayoutItems.cpp.
|
virtual |
Definition at line 351 of file KDChartLayoutItems.cpp.
| void KDChart::TextLayoutItem::setAutoReferenceArea | ( | const QObject * | area | ) |
Definition at line 215 of file KDChartLayoutItems.cpp.
Referenced by KDChart::HeaderFooter::setParent().
|
override |
pure virtual in QLayoutItem
Definition at line 305 of file KDChartLayoutItems.cpp.
Referenced by KDChart::TextArea::paintAll(), KDChart::LeveyJenningsAxis::paintAsAbscissa(), KDChart::LeveyJenningsAxis::paintAsOrdinate(), and KDChart::TextArea::paintIntoRect().
| void KDChart::TextLayoutItem::setText | ( | const QString & | text | ) |
Definition at line 227 of file KDChartLayoutItems.cpp.
Referenced by KDChart::LeveyJenningsAxis::paintAsOrdinate().
| void KDChart::TextLayoutItem::setTextAlignment | ( | Qt::Alignment | alignment | ) |
Definition at line 241 of file KDChartLayoutItems.cpp.
| void KDChart::TextLayoutItem::setTextAttributes | ( | const TextAttributes & | a | ) |
Use this to specify the text attributes to be used for this item.
Definition at line 260 of file KDChartLayoutItems.cpp.
References KDChart::TextAttributes::font().
Referenced by KDChart::Chart::addHeaderFooter().
|
override |
pure virtual in QLayoutItem
Definition at line 393 of file KDChartLayoutItems.cpp.
Referenced by KDChart::LeveyJenningsAxis::paintAsAbscissa(), and KDChart::LeveyJenningsAxis::paintAsOrdinate().
|
virtual |
Definition at line 407 of file KDChartLayoutItems.cpp.
| QString KDChart::TextLayoutItem::text | ( | ) | const |
Definition at line 236 of file KDChartLayoutItems.cpp.
Referenced by KDChart::HeaderFooter::clone(), and KDChart::HeaderFooter::compare().
| Qt::Alignment KDChart::TextLayoutItem::textAlignment | ( | ) | const |
Definition at line 250 of file KDChartLayoutItems.cpp.
| KDChart::TextAttributes KDChart::TextLayoutItem::textAttributes | ( | ) | const |
Returns the text attributes to be used for this item.
Definition at line 275 of file KDChartLayoutItems.cpp.
Referenced by KDChart::Chart::addHeaderFooter(), KDChart::HeaderFooter::clone(), and KDChart::HeaderFooter::compare().