KD Chart 2
[rev.2.5.1]
|
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< qreal, QString > | annotations () const |
Returns the currently set axis annotations. More... | |
BackgroundAttributes | backgroundAttributes () const |
virtual int | bottomOverlap (bool doNotRecalculate=false) const |
This is called at layout time by KDChart:AutoSpacerLayoutItem::sizeHint(). More... | |
bool | compare (const CartesianAxis *other) const |
Returns true if both axes have the same settings. More... | |
bool | compare (const LeveyJenningsAxis *other) const |
Returns true if both axes have the same settings. More... | |
bool | compare (const AbstractAreaBase *other) const |
Returns true if both areas have the same settings. More... | |
bool | compare (const AbstractAxis *other) const |
Returns true if both axes have the same settings. More... | |
virtual void | connectSignals () |
Wireing the signal/slot connections. More... | |
const AbstractCoordinatePlane * | coordinatePlane () 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 |
Implement this method if you want to adjust axis labels before they are printed. More... | |
int | customTickLength () const |
Returns the length of custom ticks on the axis. More... | |
QList< qreal > | customTicks () const |
Returns the currently set custom ticks on the axis. More... | |
Qt::DateFormat | dateFormat () const |
void | deleteObserver (AbstractDiagram *diagram) |
const AbstractDiagram * | diagram () const |
virtual Qt::Orientations | expandingDirections () const |
pure virtual in QLayoutItem More... | |
FrameAttributes | frameAttributes () const |
virtual QRect | geometry () const |
pure virtual in QLayoutItem More... | |
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 More... | |
virtual bool | isOrdinate () const |
QStringList | labels () const |
Returns a list of strings, that are used as axis labels, as set via setLabels. More... | |
virtual void | layoutPlanes () |
virtual int | leftOverlap (bool doNotRecalculate=false) const |
This is called at layout time by KDChart::AutoSpacerLayoutItem::sizeHint(). More... | |
LeveyJenningsAxis (LeveyJenningsDiagram *diagram=0) | |
C'tor of the class for levey jennings axes. More... | |
virtual QSize | maximumSize () const |
pure virtual in QLayoutItem More... | |
virtual QSize | minimumSize () const |
pure virtual in QLayoutItem More... | |
bool | observedBy (AbstractDiagram *diagram) const |
virtual void | paint (QPainter *) |
reimpl More... | |
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. More... | |
virtual void | paintBackground (QPainter &painter, const QRect &rectangle) |
void | paintCtx (PaintContext *) |
reimpl More... | |
virtual void | paintFrame (QPainter &painter, const QRect &rectangle) |
virtual void | paintIntoRect (QPainter &painter, const QRect &rect) |
Draws the background and frame, then calls paint(). More... | |
QLayout * | parentLayout () |
virtual const Position | position () const |
void | removeFromParentLayout () |
void | resetTitleTextAttributes () |
Reset the title text attributes to the built-in default: More... | |
virtual int | rightOverlap (bool doNotRecalculate=false) const |
This is called at layout time by KDChart::AutoSpacerLayoutItem::sizeHint(). More... | |
RulerAttributes | rulerAttributes () const |
Returns the attributes to be used for painting the rulers. More... | |
void | setAnnotations (const QMap< qreal, QString > &annotations) |
Sets the axis annotations to annotations. More... | |
void | setBackgroundAttributes (const BackgroundAttributes &a) |
void | setCustomTickLength (int value) |
Sets the length of custom ticks on the axis. More... | |
void | setCustomTicks (const QList< qreal > &ticksPostions) |
Sets custom ticks on the axis. More... | |
void | setDateFormat (Qt::DateFormat format) |
void | setFrameAttributes (const FrameAttributes &a) |
virtual void | setGeometry (const QRect &r) |
pure virtual in QLayoutItem More... | |
void | setLabels (const QStringList &list) |
Use this to specify your own set of strings, to be used as axis labels. More... | |
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. More... | |
virtual void | setPosition (Position p) |
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... | |
void | setTitleSize (qreal value) |
Sets the size of the title. More... | |
void | setTitleSpace (qreal value) |
Sets the spacing between the title and the diagram. More... | |
void | setTitleText (const QString &text) |
Sets the optional text displayed as chart title. More... | |
void | setTitleTextAttributes (const TextAttributes &a) |
void | setType (LeveyJenningsGridAttributes::GridType type) |
Sets the type of the axis to type. More... | |
QStringList | shortLabels () const |
Returns a list of strings, that are used as axis labels, as set via setShortLabels. More... | |
virtual QSize | sizeHint () const |
pure virtual in QLayoutItem More... | |
virtual void | sizeHintChanged () const |
Report changed size hint: ask the parent widget to recalculate the layout. More... | |
TextAttributes | textAttributes () const |
Returns the text attributes to be used for axis labels. More... | |
qreal | titleSize () const |
qreal | titleSpace () const |
QString | titleText () const |
TextAttributes | titleTextAttributes () const |
Returns the text attributes that will be used for displaying the title text. More... | |
virtual int | topOverlap (bool doNotRecalculate=false) const |
This is called at layout time by KDChart::AutoSpacerLayoutItem::sizeHint(). More... | |
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 More... | |
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.
|
inherited |
Enumerator | |
---|---|
Bottom | |
Top | |
Right | |
Left |
Definition at line 50 of file KDChartCartesianAxis.h.
|
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().
|
inherited |
Definition at line 81 of file KDChartAbstractAreaBase.cpp.
|
inherited |
Returns the currently set axis annotations.
Definition at line 1072 of file KDChartCartesianAxis.cpp.
References d.
Referenced by KDChart::CartesianAxis::setAnnotations().
|
protectedvirtualinherited |
Implements KDChart::AbstractAreaBase.
Definition at line 151 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().
|
inherited |
Definition at line 111 of file KDChartAbstractAreaBase.cpp.
References d.
Referenced by KDChart::AbstractAreaBase::compare(), and updateCommonBrush().
|
virtualinherited |
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().
|
inherited |
Returns true if both axes have the same settings.
Definition at line 376 of file KDChartCartesianAxis.cpp.
References KDChart::AbstractAxis::compare(), 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().
|
inherited |
Returns true if both areas have the same settings.
Definition at line 71 of file KDChartAbstractAreaBase.cpp.
References KDChart::AbstractAreaBase::backgroundAttributes(), and KDChart::AbstractAreaBase::frameAttributes().
|
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().
Referenced by KDChart::CartesianAxis::compare().
|
virtualinherited |
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 171 of file KDChartAbstractAxis.cpp.
References KDChart::AbstractAxis::coordinateSystemChanged(), and d.
|
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 235 of file KDChartAbstractAxis.cpp.
References d.
Referenced by KDChart::CartesianCoordinatePlane::sharedAxisMasterPlane().
|
inherited |
Definition at line 161 of file KDChartAbstractAxis.cpp.
References d.
|
virtualinherited |
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 155 of file KDChartAbstractAxis.cpp.
Referenced by paintAsOrdinate().
|
inherited |
Returns the length of custom ticks on the axis.
Definition at line 1061 of file KDChartCartesianAxis.cpp.
References d.
|
inherited |
Returns the currently set custom ticks on the axis.
Definition at line 1086 of file KDChartCartesianAxis.cpp.
References d.
Qt::DateFormat LeveyJenningsAxis::dateFormat | ( | ) | const |
Definition at line 111 of file KDChartLeveyJenningsAxis.cpp.
References d.
Referenced by paintAsAbscissa().
|
protectedvirtualslotinherited |
called for initializing after the c'tor has completed
Definition at line 131 of file KDChartAbstractAxis.cpp.
References d.
Referenced by KDChart::AbstractAxis::AbstractAxis().
|
inherited |
Definition at line 166 of file KDChartAbstractAxis.cpp.
References d.
Referenced by KDChart::AbstractCartesianDiagram::takeAxis(), and KDChart::AbstractCartesianDiagram::~AbstractCartesianDiagram().
|
inherited |
Definition at line 242 of file KDChartAbstractAxis.cpp.
References d.
Referenced by KDChart::CartesianAxis::~CartesianAxis(), and ~LeveyJenningsAxis().
|
virtualinherited |
pure virtual in QLayoutItem
Definition at line 886 of file KDChartCartesianAxis.cpp.
References KDChart::CartesianAxis::Bottom, KDChart::CartesianAxis::Left, KDChart::CartesianAxis::position(), KDChart::CartesianAxis::Right, and KDChart::CartesianAxis::Top.
|
inherited |
Definition at line 97 of file KDChartAbstractAreaBase.cpp.
References d.
Referenced by KDChart::Legend::clone(), KDChart::AbstractAreaBase::compare(), and updateCommonBrush().
|
virtualinherited |
pure virtual in QLayoutItem
Implements KDChart::AbstractAxis.
Definition at line 1051 of file KDChartCartesianAxis.cpp.
References d.
Referenced by paintAsAbscissa(), and paintAsOrdinate().
|
inherited |
Definition at line 213 of file KDChartAbstractAreaBase.cpp.
References d.
Referenced by KDChart::AbstractAreaBase::innerRect(), and KDChart::AbstractAreaWidget::paintAll().
|
inherited |
Definition at line 431 of file KDChartCartesianAxis.cpp.
References d.
Referenced by KDChart::CartesianAxis::titleTextAttributes().
|
protectedinherited |
Definition at line 225 of file KDChartAbstractAreaBase.cpp.
References KDChart::AbstractAreaBase::areaGeometry(), and KDChart::AbstractAreaBase::getFrameLeadings().
Referenced by KDChart::AbstractArea::paintAll(), and KDChart::TextArea::paintAll().
|
virtualinherited |
Definition at line 486 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 KDChart::CartesianAxis::isOrdinate(), paintAsAbscissa(), KDChart::CartesianAxis::paintCtx(), and KDChart::CartesianCoordinatePlane::sharedAxisMasterPlane().
|
virtualinherited |
pure virtual in QLayoutItem
Definition at line 880 of file KDChartCartesianAxis.cpp.
Referenced by KDChart::CartesianAxis::paintCtx().
|
virtualinherited |
Definition at line 494 of file KDChartCartesianAxis.cpp.
References KDChart::CartesianAxis::isAbscissa().
Referenced by paintAsOrdinate(), paintCtx(), and KDChart::CartesianCoordinatePlane::sharedAxisMasterPlane().
|
inherited |
Returns a list of strings, that are used as axis labels, as set via setLabels.
Definition at line 216 of file KDChartAbstractAxis.cpp.
References d.
Referenced by KDChart::AbstractAxis::compare(), paintAsOrdinate(), and KDChart::TernaryAxis::paintCtx().
|
virtualinherited |
Definition at line 451 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().
|
virtualinherited |
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().
|
virtualinherited |
pure virtual in QLayoutItem
Definition at line 911 of file KDChartCartesianAxis.cpp.
References d.
Referenced by KDChart::CartesianAxis::minimumSize(), and KDChart::CartesianAxis::sizeHint().
|
virtualinherited |
pure virtual in QLayoutItem
Definition at line 1030 of file KDChartCartesianAxis.cpp.
References KDChart::CartesianAxis::maximumSize().
|
inherited |
Definition at line 247 of file KDChartAbstractAxis.cpp.
References d.
|
virtualinherited |
reimpl
Implements KDChart::AbstractLayoutItem.
Definition at line 499 of file KDChartCartesianAxis.cpp.
References KDChart::AbstractArea::areaGeometry(), d, KDChart::CartesianAxis::paintCtx(), KDChart::PaintContext::setCoordinatePlane(), KDChart::PaintContext::setPainter(), KDChart::PaintContext::setRectangle(), KDChart::AbstractCoordinatePlane::zoomFactorX(), and KDChart::AbstractCoordinatePlane::zoomFactorY().
|
virtualinherited |
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().
|
protectedvirtual |
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, KDChart::CartesianAxis::paintCtx(), KDChart::PaintContext::painter(), KDChart::AbstractCoordinatePlane::parent(), KDChart::CartesianAxis::position(), KDChart::AbstractAxis::setLabels(), KDChart::TextLayoutItem::sizeHint(), KDChart::AbstractAxis::textAttributes(), and KDChart::LeveyJenningsDiagram::timeRange().
Referenced by paintCtx().
|
protectedvirtual |
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().
|
virtualinherited |
Definition at line 189 of file KDChartAbstractAreaBase.cpp.
References d, and KDChart::AbstractAreaBase::paintBackgroundAttributes().
Referenced by KDChart::AbstractArea::paintAll(), KDChart::TextArea::paintAll(), and KDChart::AbstractAreaWidget::paintAll().
|
staticinherited |
Definition at line 118 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().
|
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().
|
virtualinherited |
Definition at line 205 of file KDChartAbstractAreaBase.cpp.
References d, and KDChart::AbstractAreaBase::paintFrameAttributes().
Referenced by KDChart::AbstractArea::paintAll(), KDChart::TextArea::paintAll(), and KDChart::AbstractAreaWidget::paintAll().
|
staticinherited |
Definition at line 168 of file KDChartAbstractAreaBase.cpp.
References KDChart::FrameAttributes::cornerRadius(), KDChart::FrameAttributes::isVisible(), KDChart::FrameAttributes::pen(), and KDChart::PrintingParameters::scalePen().
Referenced by KDChart::AbstractAreaBase::paintFrame().
|
virtualinherited |
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().
|
inherited |
Definition at line 78 of file KDChartLayoutItems.h.
|
virtualinherited |
Definition at line 446 of file KDChartCartesianAxis.cpp.
References d.
Referenced by checkExistingAxes(), KDChart::CartesianAxis::compare(), KDChart::CartesianAxis::expandingDirections(), findSharingAxisDiagrams(), KDChart::CartesianAxis::isAbscissa(), paintAsAbscissa(), paintAsOrdinate(), and KDChart::CartesianAxis::paintCtx().
|
signalinherited |
Referenced by KDChart::AbstractArea::positionHasChanged().
|
protectedvirtualinherited |
Reimplemented from KDChart::AbstractAreaBase.
Definition at line 156 of file KDChartAbstractArea.cpp.
References KDChart::AbstractArea::positionChanged().
|
inherited |
Definition at line 82 of file KDChartLayoutItems.h.
Referenced by KDChart::Chart::takeCoordinatePlane(), and KDChart::Chart::takeHeaderFooter().
|
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 425 of file KDChartCartesianAxis.cpp.
References d, and KDChart::CartesianAxis::layoutPlanes().
|
virtualinherited |
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().
|
inherited |
Returns the attributes to be used for painting the rulers.
Definition at line 202 of file KDChartAbstractAxis.cpp.
References d.
Referenced by KDChart::CartesianAxis::paintCtx(), and KDChart::CartesianAxis::tickLength().
|
inherited |
Sets the axis annotations to annotations.
Annotations are a QMap of qreals 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 1077 of file KDChartCartesianAxis.cpp.
References KDChart::CartesianAxis::annotations(), d, and KDChart::AbstractAxis::update().
|
inherited |
Definition at line 102 of file KDChartAbstractAreaBase.cpp.
References d, and KDChart::AbstractAreaBase::positionHasChanged().
|
slotinherited |
Definition at line 905 of file KDChartCartesianAxis.cpp.
References d.
Referenced by KDChart::CartesianAxis::setGeometry().
|
inherited |
Sets the length of custom ticks on the axis.
Definition at line 1056 of file KDChartCartesianAxis.cpp.
References d.
|
inherited |
Sets custom ticks on the axis.
Ticks are a QList of qreals defining their special position.
Definition at line 1091 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.
|
inherited |
Definition at line 88 of file KDChartAbstractAreaBase.cpp.
References d, and KDChart::AbstractAreaBase::positionHasChanged().
Referenced by KDChart::Legend::clone().
|
virtualinherited |
pure virtual in QLayoutItem
Implements KDChart::AbstractAxis.
Definition at line 1042 of file KDChartCartesianAxis.cpp.
References d, and KDChart::CartesianAxis::setCachedSizeDirty().
|
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 pass a smaller number of strings than the number of labels drawn at this axis, KD Chart will repeat 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 207 of file KDChartAbstractAxis.cpp.
References d, and KDChart::AbstractAxis::update().
Referenced by paintAsAbscissa().
|
inherited |
Definition at line 74 of file KDChartLayoutItems.h.
Referenced by KDChart::Chart::addHeaderFooter(), and KDChart::Chart::takeHeaderFooter().
|
virtualinherited |
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 59 of file KDChartLayoutItems.cpp.
References KDChart::AbstractLayoutItem::mParent.
Referenced by KDChart::HeaderFooter::setParent(), and KDChart::AbstractCartesianDiagram::takeAxis().
|
virtualinherited |
Definition at line 437 of file KDChartCartesianAxis.cpp.
References d, and KDChart::CartesianAxis::layoutPlanes().
|
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 196 of file KDChartAbstractAxis.cpp.
References d, and KDChart::AbstractAxis::update().
|
inherited |
Use this to specify your own set of strings, to be used as axis labels, in case the normal labels are too long.
By passing an empty QStringList you can reset the default behaviour.
Definition at line 221 of file KDChartAbstractAxis.cpp.
References d, and KDChart::AbstractAxis::update().
|
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 181 of file KDChartAbstractAxis.cpp.
References d, and KDChart::AbstractAxis::update().
Referenced by setType().
|
inherited |
|
inherited |
Sets the spacing between the title and the diagram.
Be aware that setting this value can lead to collisions between axis labels and the title
Definition at line 548 of file KDChartCartesianAxis.cpp.
References d.
|
inherited |
Sets the optional text displayed as chart title.
Definition at line 395 of file KDChartCartesianAxis.cpp.
References d, and KDChart::CartesianAxis::layoutPlanes().
|
inherited |
Definition at line 406 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(), KDChart::AbstractAxis::textAttributes(), and type().
|
inherited |
Returns a list of strings, that are used as axis labels, as set via setShortLabels.
Definition at line 230 of file KDChartAbstractAxis.cpp.
References d.
Referenced by KDChart::AbstractAxis::compare().
|
virtualinherited |
pure virtual in QLayoutItem
Definition at line 1036 of file KDChartCartesianAxis.cpp.
References KDChart::CartesianAxis::maximumSize().
|
virtualinherited |
Report changed size hint: ask the parent widget to recalculate the layout.
Definition at line 81 of file KDChartLayoutItems.cpp.
|
inherited |
Returns the text attributes to be used for axis labels.
Definition at line 190 of file KDChartAbstractAxis.cpp.
References d.
Referenced by KDChart::AbstractAxis::compare(), paintAsAbscissa(), paintAsOrdinate(), KDChart::CartesianAxis::paintCtx(), setType(), and KDChart::CartesianAxis::titleTextAttributes().
|
virtualslotinherited |
Definition at line 1066 of file KDChartCartesianAxis.cpp.
References KDChart::RulerAttributes::majorTickMarkLength(), KDChart::RulerAttributes::minorTickMarkLength(), and KDChart::AbstractAxis::rulerAttributes().
Referenced by KDChart::CartesianAxis::paintCtx().
|
inherited |
Definition at line 563 of file KDChartCartesianAxis.cpp.
References d.
|
inherited |
Definition at line 553 of file KDChartCartesianAxis.cpp.
References d.
|
inherited |
Definition at line 401 of file KDChartCartesianAxis.cpp.
References d.
Referenced by KDChart::CartesianAxis::compare(), and KDChart::CartesianAxis::paintCtx().
|
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 413 of file KDChartCartesianAxis.cpp.
References d, KDChart::TextAttributes::fontSize(), KDChart::CartesianAxis::hasDefaultTitleTextAttributes(), KDChart::TextAttributes::setFontSize(), KDChart::Measure::setValue(), and KDChart::AbstractAxis::textAttributes().
Referenced by KDChart::CartesianAxis::compare().
|
virtualinherited |
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(), paintAsOrdinate(), and setType().
|
slotinherited |
Definition at line 252 of file KDChartAbstractAxis.cpp.
References d.
Referenced by KDChart::CartesianAxis::setAnnotations(), KDChart::CartesianAxis::setCustomTicks(), KDChart::AbstractAxis::setLabels(), KDChart::AbstractAxis::setRulerAttributes(), KDChart::AbstractAxis::setShortLabels(), and KDChart::AbstractAxis::setTextAttributes().
|
protectedinherited |
Definition at line 92 of file KDChartLayoutItems.h.
Referenced by KDChart::AbstractLayoutItem::setParentWidget().
|
protectedinherited |
Definition at line 93 of file KDChartLayoutItems.h.