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. | |
| 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 62 of file KDChartAbstractAreaBase.h.
| AbstractAreaBase::AbstractAreaBase | ( | ) | [protected] |
Definition at line 55 of file KDChartAbstractAreaBase.cpp.
| AbstractAreaBase::~AbstractAreaBase | ( | ) | [protected, virtual] |
Definition at line 60 of file KDChartAbstractAreaBase.cpp.
| void AbstractAreaBase::alignToReferencePoint | ( | const RelativePosition & | position | ) |
Definition at line 88 of file KDChartAbstractAreaBase.cpp.
| virtual QRect KDChart::AbstractAreaBase::areaGeometry | ( | ) | const [protected, pure virtual] |
Implemented in KDChart::AbstractArea, KDChart::AbstractAreaWidget, and KDChart::TextArea.
Referenced by innerRect().
| BackgroundAttributes AbstractAreaBase::backgroundAttributes | ( | ) | const |
Definition at line 118 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 73 of file KDChartAbstractAreaBase.cpp.
References backgroundAttributes(), and frameAttributes().
| FrameAttributes AbstractAreaBase::frameAttributes | ( | ) | const |
Definition at line 104 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 210 of file KDChartAbstractAreaBase.cpp.
References d.
Referenced by innerRect(), and KDChart::AbstractAreaWidget::paintAll().
| QRect AbstractAreaBase::innerRect | ( | ) | const [protected] |
Definition at line 226 of file KDChartAbstractAreaBase.cpp.
References areaGeometry(), and getFrameLeadings().
Referenced by KDChart::TextArea::paintAll(), and KDChart::AbstractArea::paintAll().
| void AbstractAreaBase::paintBackground | ( | QPainter & | painter, | |
| const QRect & | rectangle | |||
| ) | [virtual] |
Definition at line 194 of file KDChartAbstractAreaBase.cpp.
References d, and paintBackgroundAttributes().
Referenced by KDChart::TextArea::paintAll(), KDChart::AbstractAreaWidget::paintAll(), and KDChart::AbstractArea::paintAll().
| void AbstractAreaBase::paintBackgroundAttributes | ( | QPainter & | painter, | |
| const QRect & | rectangle, | |||
| const KDChart::BackgroundAttributes & | attributes | |||
| ) | [static] |
Definition at line 125 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 paintBackground().
| void AbstractAreaBase::paintFrame | ( | QPainter & | painter, | |
| const QRect & | rectangle | |||
| ) | [virtual] |
Definition at line 202 of file KDChartAbstractAreaBase.cpp.
References d, and paintFrameAttributes().
Referenced by KDChart::TextArea::paintAll(), KDChart::AbstractAreaWidget::paintAll(), and KDChart::AbstractArea::paintAll().
| void AbstractAreaBase::paintFrameAttributes | ( | QPainter & | painter, | |
| const QRect & | rectangle, | |||
| const KDChart::FrameAttributes & | attributes | |||
| ) | [static] |
Definition at line 175 of file KDChartAbstractAreaBase.cpp.
References KDChart::FrameAttributes::isVisible(), KDChart::FrameAttributes::pen(), and KDChart::PrintingParameters::scalePen().
Referenced by paintFrame().
| void AbstractAreaBase::positionHasChanged | ( | ) | [protected, virtual] |
Reimplemented in KDChart::AbstractArea, KDChart::AbstractAreaWidget, and KDChart::TextArea.
Definition at line 238 of file KDChartAbstractAreaBase.cpp.
Referenced by setBackgroundAttributes(), and setFrameAttributes().
| void AbstractAreaBase::setBackgroundAttributes | ( | const BackgroundAttributes & | a | ) |
Definition at line 109 of file KDChartAbstractAreaBase.cpp.
References d, and positionHasChanged().
| void AbstractAreaBase::setFrameAttributes | ( | const FrameAttributes & | a | ) |
Definition at line 95 of file KDChartAbstractAreaBase.cpp.
References d, and positionHasChanged().
Referenced by KDChart::Legend::clone().