|
KD Chart 2
[rev.2.6]
|
Base class for AbstractArea and AbstractAreaWidget: An area in the chart with a background, a frame, etc. More...
#include <KDChartAbstractAreaBase.h>

Public Member Functions | |
| void | alignToReferencePoint (const RelativePosition &position) |
| BackgroundAttributes | backgroundAttributes () const |
| bool | compare (const AbstractAreaBase *other) const |
| Returns true if both areas have the same settings. More... | |
| 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) |
Static Public Member Functions | |
| 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 Member Functions | |
| AbstractAreaBase () | |
| virtual QRect | areaGeometry () const =0 |
| QRect | innerRect () const |
| virtual void | positionHasChanged () |
| virtual | ~AbstractAreaBase () |
Base class for AbstractArea and AbstractAreaWidget: An area in the chart with a background, a frame, etc.
AbstractAreaBase is the base class for all chart elements that have a set of background attributes and frame attributes, such as legends or axes.
Definition at line 65 of file KDChartAbstractAreaBase.h.
|
protected |
Definition at line 52 of file KDChartAbstractAreaBase.cpp.
|
protectedvirtual |
Definition at line 57 of file KDChartAbstractAreaBase.cpp.
| void AbstractAreaBase::alignToReferencePoint | ( | const RelativePosition & | position | ) |
Definition at line 80 of file KDChartAbstractAreaBase.cpp.
|
protectedpure virtual |
Implemented in KDChart::AbstractArea, KDChart::AbstractAreaWidget, and KDChart::TextArea.
Referenced by innerRect().
| BackgroundAttributes AbstractAreaBase::backgroundAttributes | ( | ) | const |
Definition at line 110 of file KDChartAbstractAreaBase.cpp.
References d.
Referenced by compare(), and updateCommonBrush().
| bool AbstractAreaBase::compare | ( | const AbstractAreaBase * | other | ) | const |
Returns true if both areas have the same settings.
Definition at line 70 of file KDChartAbstractAreaBase.cpp.
References backgroundAttributes(), and frameAttributes().
Referenced by KDChart::Legend::compare().
| FrameAttributes AbstractAreaBase::frameAttributes | ( | ) | const |
Definition at line 96 of file KDChartAbstractAreaBase.cpp.
References d.
Referenced by KDChart::Legend::clone(), compare(), and updateCommonBrush().
| void AbstractAreaBase::getFrameLeadings | ( | int & | left, |
| int & | top, | ||
| int & | right, | ||
| int & | bottom | ||
| ) | const |
Definition at line 212 of file KDChartAbstractAreaBase.cpp.
References d.
Referenced by innerRect(), and KDChart::AbstractAreaWidget::paintAll().
|
protected |
Definition at line 224 of file KDChartAbstractAreaBase.cpp.
References areaGeometry(), and getFrameLeadings().
Referenced by KDChart::AbstractArea::paintAll(), and KDChart::TextArea::paintAll().
|
virtual |
Definition at line 188 of file KDChartAbstractAreaBase.cpp.
References d, and paintBackgroundAttributes().
Referenced by KDChart::AbstractArea::paintAll(), KDChart::TextArea::paintAll(), and KDChart::AbstractAreaWidget::paintAll().
|
static |
Definition at line 117 of file KDChartAbstractAreaBase.cpp.
References KDChart::BackgroundAttributes::BackgroundPixmapModeCentered, KDChart::BackgroundAttributes::BackgroundPixmapModeNone, KDChart::BackgroundAttributes::BackgroundPixmapModeScaled, KDChart::BackgroundAttributes::BackgroundPixmapModeStretched, KDChart::BackgroundAttributes::brush(), KDChart::BackgroundAttributes::isVisible(), KDChart::BackgroundAttributes::pixmap(), and KDChart::BackgroundAttributes::pixmapMode().
Referenced by findSharingAxisDiagrams(), and paintBackground().
|
virtual |
Definition at line 204 of file KDChartAbstractAreaBase.cpp.
References d, and paintFrameAttributes().
Referenced by KDChart::AbstractArea::paintAll(), KDChart::TextArea::paintAll(), and KDChart::AbstractAreaWidget::paintAll().
|
static |
Definition at line 167 of file KDChartAbstractAreaBase.cpp.
References KDChart::FrameAttributes::cornerRadius(), KDChart::FrameAttributes::isVisible(), KDChart::FrameAttributes::pen(), and KDChart::PrintingParameters::scalePen().
Referenced by findSharingAxisDiagrams(), and paintFrame().
|
protectedvirtual |
Reimplemented in KDChart::AbstractArea, KDChart::AbstractAreaWidget, and KDChart::TextArea.
Definition at line 234 of file KDChartAbstractAreaBase.cpp.
Referenced by setBackgroundAttributes(), and setFrameAttributes().
| void AbstractAreaBase::setBackgroundAttributes | ( | const BackgroundAttributes & | a | ) |
Definition at line 101 of file KDChartAbstractAreaBase.cpp.
References d, and positionHasChanged().
| void AbstractAreaBase::setFrameAttributes | ( | const FrameAttributes & | a | ) |
Definition at line 87 of file KDChartAbstractAreaBase.cpp.
References d, and positionHasChanged().
Referenced by KDChart::Legend::clone(), and KDChart::Legend::~Legend().