The class for levey jennings axes. More...
#include <KDChartLeveyJenningsAxis.h>
Public Types | |
enum | Position { Bottom, Top, Right, Left } |
Public Slots | |
void | setCachedSizeDirty () const |
virtual int | tickLength (bool subUnitTicks=false) const |
void | update () |
Signals | |
void | positionChanged (AbstractArea *) |
Public Member Functions | |
void | alignToReferencePoint (const RelativePosition &position) |
QMap< double, QString > | annotations () const |
Returns the currently set axis annotations. | |
BackgroundAttributes | backgroundAttributes () const |
virtual int | bottomOverlap (bool doNotRecalculate=false) const |
This is called at layout time by KDChart:AutoSpacerLayoutItem::sizeHint(). | |
bool | compare (const AbstractAreaBase *other) const |
Returns true if both areas have the same settings. | |
bool | compare (const AbstractAxis *other) const |
Returns true if both axes have the same settings. | |
bool | compare (const CartesianAxis *other) const |
Returns true if both axes have the same settings. | |
bool | compare (const LeveyJenningsAxis *other) const |
Returns true if both axes have the same settings. | |
virtual void | connectSignals () |
Wireing the signal/slot connections. | |
const AbstractCoordinatePlane * | coordinatePlane () const |
Convenience function, returns the coordinate plane, in which this axis is used. | |
void | createObserver (AbstractDiagram *diagram) |
virtual const QString | customizedLabel (const QString &label) const |
Implement this method if you want to adjust axis labels before they are printed. | |
QList< double > | customTicks () const |
Returns the currently set custom ticks on the axis. | |
Qt::DateFormat | dateFormat () const |
void | deleteObserver (AbstractDiagram *diagram) |
const AbstractDiagram * | diagram () const |
virtual Qt::Orientations | expandingDirections () const |
pure virtual in QLayoutItem | |
FrameAttributes | frameAttributes () const |
virtual QRect | geometry () const |
pure virtual in QLayoutItem | |
void | getFrameLeadings (int &left, int &top, int &right, int &bottom) const |
bool | hasDefaultTitleTextAttributes () const |
virtual bool | isAbscissa () const |
virtual bool | isEmpty () const |
pure virtual in QLayoutItem | |
virtual bool | isOrdinate () const |
QStringList | labels () const |
Returns a list of strings, that are used as axis labels, as set via setLabels. | |
virtual void | layoutPlanes () |
virtual int | leftOverlap (bool doNotRecalculate=false) const |
This is called at layout time by KDChart::AutoSpacerLayoutItem::sizeHint(). | |
LeveyJenningsAxis (LeveyJenningsDiagram *diagram=0) | |
C'tor of the class for levey jennings axes. | |
virtual QSize | maximumSize () const |
pure virtual in QLayoutItem | |
virtual QSize | minimumSize () const |
pure virtual in QLayoutItem | |
bool | observedBy (AbstractDiagram *diagram) const |
virtual void | paint (QPainter *) |
reimpl | |
virtual void | paintAll (QPainter &painter) |
Call paintAll, if you want the background and the frame to be drawn before the normal paint() is invoked automatically. | |
virtual void | paintBackground (QPainter &painter, const QRect &rectangle) |
void | paintCtx (PaintContext *) |
reimpl | |
virtual void | paintFrame (QPainter &painter, const QRect &rectangle) |
virtual void | paintIntoRect (QPainter &painter, const QRect &rect) |
Draws the background and frame, then calls paint(). | |
QLayout * | parentLayout () |
virtual const Position | position () const |
void | removeFromParentLayout () |
void | resetTitleTextAttributes () |
Reset the title text attributes to the built-in default: | |
virtual int | rightOverlap (bool doNotRecalculate=false) const |
This is called at layout time by KDChart::AutoSpacerLayoutItem::sizeHint(). | |
RulerAttributes | rulerAttributes () const |
Returns the attributes to be used for painting the rulers. | |
void | setAnnotations (const QMap< double, QString > &annotations) |
Sets the axis annotations to annotations. | |
void | setBackgroundAttributes (const BackgroundAttributes &a) |
void | setCustomTicks (const QList< double > &ticksPostions) |
Sets custom ticks on the axis. | |
void | setDateFormat (Qt::DateFormat format) |
void | setFrameAttributes (const FrameAttributes &a) |
virtual void | setGeometry (const QRect &r) |
pure virtual in QLayoutItem | |
void | setLabels (const QStringList &list) |
Use this to specify your own set of strings, to be used as axis labels. | |
void | setParentLayout (QLayout *lay) |
virtual void | setParentWidget (QWidget *widget) |
Inform the item about its widget: This enables the item, to trigger that widget's update, whenever the size of the item's contents has changed. | |
virtual void | setPosition (Position p) |
void | setRulerAttributes (const RulerAttributes &a) |
Use this to specify the attributes used to paint the axis ruler. | |
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. | |
void | setTextAttributes (const TextAttributes &a) |
Use this to specify the text attributes to be used for axis labels. | |
void | setTitleSpace (qreal value) |
Sets the spacing between the title and the diagram. | |
void | setTitleText (const QString &text) |
Sets the optional text displayed as chart title. | |
void | setTitleTextAttributes (const TextAttributes &a) |
void | setType (LeveyJenningsGridAttributes::GridType type) |
Sets the type of the axis to type. | |
QStringList | shortLabels () const |
Returns a list of strings, that are used as axis labels, as set via setShortLabels. | |
virtual QSize | sizeHint () const |
pure virtual in QLayoutItem | |
virtual void | sizeHintChanged () const |
Report changed size hint: ask the parent widget to recalculate the layout. | |
TextAttributes | textAttributes () const |
Returns the text attributes to be used for axis labels. | |
qreal | titleSpace () const |
QString | titleText () const |
TextAttributes | titleTextAttributes () const |
Returns the text attributes that will be used for displaying the title text. | |
virtual int | topOverlap (bool doNotRecalculate=false) const |
This is called at layout time by KDChart::AutoSpacerLayoutItem::sizeHint(). | |
LeveyJenningsGridAttributes::GridType | type () const |
~LeveyJenningsAxis () | |
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 Slots | |
virtual void | delayedInit () |
called for initializing after the c'tor has completed | |
Protected Member Functions | |
virtual QRect | areaGeometry () const |
QRect | innerRect () const |
virtual void | paintAsAbscissa (PaintContext *) |
virtual void | paintAsOrdinate (PaintContext *) |
virtual void | positionHasChanged () |
Protected Attributes | |
QWidget * | mParent |
QLayout * | mParentLayout |
The class for levey jennings axes.
For being useful, axes need to be assigned to a diagram, see LeveyJenningsDiagram::addAxis and LeveyJenningsDiagram::takeAxis.
Definition at line 44 of file KDChartLeveyJenningsAxis.h.
enum KDChart::CartesianAxis::Position [inherited] |
Definition at line 50 of file KDChartCartesianAxis.h.
LeveyJenningsAxis::LeveyJenningsAxis | ( | LeveyJenningsDiagram * | diagram = 0 |
) | [explicit] |
C'tor of the class for levey jennings axes.
Definition at line 45 of file KDChartLeveyJenningsAxis.cpp.
LeveyJenningsAxis::~LeveyJenningsAxis | ( | ) |
Definition at line 51 of file KDChartLeveyJenningsAxis.cpp.
References d, KDChart::AbstractAxis::diagram(), and KDChart::AbstractCartesianDiagram::takeAxis().
void AbstractAreaBase::alignToReferencePoint | ( | const RelativePosition & | position | ) | [inherited] |
Definition at line 88 of file KDChartAbstractAreaBase.cpp.
QMap< double, QString > CartesianAxis::annotations | ( | ) | const [inherited] |
Returns the currently set axis annotations.
Definition at line 1801 of file KDChartCartesianAxis.cpp.
References d.
Referenced by KDChart::CartesianAxis::paintCtx().
QRect AbstractArea::areaGeometry | ( | ) | const [protected, virtual, inherited] |
Implements KDChart::AbstractAreaBase.
Definition at line 147 of file KDChartAbstractArea.cpp.
Referenced by KDChart::CartesianCoordinatePlane::drawingArea(), KDChart::TernaryCoordinatePlane::layoutDiagrams(), KDChart::PolarCoordinatePlane::layoutDiagrams(), KDChart::TernaryCoordinatePlane::paint(), KDChart::CartesianAxis::paint(), KDChart::AbstractArea::paintAll(), and KDChart::CartesianAxis::paintCtx().
BackgroundAttributes AbstractAreaBase::backgroundAttributes | ( | ) | const [inherited] |
Definition at line 118 of file KDChartAbstractAreaBase.cpp.
References d.
Referenced by KDChart::AbstractAreaBase::compare(), and updateCommonBrush().
int AbstractArea::bottomOverlap | ( | bool | doNotRecalculate = false |
) | const [virtual, inherited] |
This is called at layout time by KDChart:AutoSpacerLayoutItem::sizeHint().
The method triggers AbstractArea::sizeHint() to find out the amount of overlap at the bottom edge of the area.
Definition at line 98 of file KDChartAbstractArea.cpp.
References d.
Referenced by KDChart::AutoSpacerLayoutItem::sizeHint().
bool AbstractAreaBase::compare | ( | const AbstractAreaBase * | other | ) | const [inherited] |
Returns true if both areas have the same settings.
Definition at line 73 of file KDChartAbstractAreaBase.cpp.
References KDChart::AbstractAreaBase::backgroundAttributes(), and KDChart::AbstractAreaBase::frameAttributes().
bool AbstractAxis::compare | ( | const AbstractAxis * | other | ) | const [inherited] |
Returns true if both axes have the same settings.
Definition at line 139 of file KDChartAbstractAxis.cpp.
References KDChart::AbstractAxis::labels(), KDChart::AbstractAxis::shortLabels(), and KDChart::AbstractAxis::textAttributes().
bool CartesianAxis::compare | ( | const CartesianAxis * | other | ) | const [inherited] |
Returns true if both axes have the same settings.
Definition at line 80 of file KDChartCartesianAxis.cpp.
References KDChart::CartesianAxis::position(), KDChart::CartesianAxis::titleText(), and KDChart::CartesianAxis::titleTextAttributes().
bool LeveyJenningsAxis::compare | ( | const LeveyJenningsAxis * | other | ) | const |
Returns true if both axes have the same settings.
Definition at line 121 of file KDChartLeveyJenningsAxis.cpp.
References type().
void AbstractAxis::connectSignals | ( | ) | [virtual, inherited] |
Wireing the signal/slot connections.
This method gets called automatically, each time, when you assign the axis to a diagram, either by passing a diagram* to the c'tor, or by calling the diagram's setAxis method, resp.
If overwriting this method in derived classes, make sure to call this base method AbstractAxis::connectSignals(), so your axis gets connected to the diagram's built-in signals.
Definition at line 175 of file KDChartAbstractAxis.cpp.
References d, and KDChart::AbstractAxis::update().
Referenced by KDChart::AbstractAxis::createObserver().
const AbstractCoordinatePlane * AbstractAxis::coordinatePlane | ( | ) | const [inherited] |
Convenience function, returns the coordinate plane, in which this axis is used.
If the axis is not used in a coordinate plane, the return value is Zero.
Definition at line 238 of file KDChartAbstractAxis.cpp.
References d.
Referenced by KDChart::CartesianCoordinatePlane::sharedAxisMasterPlane().
void AbstractAxis::createObserver | ( | AbstractDiagram * | diagram | ) | [inherited] |
Definition at line 164 of file KDChartAbstractAxis.cpp.
References KDChart::AbstractAxis::connectSignals(), and d.
Referenced by KDChart::AbstractCartesianDiagram::addAxis().
const QString AbstractAxis::customizedLabel | ( | const QString & | label | ) | const [virtual, inherited] |
Implement this method if you want to adjust axis labels before they are printed.
KD Chart is calling this method immediately before drawing the text, this means: What you return here will be drawn without further modifications.
label | The text of the label as KD Chart has calculated it automatically (or as it was taken from a QStringList provided by you, resp.) |
label
. Definition at line 158 of file KDChartAbstractAxis.cpp.
Referenced by paintAsOrdinate(), and KDChart::CartesianAxis::paintCtx().
QList< double > CartesianAxis::customTicks | ( | ) | const [inherited] |
Returns the currently set custom ticks on the axis.
Definition at line 1815 of file KDChartCartesianAxis.cpp.
References d.
Qt::DateFormat LeveyJenningsAxis::dateFormat | ( | ) | const |
Definition at line 111 of file KDChartLeveyJenningsAxis.cpp.
References d.
Referenced by paintAsAbscissa().
void AbstractAxis::delayedInit | ( | ) | [protected, virtual, slot, inherited] |
called for initializing after the c'tor has completed
Definition at line 131 of file KDChartAbstractAxis.cpp.
References d.
Referenced by KDChart::AbstractAxis::AbstractAxis().
void AbstractAxis::deleteObserver | ( | AbstractDiagram * | diagram | ) | [inherited] |
Definition at line 170 of file KDChartAbstractAxis.cpp.
References d.
Referenced by KDChart::AbstractCartesianDiagram::takeAxis(), and KDChart::AbstractCartesianDiagram::~AbstractCartesianDiagram().
const AbstractDiagram * KDChart::AbstractAxis::diagram | ( | ) | const [inherited] |
Definition at line 245 of file KDChartAbstractAxis.cpp.
References d.
Referenced by KDChart::CartesianAxis::paintCtx(), KDChart::CartesianAxis::~CartesianAxis(), and ~LeveyJenningsAxis().
Qt::Orientations CartesianAxis::expandingDirections | ( | ) | const [virtual, inherited] |
pure virtual in QLayoutItem
Definition at line 1429 of file KDChartCartesianAxis.cpp.
References KDChart::CartesianAxis::Bottom, KDChart::CartesianAxis::Left, KDChart::CartesianAxis::position(), KDChart::CartesianAxis::Right, and KDChart::CartesianAxis::Top.
FrameAttributes AbstractAreaBase::frameAttributes | ( | ) | const [inherited] |
Definition at line 104 of file KDChartAbstractAreaBase.cpp.
References d.
Referenced by KDChart::Legend::clone(), KDChart::AbstractAreaBase::compare(), and updateCommonBrush().
QRect CartesianAxis::geometry | ( | ) | const [virtual, inherited] |
pure virtual in QLayoutItem
Implements KDChart::AbstractAxis.
Definition at line 1780 of file KDChartCartesianAxis.cpp.
References d.
Referenced by paintAsAbscissa(), paintAsOrdinate(), and KDChart::CartesianAxis::paintCtx().
void AbstractAreaBase::getFrameLeadings | ( | int & | left, | |
int & | top, | |||
int & | right, | |||
int & | bottom | |||
) | const [inherited] |
Definition at line 210 of file KDChartAbstractAreaBase.cpp.
References d.
Referenced by KDChart::AbstractAreaBase::innerRect(), and KDChart::AbstractAreaWidget::paintAll().
bool CartesianAxis::hasDefaultTitleTextAttributes | ( | ) | const [inherited] |
Definition at line 135 of file KDChartCartesianAxis.cpp.
References d.
Referenced by KDChart::CartesianAxis::titleTextAttributes().
QRect AbstractAreaBase::innerRect | ( | ) | const [protected, inherited] |
Definition at line 226 of file KDChartAbstractAreaBase.cpp.
References KDChart::AbstractAreaBase::areaGeometry(), and KDChart::AbstractAreaBase::getFrameLeadings().
Referenced by KDChart::TextArea::paintAll(), and KDChart::AbstractArea::paintAll().
bool CartesianAxis::isAbscissa | ( | ) | const [virtual, inherited] |
Definition at line 213 of file KDChartCartesianAxis.cpp.
References KDChart::CartesianAxis::Bottom, d, KDChart::CartesianAxis::Left, KDChart::CartesianAxis::position(), referenceDiagramIsBarDiagram(), KDChart::CartesianAxis::Right, and KDChart::CartesianAxis::Top.
Referenced by paintAsAbscissa(), KDChart::CartesianAxis::paintCtx(), KDChart::CartesianCoordinatePlane::sharedAxisMasterPlane(), and KDChart::CartesianAxis::tickLength().
bool CartesianAxis::isEmpty | ( | ) | const [virtual, inherited] |
pure virtual in QLayoutItem
Definition at line 1424 of file KDChartCartesianAxis.cpp.
Referenced by KDChart::CartesianAxis::paintCtx().
bool CartesianAxis::isOrdinate | ( | ) | const [virtual, inherited] |
Definition at line 221 of file KDChartCartesianAxis.cpp.
References KDChart::CartesianAxis::Bottom, d, KDChart::CartesianAxis::Left, KDChart::CartesianAxis::position(), referenceDiagramIsBarDiagram(), KDChart::CartesianAxis::Right, and KDChart::CartesianAxis::Top.
Referenced by paintAsOrdinate(), paintCtx(), KDChart::CartesianAxis::paintCtx(), and KDChart::CartesianCoordinatePlane::sharedAxisMasterPlane().
QStringList AbstractAxis::labels | ( | ) | const [inherited] |
Returns a list of strings, that are used as axis labels, as set via setLabels.
Definition at line 219 of file KDChartAbstractAxis.cpp.
References d.
Referenced by KDChart::AbstractAxis::compare(), paintAsOrdinate(), KDChart::TernaryAxis::paintCtx(), and KDChart::CartesianAxis::paintCtx().
void CartesianAxis::layoutPlanes | ( | ) | [virtual, inherited] |
Definition at line 155 of file KDChartCartesianAxis.cpp.
References d, and KDChart::AbstractCoordinatePlane::layoutPlanes().
Referenced by KDChart::CartesianAxis::resetTitleTextAttributes(), KDChart::CartesianAxis::setPosition(), KDChart::CartesianAxis::setTitleText(), and KDChart::CartesianAxis::setTitleTextAttributes().
int AbstractArea::leftOverlap | ( | bool | doNotRecalculate = false |
) | const [virtual, inherited] |
This is called at layout time by KDChart::AutoSpacerLayoutItem::sizeHint().
The method triggers AbstractArea::sizeHint() to find out the amount of overlap at the left edge of the area.
Definition at line 74 of file KDChartAbstractArea.cpp.
References d.
Referenced by KDChart::AutoSpacerLayoutItem::sizeHint().
QSize CartesianAxis::maximumSize | ( | ) | const [virtual, inherited] |
pure virtual in QLayoutItem
Definition at line 1481 of file KDChartCartesianAxis.cpp.
References d.
Referenced by KDChart::CartesianAxis::minimumSize(), and KDChart::CartesianAxis::sizeHint().
QSize CartesianAxis::minimumSize | ( | ) | const [virtual, inherited] |
pure virtual in QLayoutItem
Definition at line 1762 of file KDChartCartesianAxis.cpp.
References KDChart::CartesianAxis::maximumSize().
bool KDChart::AbstractAxis::observedBy | ( | AbstractDiagram * | diagram | ) | const [inherited] |
Definition at line 250 of file KDChartAbstractAxis.cpp.
References d.
void CartesianAxis::paint | ( | QPainter * | painter | ) | [virtual, inherited] |
reimpl
Implements KDChart::AbstractLayoutItem.
Definition at line 229 of file KDChartCartesianAxis.cpp.
References KDChart::AbstractArea::areaGeometry(), d, KDChart::CartesianAxis::paintCtx(), KDChart::PaintContext::setCoordinatePlane(), KDChart::PaintContext::setPainter(), and KDChart::PaintContext::setRectangle().
void AbstractArea::paintAll | ( | QPainter & | painter | ) | [virtual, inherited] |
Call paintAll, if you want the background and the frame to be drawn before the normal paint() is invoked automatically.
Reimplemented from KDChart::AbstractLayoutItem.
Reimplemented in KDChart::TernaryAxis.
Definition at line 120 of file KDChartAbstractArea.cpp.
References KDChart::AbstractArea::areaGeometry(), d, KDChart::AbstractAreaBase::innerRect(), KDChart::AbstractLayoutItem::paint(), KDChart::AbstractAreaBase::paintBackground(), and KDChart::AbstractAreaBase::paintFrame().
Referenced by KDChart::AbstractArea::paintIntoRect().
void LeveyJenningsAxis::paintAsAbscissa | ( | PaintContext * | context | ) | [protected, virtual] |
Definition at line 214 of file KDChartLeveyJenningsAxis.cpp.
References KDChart::CartesianAxis::Bottom, KDChart::PaintContext::coordinatePlane(), d, dateFormat(), KDChart::CartesianAxis::geometry(), KDChart::CartesianAxis::isAbscissa(), KDChart::TextAttributes::isVisible(), KDChartEnums::MeasureOrientationMinimum, paintCtx(), KDChart::PaintContext::painter(), KDChart::AbstractCoordinatePlane::parent(), KDChart::CartesianAxis::position(), KDChart::AbstractAxis::setLabels(), KDChart::AbstractAxis::textAttributes(), and KDChart::LeveyJenningsDiagram::timeRange().
Referenced by paintCtx().
void LeveyJenningsAxis::paintAsOrdinate | ( | PaintContext * | context | ) | [protected, virtual] |
Definition at line 153 of file KDChartLeveyJenningsAxis.cpp.
References KDChart::LeveyJenningsDiagram::calculatedMeanValue(), KDChart::LeveyJenningsDiagram::calculatedStandardDeviation(), KDChart::PaintContext::coordinatePlane(), KDChart::AbstractAxis::customizedLabel(), d, KDChart::LeveyJenningsGridAttributes::Expected, KDChart::LeveyJenningsDiagram::expectedMeanValue(), KDChart::LeveyJenningsDiagram::expectedStandardDeviation(), KDChart::CartesianAxis::geometry(), KDChart::CartesianAxis::isOrdinate(), KDChart::TextAttributes::isVisible(), KDChart::AbstractAxis::labels(), KDChart::CartesianAxis::Left, KDChartEnums::MeasureOrientationMinimum, KDChart::PaintContext::painter(), KDChart::AbstractCoordinatePlane::parent(), KDChart::TextAttributes::pen(), KDChart::CartesianAxis::position(), KDChart::PrintingParameters::scalePen(), KDChart::AbstractAxis::textAttributes(), KDChart::CartesianCoordinatePlane::translate(), and type().
Referenced by paintCtx().
void AbstractAreaBase::paintBackground | ( | QPainter & | painter, | |
const QRect & | rectangle | |||
) | [virtual, inherited] |
Definition at line 194 of file KDChartAbstractAreaBase.cpp.
References d, and KDChart::AbstractAreaBase::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, inherited] |
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 KDChart::AbstractAreaBase::paintBackground().
void LeveyJenningsAxis::paintCtx | ( | PaintContext * | context | ) | [virtual] |
reimpl
Reimplemented from KDChart::CartesianAxis.
Definition at line 132 of file KDChartLeveyJenningsAxis.cpp.
References KDChart::PaintContext::coordinatePlane(), d, KDChart::CartesianAxis::isOrdinate(), paintAsAbscissa(), and paintAsOrdinate().
Referenced by paintAsAbscissa().
void AbstractAreaBase::paintFrame | ( | QPainter & | painter, | |
const QRect & | rectangle | |||
) | [virtual, inherited] |
Definition at line 202 of file KDChartAbstractAreaBase.cpp.
References d, and KDChart::AbstractAreaBase::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, inherited] |
Definition at line 175 of file KDChartAbstractAreaBase.cpp.
References KDChart::FrameAttributes::isVisible(), KDChart::FrameAttributes::pen(), and KDChart::PrintingParameters::scalePen().
Referenced by KDChart::AbstractAreaBase::paintFrame().
void AbstractArea::paintIntoRect | ( | QPainter & | painter, | |
const QRect & | rect | |||
) | [virtual, inherited] |
Draws the background and frame, then calls paint().
In most cases there is no need to overwrite this method in a derived class, but you would overwrite AbstractLayoutItem::paint() instead.
Definition at line 108 of file KDChartAbstractArea.cpp.
References KDChart::AbstractArea::paintAll().
QLayout* KDChart::AbstractLayoutItem::parentLayout | ( | ) | [inherited] |
Definition at line 76 of file KDChartLayoutItems.h.
const CartesianAxis::Position CartesianAxis::position | ( | ) | const [virtual, inherited] |
Definition at line 150 of file KDChartCartesianAxis.cpp.
References d.
Referenced by KDChart::CartesianAxis::compare(), KDChart::CartesianAxis::expandingDirections(), KDChart::CartesianAxis::isAbscissa(), KDChart::CartesianAxis::isOrdinate(), paintAsAbscissa(), paintAsOrdinate(), KDChart::CartesianAxis::paintCtx(), and KDChart::CartesianAxis::tickLength().
void KDChart::AbstractArea::positionChanged | ( | AbstractArea * | ) | [signal, inherited] |
Referenced by KDChart::AbstractArea::positionHasChanged().
void AbstractArea::positionHasChanged | ( | ) | [protected, virtual, inherited] |
Reimplemented from KDChart::AbstractAreaBase.
Definition at line 152 of file KDChartAbstractArea.cpp.
References KDChart::AbstractArea::positionChanged().
void KDChart::AbstractLayoutItem::removeFromParentLayout | ( | ) | [inherited] |
Definition at line 80 of file KDChartLayoutItems.h.
Referenced by KDChart::Chart::takeCoordinatePlane().
void CartesianAxis::resetTitleTextAttributes | ( | ) | [inherited] |
Reset the title text attributes to the built-in default:
Same font and pen as AbstractAxis::textAttributes() and 1.5 times their size.
Definition at line 129 of file KDChartCartesianAxis.cpp.
References d, and KDChart::CartesianAxis::layoutPlanes().
int AbstractArea::rightOverlap | ( | bool | doNotRecalculate = false |
) | const [virtual, inherited] |
This is called at layout time by KDChart::AutoSpacerLayoutItem::sizeHint().
The method triggers AbstractArea::sizeHint() to find out the amount of overlap at the right edge of the area.
Definition at line 82 of file KDChartAbstractArea.cpp.
References d.
Referenced by KDChart::AutoSpacerLayoutItem::sizeHint().
RulerAttributes AbstractAxis::rulerAttributes | ( | ) | const [inherited] |
Returns the attributes to be used for painting the rulers.
Definition at line 205 of file KDChartAbstractAxis.cpp.
References d.
Referenced by KDChart::CartesianAxis::paintCtx().
void CartesianAxis::setAnnotations | ( | const QMap< double, QString > & | annotations | ) | [inherited] |
Sets the axis annotations to annotations.
Annotations are a QMap of doubles and QStrings defining special markers and their position. If you use annotations, the normal ticks and values will be invisible. To unset the annotations, pass an empty QMap.
Definition at line 1806 of file KDChartCartesianAxis.cpp.
References d, and KDChart::AbstractAxis::update().
void AbstractAreaBase::setBackgroundAttributes | ( | const BackgroundAttributes & | a | ) | [inherited] |
Definition at line 109 of file KDChartAbstractAreaBase.cpp.
References d, and KDChart::AbstractAreaBase::positionHasChanged().
void CartesianAxis::setCachedSizeDirty | ( | ) | const [slot, inherited] |
Definition at line 1475 of file KDChartCartesianAxis.cpp.
References d.
Referenced by KDChart::CartesianAxis::setGeometry().
void CartesianAxis::setCustomTicks | ( | const QList< double > & | ticksPostions | ) | [inherited] |
Sets custom ticks on the axis.
Ticks are a QList of doubles defining their special position.
Definition at line 1820 of file KDChartCartesianAxis.cpp.
References d, and KDChart::AbstractAxis::update().
void LeveyJenningsAxis::setDateFormat | ( | Qt::DateFormat | format | ) |
Definition at line 116 of file KDChartLeveyJenningsAxis.cpp.
References d.
void AbstractAreaBase::setFrameAttributes | ( | const FrameAttributes & | a | ) | [inherited] |
Definition at line 95 of file KDChartAbstractAreaBase.cpp.
References d, and KDChart::AbstractAreaBase::positionHasChanged().
Referenced by KDChart::Legend::clone().
void CartesianAxis::setGeometry | ( | const QRect & | r | ) | [virtual, inherited] |
pure virtual in QLayoutItem
Implements KDChart::AbstractAxis.
Definition at line 1772 of file KDChartCartesianAxis.cpp.
References d, and KDChart::CartesianAxis::setCachedSizeDirty().
void AbstractAxis::setLabels | ( | const QStringList & | list | ) | [inherited] |
Use this to specify your own set of strings, to be used as axis labels.
Labels specified via setLabels take precedence: If a non-empty list is passed, KD Chart will use these strings as axis labels, instead of calculating them.
If you a smaller number of strings than the number of labels drawn at this axis, KD Chart will iterate over the list, repeating the strings, until all labels are drawn. As an example you could specify the seven days of the week as abscissa labels, which would be repeatedly used then.
By passing an empty QStringList you can reset the default behaviour.
Definition at line 210 of file KDChartAbstractAxis.cpp.
References d, and KDChart::AbstractAxis::update().
Referenced by paintAsAbscissa().
void KDChart::AbstractLayoutItem::setParentLayout | ( | QLayout * | lay | ) | [inherited] |
Definition at line 72 of file KDChartLayoutItems.h.
void KDChart::AbstractLayoutItem::setParentWidget | ( | QWidget * | widget | ) | [virtual, inherited] |
Inform the item about its widget: This enables the item, to trigger that widget's update, whenever the size of the item's contents has changed.
Thus, you need to call setParentWidget on every item, that has a non-fixed size.
Definition at line 62 of file KDChartLayoutItems.cpp.
References KDChart::AbstractLayoutItem::mParent.
Referenced by KDChart::HeaderFooter::setParent(), and KDChart::AbstractCartesianDiagram::takeAxis().
void CartesianAxis::setPosition | ( | Position | p | ) | [virtual, inherited] |
Definition at line 141 of file KDChartCartesianAxis.cpp.
References d, and KDChart::CartesianAxis::layoutPlanes().
void AbstractAxis::setRulerAttributes | ( | const RulerAttributes & | a | ) | [inherited] |
Use this to specify the attributes used to paint the axis ruler.
Every axis has a default set of ruler attributes that is exactly the same among them. Use this method to specify your own attributes.
Definition at line 199 of file KDChartAbstractAxis.cpp.
References d, and KDChart::AbstractAxis::update().
void AbstractAxis::setShortLabels | ( | const QStringList & | list | ) | [inherited] |
Use this to specify your own set of strings, to be used as axis labels, in case the normal labels are too long.
Definition at line 224 of file KDChartAbstractAxis.cpp.
References d, and KDChart::AbstractAxis::update().
void AbstractAxis::setTextAttributes | ( | const TextAttributes & | a | ) | [inherited] |
Use this to specify the text attributes to be used for axis labels.
By default, the reference area will be set at painting time. It will be the then-valid coordinate plane's parent widget, so normally, it will be the KDChart::Chart. Thus the labels of all of your axes in all of your diagrams within that Chart will be drawn in same font size, by default.
Definition at line 184 of file KDChartAbstractAxis.cpp.
References d, and KDChart::AbstractAxis::update().
Referenced by setType().
void CartesianAxis::setTitleSpace | ( | qreal | value | ) | [inherited] |
Sets the spacing between the title and the diagram.
Definition at line 382 of file KDChartCartesianAxis.cpp.
References d.
void CartesianAxis::setTitleText | ( | const QString & | text | ) | [inherited] |
Sets the optional text displayed as chart title.
Definition at line 99 of file KDChartCartesianAxis.cpp.
References d, and KDChart::CartesianAxis::layoutPlanes().
void CartesianAxis::setTitleTextAttributes | ( | const TextAttributes & | a | ) | [inherited] |
Definition at line 110 of file KDChartCartesianAxis.cpp.
References d, and KDChart::CartesianAxis::layoutPlanes().
void LeveyJenningsAxis::setType | ( | LeveyJenningsGridAttributes::GridType | type | ) |
Sets the type of the axis to type.
This method colors the label to the default color of the respective type. Please make sure to re-set the colors after calling this, if you want them different. Setting the type is only valid for axes located right or left from the diagram. An axis on the bottom always shows the timeline.
Definition at line 92 of file KDChartLeveyJenningsAxis.cpp.
References d, KDChart::LeveyJenningsGridAttributes::Expected, KDChart::TextAttributes::pen(), KDChart::TextAttributes::setPen(), KDChart::AbstractAxis::setTextAttributes(), and KDChart::AbstractAxis::textAttributes().
QStringList AbstractAxis::shortLabels | ( | ) | const [inherited] |
Returns a list of strings, that are used as axis labels, as set via setShortLabels.
Definition at line 233 of file KDChartAbstractAxis.cpp.
References d.
Referenced by KDChart::AbstractAxis::compare(), and KDChart::CartesianAxis::paintCtx().
QSize CartesianAxis::sizeHint | ( | ) | const [virtual, inherited] |
pure virtual in QLayoutItem
Definition at line 1767 of file KDChartCartesianAxis.cpp.
References KDChart::CartesianAxis::maximumSize().
void KDChart::AbstractLayoutItem::sizeHintChanged | ( | ) | const [virtual, inherited] |
Report changed size hint: ask the parent widget to recalculate the layout.
Definition at line 84 of file KDChartLayoutItems.cpp.
References KDChart::AbstractLayoutItem::mParent.
Referenced by KDChart::TextLayoutItem::sizeHintAndRotatedCorners().
TextAttributes AbstractAxis::textAttributes | ( | ) | const [inherited] |
Returns the text attributes to be used for axis labels.
Definition at line 193 of file KDChartAbstractAxis.cpp.
References d.
Referenced by KDChart::AbstractAxis::compare(), paintAsAbscissa(), paintAsOrdinate(), KDChart::CartesianAxis::paintCtx(), setType(), and KDChart::CartesianAxis::titleTextAttributes().
int CartesianAxis::tickLength | ( | bool | subUnitTicks = false |
) | const [virtual, slot, inherited] |
Definition at line 1785 of file KDChartCartesianAxis.cpp.
References KDChart::CartesianAxis::isAbscissa(), KDChart::CartesianAxis::Left, KDChart::CartesianAxis::position(), and KDChart::CartesianAxis::Top.
Referenced by KDChart::CartesianAxis::paintCtx().
qreal CartesianAxis::titleSpace | ( | ) | const [inherited] |
Definition at line 387 of file KDChartCartesianAxis.cpp.
References d.
QString CartesianAxis::titleText | ( | ) | const [inherited] |
Definition at line 105 of file KDChartCartesianAxis.cpp.
References d.
Referenced by KDChart::CartesianAxis::compare(), and KDChart::CartesianAxis::paintCtx().
TextAttributes CartesianAxis::titleTextAttributes | ( | ) | const [inherited] |
Returns the text attributes that will be used for displaying the title text.
This is either the text attributes as specified by setTitleTextAttributes, or (if setTitleTextAttributes() was not called) the default text attributes.
Definition at line 117 of file KDChartCartesianAxis.cpp.
References d, KDChart::TextAttributes::fontSize(), KDChart::CartesianAxis::hasDefaultTitleTextAttributes(), KDChart::TextAttributes::setFontSize(), and KDChart::AbstractAxis::textAttributes().
Referenced by KDChart::CartesianAxis::compare().
int AbstractArea::topOverlap | ( | bool | doNotRecalculate = false |
) | const [virtual, inherited] |
This is called at layout time by KDChart::AutoSpacerLayoutItem::sizeHint().
The method triggers AbstractArea::sizeHint() to find out the amount of overlap at the top edge of the area.
Definition at line 90 of file KDChartAbstractArea.cpp.
References d.
Referenced by KDChart::AutoSpacerLayoutItem::sizeHint().
LeveyJenningsGridAttributes::GridType LeveyJenningsAxis::type | ( | ) | const |
Definition at line 78 of file KDChartLeveyJenningsAxis.cpp.
References d.
Referenced by compare(), and paintAsOrdinate().
void KDChart::AbstractAxis::update | ( | ) | [slot, inherited] |
Definition at line 255 of file KDChartAbstractAxis.cpp.
References d.
Referenced by KDChart::AbstractAxis::connectSignals(), KDChart::CartesianAxis::setAnnotations(), KDChart::CartesianAxis::setCustomTicks(), KDChart::AbstractAxis::setLabels(), KDChart::AbstractAxis::setRulerAttributes(), KDChart::AbstractAxis::setShortLabels(), and KDChart::AbstractAxis::setTextAttributes().
QWidget* KDChart::AbstractLayoutItem::mParent [protected, inherited] |
QLayout* KDChart::AbstractLayoutItem::mParentLayout [protected, inherited] |
Definition at line 91 of file KDChartLayoutItems.h.
Referenced by KDChart::AutoSpacerLayoutItem::paint().