KD Chart 2
[rev.2.7]
|
Levey Jennings coordinate plane This is actually nothing real more than a plain cartesian coordinate plane. More...
#include <KDChartLeveyJenningsCoordinatePlane.h>
Public Types | |
enum | AxesCalcMode { Linear, Logarithmic } |
Public Slots | |
void | adjustHorizontalRangeToData () |
Adjust horizontal range settings to the ranges covered by the model's data values. More... | |
void | adjustRangesToData () |
Adjust both, horizontal and vertical range settings to the ranges covered by the model's data values. More... | |
void | adjustVerticalRangeToData () |
Adjust vertical range settings to the ranges covered by the model's data values. More... | |
void | layoutPlanes () |
Calling layoutPlanes() on the plane triggers the global KDChart::Chart::slotLayoutPlanes() More... | |
void | relayout () |
Calling relayout() on the plane triggers the global KDChart::Chart::slotRelayout() More... | |
void | setGridNeedsRecalculate () |
Used by the chart to clear the cached grid data. More... | |
void | update () |
Calling update() on the plane triggers the global KDChart::Chart::update() More... | |
Signals | |
void | boundariesChanged () |
void | destroyedCoordinatePlane (AbstractCoordinatePlane *) |
Emitted when this coordinate plane is destroyed. More... | |
void | geometryChanged (QRect, QRect) |
Emitted after the geometry of the Coordinate Plane has been changed. More... | |
void | internal_geometryChanged (QRect, QRect) |
void | needLayoutPlanes () |
Emitted when plane needs to trigger the Chart's layouting of the coord. More... | |
void | needRelayout () |
Emitted when plane needs to trigger the Chart's layouting. More... | |
void | needUpdate () |
Emitted when plane needs to update its drawings. More... | |
void | positionChanged (AbstractArea *) |
void | propertiesChanged () |
Emitted upon change of a property of the Coordinate Plane or any of its components. More... | |
void | viewportCoordinateSystemChanged () |
Emitted upon change of the view coordinate system. More... | |
Public Member Functions | |
void | addDiagram (AbstractDiagram *diagram) override |
Adds a diagram to this coordinate plane. More... | |
void | alignToReferencePoint (const RelativePosition &position) |
const bool | autoAdjustGridToZoom () const |
Return the status of the built-in grid adjusting feature. More... | |
unsigned int | autoAdjustHorizontalRangeToData () const |
Returns the maximal allowed percent of the horizontal space covered by the coordinate plane that may be empty. More... | |
unsigned int | autoAdjustVerticalRangeToData () const |
Returns the maximal allowed percent of the vertical space covered by the coordinate plane that may be empty. More... | |
AxesCalcMode | axesCalcModeX () const |
AxesCalcMode | axesCalcModeY () const |
BackgroundAttributes | backgroundAttributes () const |
virtual int | bottomOverlap (bool doNotRecalculate=false) const |
This is called at layout time by KDChart:AutoSpacerLayoutItem::sizeHint(). More... | |
bool | compare (const AbstractAreaBase *other) const |
Returns true if both areas have the same settings. More... | |
AbstractDiagram * | diagram () |
QRectF | diagramArea () const |
Returns the (physical) area occupied by the diagram. More... | |
AbstractDiagramList | diagrams () |
ConstAbstractDiagramList | diagrams () const |
bool | doesIsometricScaling () const |
Qt::Orientations | expandingDirections () const override |
FrameAttributes | frameAttributes () const |
QRect | geometry () const override |
pure virtual in QLayoutItem More... | |
void | getFrameLeadings (int &left, int &top, int &right, int &bottom) const |
GridAttributes | globalGridAttributes () const |
LeveyJenningsGridAttributes | gridAttributes () const |
const GridAttributes | gridAttributes (Qt::Orientation orientation) const |
DataDimensionsList | gridDimensionsList () |
Returns the dimensions used for drawing the grid lines. More... | |
bool | hasFixedDataCoordinateSpaceRelation () const |
bool | hasOwnGridAttributes (Qt::Orientation orientation) const |
QPair< qreal, qreal > | horizontalRange () const |
bool | isCornerSpacersEnabled () const |
bool | isEmpty () const override |
pure virtual in QLayoutItem More... | |
bool | isHorizontalRangeReversed () const |
bool | isRubberBandZoomingEnabled () const |
bool | isVerticalRangeReversed () const |
const bool | isVisiblePoint (const QPointF &point) const |
Tests, if a point is visible on the coordinate plane. More... | |
virtual int | leftOverlap (bool doNotRecalculate=false) const |
This is called at layout time by KDChart::AutoSpacerLayoutItem::sizeHint(). More... | |
LeveyJenningsCoordinatePlane (Chart *parent=0) | |
QRectF | logicalArea () const |
Returns the logical area, i.e., the rectangle defined by the very top left and very bottom right coordinate. More... | |
QSize | maximumSize () const override |
pure virtual in QLayoutItem More... | |
QSize | minimumSize () const override |
pure virtual in QLayoutItem More... | |
virtual void | mouseDoubleClickEvent (QMouseEvent *event) |
virtual void | mouseMoveEvent (QMouseEvent *event) |
virtual void | mousePressEvent (QMouseEvent *event) |
virtual void | mouseReleaseEvent (QMouseEvent *event) |
void | paint (QPainter *) override |
reimpl More... | |
void | paintAll (QPainter &painter) override |
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) |
virtual void | paintCtx (PaintContext *context) |
Default impl: Paint the complete item using its layouted position and size. 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... | |
Chart * | parent () |
const Chart * | parent () const |
QLayout * | parentLayout () |
AbstractCoordinatePlane * | referenceCoordinatePlane () const |
There are two ways, in which planes can be caused to interact, in where they are put layouting wise: The first is the reference plane. More... | |
void | removeFromParentLayout () |
virtual void | replaceDiagram (AbstractDiagram *diagram, AbstractDiagram *oldDiagram=0) |
Replaces the old diagram, or appends the diagram, it there is none yet. More... | |
void | resetGridAttributes (Qt::Orientation orientation) |
Reset the attributes to be used for grid lines drawn in horizontal direction (or in vertical direction, resp.). More... | |
virtual int | rightOverlap (bool doNotRecalculate=false) const |
This is called at layout time by KDChart::AutoSpacerLayoutItem::sizeHint(). More... | |
void | setAutoAdjustGridToZoom (bool autoAdjust) |
Disable / re-enable the built-in grid adjusting feature. More... | |
void | setAutoAdjustHorizontalRangeToData (unsigned int percentEmpty=67) |
Automatically adjust horizontal range settings to the ranges covered by the model's values, when ever the data have changed, and then emit horizontalRangeAutomaticallyAdjusted. More... | |
void | setAutoAdjustVerticalRangeToData (unsigned int percentEmpty=67) |
Automatically adjust vertical range settings to the ranges covered by the model's values, when ever the data have changed, and then emit verticalRangeAutomaticallyAdjusted. More... | |
void | setAxesCalcModes (AxesCalcMode mode) |
Specifies the calculation modes for all axes. More... | |
void | setAxesCalcModeX (AxesCalcMode mode) |
Specifies the calculation mode for all Abscissa axes. More... | |
void | setAxesCalcModeY (AxesCalcMode mode) |
Specifies the calculation mode for all Ordinate axes. More... | |
void | setBackgroundAttributes (const BackgroundAttributes &a) |
void | setCornerSpacersEnabled (bool enable) |
Enables or disables the use of spacers in the plane corners. More... | |
void | setFixedDataCoordinateSpaceRelation (bool fixed) |
Allows to specify a fixed data-space / coordinate-space relation. More... | |
void | setFrameAttributes (const FrameAttributes &a) |
void | setGeometry (const QRect &r) override |
reimplemented from AbstractCoordinatePlane More... | |
void | setGlobalGridAttributes (const GridAttributes &) |
Set the grid attributes to be used by this coordinate plane. More... | |
void | setGridAttributes (const LeveyJenningsGridAttributes &attr) |
void | setGridAttributes (Qt::Orientation orientation, const GridAttributes &) |
Set the attributes to be used for grid lines drawn in horizontal direction (or in vertical direction, resp.). More... | |
void | setHorizontalRange (const QPair< qreal, qreal > &range) |
Set the boundaries of the visible value space displayed in horizontal direction. More... | |
void | setHorizontalRangeReversed (bool reverse) |
Sets whether the horizontal range should be reversed or not, i.e. More... | |
void | setIsometricScaling (bool onOff) |
If onOff is true, enforce that X and Y distances are scaled by the same factor. More... | |
void | setParent (Chart *parent) |
Called internally by KDChart::Chart. 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... | |
void | setReferenceCoordinatePlane (AbstractCoordinatePlane *plane) |
Set another coordinate plane to be used as the reference plane for this one. More... | |
void | setRubberBandZoomingEnabled (bool enable) |
Enables or disables zooming with a rubber band using the mouse. More... | |
void | setVerticalRange (const QPair< qreal, qreal > &range) |
Set the boundaries of the visible value space displayed in vertical direction. More... | |
void | setVerticalRangeReversed (bool reverse) |
Sets whether the vertical range should be reversed or not, i.e. More... | |
void | setXAxisStartAtZero (bool fixedStart) |
Allows to fix the lower bound of X axis to zero when diagram is in first quadrant. More... | |
void | setZoomCenter (const QPointF ¢er) override |
void | setZoomFactors (qreal factorX, qreal factorY) override |
void | setZoomFactorX (qreal factor) override |
void | setZoomFactorY (qreal factor) override |
AbstractCoordinatePlane * | sharedAxisMasterPlane (QPainter *p=0) override |
reimpl More... | |
virtual void | sizeHintChanged () const |
Report changed size hint: ask the parent widget to recalculate the layout. More... | |
virtual void | takeDiagram (AbstractDiagram *diagram) |
Removes the diagram from the plane, without deleting it. More... | |
virtual int | topOverlap (bool doNotRecalculate=false) const |
This is called at layout time by KDChart::AutoSpacerLayoutItem::sizeHint(). More... | |
const QPointF | translate (const QPointF &diagramPoint) const override |
Translate the given point in value space coordinates to a position in pixel space. More... | |
QPair< qreal, qreal > | verticalRange () const |
QRectF | visibleDataRange () const |
Returns the currently visible data range. More... | |
QRectF | visibleDiagramArea () const |
Returns the visible part of the diagram area, i.e. More... | |
bool | xAxisStartAtZero () const |
QPointF | zoomCenter () const override |
qreal | zoomFactorX () const override |
qreal | zoomFactorY () const override |
~LeveyJenningsCoordinatePlane () override | |
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 | |
void | slotLayoutChanged (AbstractDiagram *) |
Protected Member Functions | |
QRectF | adjustedToMaxEmptyInnerPercentage (const QRectF &r, unsigned int percentX, unsigned int percentY) const |
QRect | areaGeometry () const override |
virtual QRectF | calculateRawDataBoundingRect () const |
bool | doneSetZoomCenter (const QPointF ¢er) |
bool | doneSetZoomFactorX (qreal factor) |
bool | doneSetZoomFactorY (qreal factor) |
virtual QRectF | drawingArea () const |
DataDimensionsList | getDataDimensionsList () const override |
QRectF | getRawDataBoundingRectFromDiagrams () const |
void | handleFixedDataCoordinateSpaceRelation (const QRectF &geometry) |
bool | hasHeightForWidth () const override |
int | heightForWidth (int w) const override |
QRect | innerRect () const |
void | layoutDiagrams () override |
Distribute the available space among the diagrams and axes. More... | |
void | paintEvent (QPaintEvent *) |
void | positionHasChanged () override |
QSize | sizeHint () const override |
const QPointF | translateBack (const QPointF &screenPoint) const |
Protected Attributes | |
QWidget * | mParent |
QLayout * | mParentLayout |
Levey Jennings coordinate plane This is actually nothing real more than a plain cartesian coordinate plane.
The difference is, that only Levey Jennings Diagrams can be added to it.
Definition at line 40 of file KDChartLeveyJenningsCoordinatePlane.h.
|
inherited |
Enumerator | |
---|---|
Linear | |
Logarithmic |
Definition at line 53 of file KDChartAbstractCoordinatePlane.h.
|
explicit |
Definition at line 43 of file KDChartLeveyJenningsCoordinatePlane.cpp.
|
override |
Definition at line 48 of file KDChartLeveyJenningsCoordinatePlane.cpp.
|
overridevirtual |
Adds a diagram to this coordinate plane.
diagram | The diagram to add. |
Reimplemented from KDChart::CartesianCoordinatePlane.
Definition at line 56 of file KDChartLeveyJenningsCoordinatePlane.cpp.
References KDChart::CartesianCoordinatePlane::addDiagram(), d, and LeveyJenningsGrid.
|
protectedinherited |
Definition at line 182 of file KDChartCartesianCoordinatePlane.cpp.
References KDChart::CartesianCoordinatePlane::axesCalcModeX(), KDChart::CartesianCoordinatePlane::axesCalcModeY(), d, and KDChart::AbstractCoordinatePlane::Logarithmic.
Referenced by KDChart::CartesianCoordinatePlane::calculateRawDataBoundingRect().
|
slotinherited |
Adjust horizontal range settings to the ranges covered by the model's data values.
Definition at line 668 of file KDChartCartesianCoordinatePlane.cpp.
References d, KDChart::CartesianCoordinatePlane::getRawDataBoundingRectFromDiagrams(), KDChart::CartesianCoordinatePlane::layoutDiagrams(), and KDChart::AbstractCoordinatePlane::propertiesChanged().
|
slotinherited |
Adjust both, horizontal and vertical range settings to the ranges covered by the model's data values.
Definition at line 657 of file KDChartCartesianCoordinatePlane.cpp.
References d, KDChart::CartesianCoordinatePlane::getRawDataBoundingRectFromDiagrams(), KDChart::CartesianCoordinatePlane::layoutDiagrams(), and KDChart::AbstractCoordinatePlane::propertiesChanged().
|
slotinherited |
Adjust vertical range settings to the ranges covered by the model's data values.
Definition at line 677 of file KDChartCartesianCoordinatePlane.cpp.
References d, KDChart::CartesianCoordinatePlane::getRawDataBoundingRectFromDiagrams(), KDChart::CartesianCoordinatePlane::layoutDiagrams(), and KDChart::AbstractCoordinatePlane::propertiesChanged().
|
inherited |
Definition at line 81 of file KDChartAbstractAreaBase.cpp.
|
overrideprotectedvirtualinherited |
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 |
Return the status of the built-in grid adjusting feature.
Definition at line 778 of file KDChartCartesianCoordinatePlane.cpp.
References d.
|
inherited |
Returns the maximal allowed percent of the horizontal space covered by the coordinate plane that may be empty.
Definition at line 710 of file KDChartCartesianCoordinatePlane.cpp.
References d.
Referenced by allAxisAnnotations().
|
inherited |
Returns the maximal allowed percent of the vertical space covered by the coordinate plane that may be empty.
Definition at line 715 of file KDChartCartesianCoordinatePlane.cpp.
References d.
Referenced by allAxisAnnotations().
|
inherited |
Definition at line 573 of file KDChartCartesianCoordinatePlane.cpp.
References d.
Referenced by KDChart::CartesianCoordinatePlane::adjustedToMaxEmptyInnerPercentage(), and KDChart::CartesianCoordinatePlane::getDataDimensionsList().
|
inherited |
Definition at line 568 of file KDChartCartesianCoordinatePlane.cpp.
References d.
Referenced by KDChart::CartesianCoordinatePlane::adjustedToMaxEmptyInnerPercentage(), and KDChart::CartesianCoordinatePlane::getDataDimensionsList().
|
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().
|
signalinherited |
|
protectedvirtualinherited |
Definition at line 223 of file KDChartCartesianCoordinatePlane.cpp.
References KDChart::CartesianCoordinatePlane::adjustedToMaxEmptyInnerPercentage(), d, and KDChart::CartesianCoordinatePlane::getRawDataBoundingRectFromDiagrams().
Referenced by KDChart::CartesianCoordinatePlane::getDataDimensionsList().
|
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().
Referenced by KDChart::Legend::compare().
|
signalinherited |
Emitted when this coordinate plane is destroyed.
Referenced by KDChart::AbstractCoordinatePlane::~AbstractCoordinatePlane().
|
inherited |
Definition at line 130 of file KDChartAbstractCoordinatePlane.cpp.
References d.
Referenced by contains(), KDChart::Widget::diagram(), findSharingAxisDiagrams(), KDChart::CartesianCoordinatePlane::getRawDataBoundingRectFromDiagrams(), KDChart::TernaryCoordinatePlane::layoutDiagrams(), KDChart::PolarCoordinatePlane::layoutDiagrams(), numSignificantDecimalPlaces(), KDChart::CartesianCoordinatePlane::setGeometry(), KDChart::PolarCoordinatePlane::setStartPosition(), KDChart::Widget::setType(), and KDChart::CartesianCoordinatePlane::sharedAxisMasterPlane().
|
inherited |
Returns the (physical) area occupied by the diagram.
Unless zoom is applied (which is also true when a fixed data coordinate / space relation is used),
.
Definition at line 354 of file KDChartCartesianCoordinatePlane.cpp.
References d, and KDChart::CartesianCoordinatePlane::logicalArea().
Referenced by KDChart::CartesianCoordinatePlane::visibleDiagramArea().
|
inherited |
Definition at line 140 of file KDChartAbstractCoordinatePlane.cpp.
References d.
Referenced by allAxisAnnotations(), KDChart::Chart::event(), findSharingAxisDiagrams(), KDChart::CartesianCoordinatePlane::getDataDimensionsList(), KDChart::CartesianCoordinatePlane::getRawDataBoundingRectFromDiagrams(), KDChart::TernaryCoordinatePlane::layoutDiagrams(), KDChart::PolarCoordinatePlane::layoutDiagrams(), KDChart::Chart::mouseDoubleClickEvent(), KDChart::Chart::mouseMoveEvent(), KDChart::Chart::mousePressEvent(), KDChart::Chart::mouseReleaseEvent(), KDChart::TernaryCoordinatePlane::paint(), KDChart::PolarCoordinatePlane::paint(), KDChart::CartesianCoordinatePlane::paint(), KDChart::CartesianCoordinatePlane::setAxesCalcModes(), and KDChart::CartesianCoordinatePlane::setGeometry().
|
inherited |
Definition at line 145 of file KDChartAbstractCoordinatePlane.cpp.
References d.
|
inherited |
Definition at line 479 of file KDChartCartesianCoordinatePlane.cpp.
References d.
|
protectedinherited |
Definition at line 508 of file KDChartCartesianCoordinatePlane.cpp.
References d.
Referenced by KDChart::CartesianCoordinatePlane::handleFixedDataCoordinateSpaceRelation(), and KDChart::CartesianCoordinatePlane::setZoomCenter().
|
protectedinherited |
Definition at line 484 of file KDChartCartesianCoordinatePlane.cpp.
References d.
Referenced by KDChart::CartesianCoordinatePlane::handleFixedDataCoordinateSpaceRelation(), KDChart::CartesianCoordinatePlane::setZoomFactors(), and KDChart::CartesianCoordinatePlane::setZoomFactorX().
|
protectedinherited |
Definition at line 496 of file KDChartCartesianCoordinatePlane.cpp.
References d.
Referenced by KDChart::CartesianCoordinatePlane::handleFixedDataCoordinateSpaceRelation(), KDChart::CartesianCoordinatePlane::setZoomFactors(), and KDChart::CartesianCoordinatePlane::setZoomFactorY().
|
protectedvirtualinherited |
Definition at line 321 of file KDChartCartesianCoordinatePlane.cpp.
References KDChart::AbstractArea::areaGeometry().
Referenced by KDChart::CartesianCoordinatePlane::layoutDiagrams(), KDChart::CartesianCoordinatePlane::paint(), KDChart::CartesianCoordinatePlane::setFixedDataCoordinateSpaceRelation(), KDChart::CartesianCoordinatePlane::setZoomCenter(), KDChart::CartesianCoordinatePlane::setZoomFactors(), KDChart::CartesianCoordinatePlane::setZoomFactorX(), KDChart::CartesianCoordinatePlane::setZoomFactorY(), KDChart::CartesianCoordinatePlane::visibleDataRange(), and KDChart::CartesianCoordinatePlane::visibleDiagramArea().
|
overrideinherited |
Definition at line 898 of file KDChartCartesianCoordinatePlane.cpp.
References d.
|
inherited |
Definition at line 97 of file KDChartAbstractAreaBase.cpp.
References d.
Referenced by KDChart::Legend::clone(), KDChart::AbstractAreaBase::compare(), and updateCommonBrush().
|
overrideinherited |
pure virtual in QLayoutItem
Definition at line 248 of file KDChartAbstractCoordinatePlane.cpp.
References d.
Referenced by KDChart::Chart::mouseDoubleClickEvent(), KDChart::AbstractCoordinatePlane::mouseMoveEvent(), KDChart::Chart::mouseMoveEvent(), KDChart::Chart::mousePressEvent(), KDChart::AbstractCoordinatePlane::mouseReleaseEvent(), KDChart::Chart::mouseReleaseEvent(), KDChart::RadarDiagram::paint(), KDChart::PolarDiagram::paint(), KDChart::PolarCoordinatePlane::paint(), and KDChart::CartesianCoordinatePlane::setGeometry().
|
signalinherited |
Emitted after the geometry of the Coordinate Plane has been changed.
and control has returned to the event loop.
Parameters are the old geometry, the new geometry.
Referenced by KDChart::AbstractCoordinatePlane::~AbstractCoordinatePlane().
|
overrideprotectedvirtualinherited |
Implements KDChart::AbstractCoordinatePlane.
Definition at line 272 of file KDChartCartesianCoordinatePlane.cpp.
References KDChart::CartesianCoordinatePlane::axesCalcModeX(), KDChart::CartesianCoordinatePlane::axesCalcModeY(), KDChart::CartesianCoordinatePlane::calculateRawDataBoundingRect(), KDChart::AbstractDiagram::datasetDimension(), KDChart::AbstractCoordinatePlane::diagrams(), KDChart::CartesianCoordinatePlane::gridAttributes(), KDChart::GridAttributes::gridGranularitySequence(), KDChart::GridAttributes::gridStepWidth(), KDChart::GridAttributes::gridSubStepWidth(), KDChart::BarDiagram::orientation(), and KDChart::AbstractCartesianDiagram::referenceDiagram().
|
inherited |
Definition at line 213 of file KDChartAbstractAreaBase.cpp.
References d.
Referenced by KDChart::AbstractAreaBase::innerRect(), and KDChart::AbstractAreaWidget::paintAll().
|
protectedinherited |
Definition at line 156 of file KDChartCartesianCoordinatePlane.cpp.
References KDChart::AbstractDiagram::dataBoundaries(), KDChart::AbstractCoordinatePlane::diagram(), and KDChart::AbstractCoordinatePlane::diagrams().
Referenced by KDChart::CartesianCoordinatePlane::adjustHorizontalRangeToData(), KDChart::CartesianCoordinatePlane::adjustRangesToData(), KDChart::CartesianCoordinatePlane::adjustVerticalRangeToData(), and KDChart::CartesianCoordinatePlane::calculateRawDataBoundingRect().
|
inherited |
Definition at line 163 of file KDChartAbstractCoordinatePlane.cpp.
References d.
Referenced by KDChart::PolarCoordinatePlane::gridAttributes(), and KDChart::CartesianCoordinatePlane::gridAttributes().
LeveyJenningsGridAttributes LeveyJenningsCoordinatePlane::gridAttributes | ( | ) | const |
Definition at line 71 of file KDChartLeveyJenningsCoordinatePlane.cpp.
References d.
|
inherited |
Definition at line 739 of file KDChartCartesianCoordinatePlane.cpp.
References d, KDChart::AbstractCoordinatePlane::globalGridAttributes(), KDChart::CartesianCoordinatePlane::hasOwnGridAttributes(), and KDChart::AbstractCoordinatePlane::propertiesChanged().
Referenced by allAxisAnnotations(), and KDChart::CartesianCoordinatePlane::getDataDimensionsList().
|
inherited |
Returns the dimensions used for drawing the grid lines.
Returned data is the result of (cached) grid calculations, so - if you need that information for your own tasks - make sure to call again this function after every data modification that has changed the data range, since grid calculation is based upon the data range, thus the grid start/end might have changed if the data was changed.
Definition at line 168 of file KDChartAbstractCoordinatePlane.cpp.
References d.
Referenced by KDChart::CartesianCoordinatePlane::layoutDiagrams(), KDChart::CartesianAxis::maximumSize(), numSignificantDecimalPlaces(), and KDChart::PaintingHelpers::paintValueTracker().
|
protectedinherited |
Definition at line 414 of file KDChartCartesianCoordinatePlane.cpp.
References d, KDChart::CartesianCoordinatePlane::doneSetZoomCenter(), KDChart::CartesianCoordinatePlane::doneSetZoomFactorX(), KDChart::CartesianCoordinatePlane::doneSetZoomFactorY(), KDChart::AbstractCoordinatePlane::propertiesChanged(), KDChart::CartesianCoordinatePlane::zoomCenter(), KDChart::CartesianCoordinatePlane::zoomFactorX(), and KDChart::CartesianCoordinatePlane::zoomFactorY().
Referenced by KDChart::CartesianCoordinatePlane::layoutDiagrams(), and KDChart::CartesianCoordinatePlane::setFixedDataCoordinateSpaceRelation().
|
inherited |
Definition at line 396 of file KDChartCartesianCoordinatePlane.cpp.
References d.
Referenced by KDChart::TextAttributes::calculatedFont().
|
overrideprotectedinherited |
Definition at line 904 of file KDChartCartesianCoordinatePlane.cpp.
References d.
|
inherited |
If false, the grid will use the global attributes set by AbstractCoordinatePlane::globalGridAttributes (or the default attributes, resp.)
Definition at line 760 of file KDChartCartesianCoordinatePlane.cpp.
References d.
Referenced by KDChart::CartesianCoordinatePlane::gridAttributes().
|
overrideprotectedinherited |
Definition at line 909 of file KDChartCartesianCoordinatePlane.cpp.
References KDChart::CartesianCoordinatePlane::logicalArea().
Referenced by KDChart::CartesianCoordinatePlane::setGeometry(), and KDChart::CartesianCoordinatePlane::sizeHint().
|
inherited |
Definition at line 647 of file KDChartCartesianCoordinatePlane.cpp.
References d.
|
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().
|
signalinherited |
|
inherited |
Definition at line 295 of file KDChartAbstractCoordinatePlane.cpp.
References d.
|
overrideinherited |
pure virtual in QLayoutItem
Definition at line 204 of file KDChartAbstractCoordinatePlane.cpp.
|
inherited |
Definition at line 840 of file KDChartCartesianCoordinatePlane.cpp.
References d.
Referenced by KDChart::PaintingHelpers::paintValueTracker().
|
inherited |
Definition at line 282 of file KDChartAbstractCoordinatePlane.cpp.
References d.
|
inherited |
Definition at line 855 of file KDChartCartesianCoordinatePlane.cpp.
References d.
Referenced by KDChart::PaintingHelpers::paintValueTracker().
|
inherited |
Tests, if a point is visible on the coordinate plane.
Definition at line 426 of file KDChartAbstractCoordinatePlane.cpp.
References d.
|
overrideprotectedvirtualinherited |
Distribute the available space among the diagrams and axes.
Implements KDChart::AbstractCoordinatePlane.
Definition at line 368 of file KDChartCartesianCoordinatePlane.cpp.
References d, KDChart::CartesianCoordinatePlane::drawingArea(), KDChart::AbstractCoordinatePlane::gridDimensionsList(), KDChart::CartesianCoordinatePlane::handleFixedDataCoordinateSpaceRelation(), KDChart::CartesianCoordinatePlane::logicalArea(), and KDChart::AbstractCoordinatePlane::update().
Referenced by KDChart::CartesianCoordinatePlane::adjustHorizontalRangeToData(), KDChart::CartesianCoordinatePlane::adjustRangesToData(), KDChart::CartesianCoordinatePlane::adjustVerticalRangeToData(), KDChart::CartesianCoordinatePlane::setAutoAdjustHorizontalRangeToData(), KDChart::CartesianCoordinatePlane::setAutoAdjustVerticalRangeToData(), KDChart::CartesianCoordinatePlane::setHorizontalRange(), KDChart::CartesianCoordinatePlane::setHorizontalRangeReversed(), KDChart::CartesianCoordinatePlane::setIsometricScaling(), KDChart::CartesianCoordinatePlane::setVerticalRange(), KDChart::CartesianCoordinatePlane::setVerticalRangeReversed(), and KDChart::CartesianCoordinatePlane::slotLayoutChanged().
|
slotinherited |
Calling layoutPlanes() on the plane triggers the global KDChart::Chart::slotLayoutPlanes()
Definition at line 265 of file KDChartAbstractCoordinatePlane.cpp.
References KDChart::AbstractCoordinatePlane::needLayoutPlanes().
Referenced by KDChart::AbstractCoordinatePlane::addDiagram(), findSharingAxisDiagrams(), invalidateLayoutTree(), KDChart::AbstractCartesianDiagram::layoutPlanes(), KDChart::CartesianAxis::layoutPlanes(), KDChart::AbstractCoordinatePlane::replaceDiagram(), and KDChart::AbstractCoordinatePlane::takeDiagram().
|
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().
|
inherited |
Returns the logical area, i.e., the rectangle defined by the very top left and very bottom right coordinate.
Definition at line 333 of file KDChartCartesianCoordinatePlane.cpp.
References d, KDChart::DataDimension::distance(), KDChart::DataDimension::end, and KDChart::DataDimension::start.
Referenced by KDChart::CartesianCoordinatePlane::diagramArea(), KDChart::CartesianCoordinatePlane::heightForWidth(), KDChart::CartesianCoordinatePlane::layoutDiagrams(), KDChart::CartesianCoordinatePlane::setZoomCenter(), KDChart::CartesianCoordinatePlane::setZoomFactors(), KDChart::CartesianCoordinatePlane::setZoomFactorX(), and KDChart::CartesianCoordinatePlane::setZoomFactorY().
|
overrideinherited |
pure virtual in QLayoutItem
Definition at line 216 of file KDChartAbstractCoordinatePlane.cpp.
Referenced by KDChart::AbstractCoordinatePlane::sizeHint().
|
overrideinherited |
pure virtual in QLayoutItem
Definition at line 223 of file KDChartAbstractCoordinatePlane.cpp.
|
virtualinherited |
Definition at line 340 of file KDChartAbstractCoordinatePlane.cpp.
References d, and KDChart::AbstractCoordinatePlane::mousePressEvent().
Referenced by KDChart::Chart::mouseDoubleClickEvent().
|
virtualinherited |
Definition at line 407 of file KDChartAbstractCoordinatePlane.cpp.
References d, and KDChart::AbstractCoordinatePlane::geometry().
Referenced by KDChart::Chart::mouseMoveEvent().
|
virtualinherited |
Definition at line 300 of file KDChartAbstractCoordinatePlane.cpp.
References KDChart::ZoomParameters::center(), d, KDChart::AbstractCoordinatePlane::parent(), KDChart::AbstractCoordinatePlane::setZoomCenter(), KDChart::AbstractCoordinatePlane::setZoomFactorX(), KDChart::AbstractCoordinatePlane::setZoomFactorY(), KDChart::ZoomParameters::xFactor, and KDChart::ZoomParameters::yFactor.
Referenced by KDChart::AbstractCoordinatePlane::mouseDoubleClickEvent(), and KDChart::Chart::mousePressEvent().
|
virtualinherited |
Definition at line 354 of file KDChartAbstractCoordinatePlane.cpp.
References d, KDChart::AbstractCoordinatePlane::geometry(), KDChart::AbstractCoordinatePlane::setZoomCenter(), KDChart::AbstractCoordinatePlane::setZoomFactorX(), KDChart::AbstractCoordinatePlane::setZoomFactorY(), KDChart::AbstractCoordinatePlane::zoomCenter(), KDChart::AbstractCoordinatePlane::zoomFactorX(), and KDChart::AbstractCoordinatePlane::zoomFactorY().
Referenced by KDChart::Chart::mouseReleaseEvent().
|
signalinherited |
Emitted when plane needs to trigger the Chart's layouting of the coord.
planes.
Referenced by KDChart::AbstractCoordinatePlane::layoutPlanes().
|
signalinherited |
Emitted when plane needs to trigger the Chart's layouting.
Referenced by KDChart::AbstractCoordinatePlane::relayout(), and KDChart::AbstractCoordinatePlane::setCornerSpacersEnabled().
|
signalinherited |
Emitted when plane needs to update its drawings.
Referenced by KDChart::AbstractCoordinatePlane::update().
|
overridevirtualinherited |
reimpl
Implements KDChart::AbstractLayoutItem.
Definition at line 100 of file KDChartCartesianCoordinatePlane.cpp.
References d, KDChart::AbstractCoordinatePlane::diagrams(), KDChart::CartesianCoordinatePlane::drawingArea(), KDChart::PaintContext::setCoordinatePlane(), KDChart::PaintContext::setPainter(), and KDChart::PaintContext::setRectangle().
|
overridevirtualinherited |
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().
|
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 findSharingAxisDiagrams(), and KDChart::AbstractAreaBase::paintBackground().
|
virtualinherited |
Default impl: Paint the complete item using its layouted position and size.
Reimplemented in KDChart::CartesianAxis, KDChart::LeveyJenningsAxis, and KDChart::TernaryAxis.
Definition at line 72 of file KDChartLayoutItems.cpp.
References KDChart::AbstractLayoutItem::paint(), and KDChart::PaintContext::painter().
|
protectedinherited |
|
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 findSharingAxisDiagrams(), and 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 198 of file KDChartAbstractCoordinatePlane.cpp.
References d.
Referenced by KDChart::AbstractCoordinatePlane::AbstractCoordinatePlane(), KDChart::CartesianAxis::maximumSize(), KDChart::AbstractCoordinatePlane::mousePressEvent(), KDChart::LeveyJenningsAxis::paintAsAbscissa(), KDChart::LeveyJenningsAxis::paintAsOrdinate(), KDChart::AbstractCoordinatePlane::setParent(), and KDChart::CartesianAxis::titleSize().
|
inherited |
Definition at line 193 of file KDChartAbstractCoordinatePlane.cpp.
References d.
|
inherited |
Definition at line 77 of file KDChartLayoutItems.h.
|
signalinherited |
Referenced by KDChart::AbstractArea::positionHasChanged().
|
overrideprotectedvirtualinherited |
Reimplemented from KDChart::AbstractAreaBase.
Definition at line 156 of file KDChartAbstractArea.cpp.
References KDChart::AbstractArea::positionChanged().
|
signalinherited |
Emitted upon change of a property of the Coordinate Plane or any of its components.
Referenced by KDChart::CartesianCoordinatePlane::addDiagram(), KDChart::CartesianCoordinatePlane::adjustHorizontalRangeToData(), KDChart::CartesianCoordinatePlane::adjustRangesToData(), KDChart::CartesianCoordinatePlane::adjustVerticalRangeToData(), KDChart::PolarCoordinatePlane::gridAttributes(), KDChart::CartesianCoordinatePlane::gridAttributes(), KDChart::CartesianCoordinatePlane::handleFixedDataCoordinateSpaceRelation(), KDChart::CartesianCoordinatePlane::setAutoAdjustGridToZoom(), KDChart::CartesianCoordinatePlane::setAutoAdjustHorizontalRangeToData(), KDChart::CartesianCoordinatePlane::setAutoAdjustVerticalRangeToData(), KDChart::CartesianCoordinatePlane::setAxesCalcModes(), KDChart::CartesianCoordinatePlane::setAxesCalcModeX(), KDChart::CartesianCoordinatePlane::setAxesCalcModeY(), KDChart::PolarCoordinatePlane::setGridAttributes(), KDChart::CartesianCoordinatePlane::setGridAttributes(), KDChart::CartesianCoordinatePlane::setHorizontalRange(), KDChart::CartesianCoordinatePlane::setHorizontalRangeReversed(), KDChart::CartesianCoordinatePlane::setIsometricScaling(), KDChart::CartesianCoordinatePlane::setVerticalRange(), KDChart::CartesianCoordinatePlane::setVerticalRangeReversed(), KDChart::CartesianCoordinatePlane::setZoomCenter(), KDChart::CartesianCoordinatePlane::setZoomFactors(), KDChart::CartesianCoordinatePlane::setZoomFactorX(), and KDChart::CartesianCoordinatePlane::setZoomFactorY().
|
inherited |
There are two ways, in which planes can be caused to interact, in where they are put layouting wise: The first is the reference plane.
If such a reference plane is set, on a plane, it will use the same cell in the layout as that one. In addition to this, planes can share an axis. In that case they will be laid out in relation to each other as suggested by the position of the axis. If, for example Plane1 and Plane2 share an axis at position Left, that will result in the layout: Axis Plane1 Plane 2, vertically. If Plane1 also happens to be Plane2's reference plane, both planes are drawn over each other. The reference plane concept allows two planes to share the same space even if neither has any axis, and in case there are shared axis, it is used to decided, whether the planes should be painted on top of each other or laid out vertically or horizontally next to each other.
Definition at line 183 of file KDChartAbstractCoordinatePlane.cpp.
References d.
Referenced by findSharingAxisDiagrams(), and invalidateLayoutTree().
|
slotinherited |
Calling relayout() on the plane triggers the global KDChart::Chart::slotRelayout()
Definition at line 259 of file KDChartAbstractCoordinatePlane.cpp.
References KDChart::AbstractCoordinatePlane::needRelayout().
Referenced by KDChart::AbstractCoordinatePlane::addDiagram(), and KDChart::AbstractCoordinatePlane::takeDiagram().
|
inherited |
Definition at line 81 of file KDChartLayoutItems.h.
Referenced by findSharingAxisDiagrams(), KDChart::Chart::takeCoordinatePlane(), and KDChart::Chart::takeHeaderFooter().
|
virtualinherited |
Replaces the old diagram, or appends the diagram, it there is none yet.
diagram | The diagram to be used instead of the old diagram. This parameter must not be zero, or the method will do nothing. |
oldDiagram | The diagram to be removed by the new diagram. This diagram will be deleted automatically. If the parameter is omitted, the very first diagram will be replaced. In case, there was no diagram yet, the new diagram will just be added. |
Definition at line 93 of file KDChartAbstractCoordinatePlane.cpp.
References KDChart::AbstractCoordinatePlane::addDiagram(), d, KDChart::AbstractCoordinatePlane::layoutDiagrams(), KDChart::AbstractCoordinatePlane::layoutPlanes(), KDChart::AbstractCoordinatePlane::takeDiagram(), and KDChart::AbstractCoordinatePlane::update().
Referenced by KDChart::Widget::setType().
|
inherited |
Reset the attributes to be used for grid lines drawn in horizontal direction (or in vertical direction, resp.).
By calling this method you specify that the global attributes set by AbstractCoordinatePlane::setGlobalGridAttributes be used.
Definition at line 733 of file KDChartCartesianCoordinatePlane.cpp.
References KDChart::AbstractCoordinatePlane::update().
|
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 |
Disable / re-enable the built-in grid adjusting feature.
By default additional lines will be drawn in a Linear grid when zooming in.
Definition at line 766 of file KDChartCartesianCoordinatePlane.cpp.
References d, and KDChart::AbstractCoordinatePlane::propertiesChanged().
|
inherited |
Automatically adjust horizontal range settings to the ranges covered by the model's values, when ever the data have changed, and then emit horizontalRangeAutomaticallyAdjusted.
By default the horizontal range is adjusted automatically, if more than 67 percent of the available horizontal space would be empty otherwise.
Range setting is adjusted if more than percentEmpty
percent of the horizontal space covered by the coordinate plane would otherwise be empty. Automatic range adjusting can happen, when either all of the data are positive or all are negative.
Set percentEmpty to 100 to disable automatic range adjusting.
percentEmpty | The maximal percentage of horizontal space that may be empty. |
Definition at line 686 of file KDChartCartesianCoordinatePlane.cpp.
References d, KDChart::CartesianCoordinatePlane::layoutDiagrams(), and KDChart::AbstractCoordinatePlane::propertiesChanged().
|
inherited |
Automatically adjust vertical range settings to the ranges covered by the model's values, when ever the data have changed, and then emit verticalRangeAutomaticallyAdjusted.
By default the vertical range is adjusted automatically, if more than 67 percent of the available vertical space would be empty otherwise.
Range setting is adjusted if more than percentEmpty
percent of the horizontal space covered by the coordinate plane would otherwise be empty. Automatic range adjusting can happen, when either all of the data are positive or all are negative.
Set percentEmpty to 100 to disable automatic range adjusting.
percentEmpty | The maximal percentage of horizontal space that may be empty. |
Definition at line 698 of file KDChartCartesianCoordinatePlane.cpp.
References d, KDChart::CartesianCoordinatePlane::layoutDiagrams(), and KDChart::AbstractCoordinatePlane::propertiesChanged().
|
inherited |
Specifies the calculation modes for all axes.
Definition at line 578 of file KDChartCartesianCoordinatePlane.cpp.
References d, KDChart::AbstractCoordinatePlane::diagrams(), KDChart::AbstractCoordinatePlane::propertiesChanged(), KDChart::CartesianCoordinatePlane::slotLayoutChanged(), and KDChart::AbstractCoordinatePlane::viewportCoordinateSystemChanged().
|
inherited |
Specifies the calculation mode for all Abscissa axes.
Definition at line 601 of file KDChartCartesianCoordinatePlane.cpp.
References d, KDChart::AbstractCoordinatePlane::propertiesChanged(), and KDChart::AbstractCoordinatePlane::viewportCoordinateSystemChanged().
|
inherited |
Specifies the calculation mode for all Ordinate axes.
Definition at line 591 of file KDChartCartesianCoordinatePlane.cpp.
References d, KDChart::AbstractCoordinatePlane::propertiesChanged(), KDChart::AbstractCoordinatePlane::setGridNeedsRecalculate(), and KDChart::AbstractCoordinatePlane::viewportCoordinateSystemChanged().
|
inherited |
Definition at line 102 of file KDChartAbstractAreaBase.cpp.
References d, and KDChart::AbstractAreaBase::positionHasChanged().
|
inherited |
Enables or disables the use of spacers in the plane corners.
Definition at line 287 of file KDChartAbstractCoordinatePlane.cpp.
References d, and KDChart::AbstractCoordinatePlane::needRelayout().
|
inherited |
Allows to specify a fixed data-space / coordinate-space relation.
If set to true then fixed bar widths are used, so you see more bars as the window is made wider.
This allows to completely restrict the size of bars in a graph such that, upon resizing a window, the graphs coordinate plane will grow (add more ticks to x- and y-coordinates) rather than have the image grow.
Definition at line 389 of file KDChartCartesianCoordinatePlane.cpp.
References d, KDChart::CartesianCoordinatePlane::drawingArea(), and KDChart::CartesianCoordinatePlane::handleFixedDataCoordinateSpaceRelation().
|
inherited |
Definition at line 88 of file KDChartAbstractAreaBase.cpp.
References d, and KDChart::AbstractAreaBase::positionHasChanged().
Referenced by KDChart::Legend::clone(), and KDChart::Legend::~Legend().
|
overrideinherited |
reimplemented from AbstractCoordinatePlane
Definition at line 872 of file KDChartCartesianCoordinatePlane.cpp.
References d, KDChart::AbstractCoordinatePlane::diagram(), KDChart::AbstractCoordinatePlane::diagrams(), KDChart::AbstractCoordinatePlane::geometry(), KDChart::CartesianCoordinatePlane::heightForWidth(), KDChart::AbstractDiagram::resize(), and KDChart::AbstractCoordinatePlane::setGeometry().
|
inherited |
Set the grid attributes to be used by this coordinate plane.
To disable grid painting, for example, your code should like this:
Definition at line 157 of file KDChartAbstractCoordinatePlane.cpp.
References d, and KDChart::AbstractCoordinatePlane::update().
void LeveyJenningsCoordinatePlane::setGridAttributes | ( | const LeveyJenningsGridAttributes & | attr | ) |
Definition at line 76 of file KDChartLeveyJenningsCoordinatePlane.cpp.
References d.
|
inherited |
Set the attributes to be used for grid lines drawn in horizontal direction (or in vertical direction, resp.).
To disable horizontal grid painting, for example, your code should like this:
Definition at line 720 of file KDChartCartesianCoordinatePlane.cpp.
References d, KDChart::AbstractCoordinatePlane::propertiesChanged(), and KDChart::AbstractCoordinatePlane::update().
|
slotinherited |
Used by the chart to clear the cached grid data.
Definition at line 173 of file KDChartAbstractCoordinatePlane.cpp.
References d.
Referenced by findSharingAxisDiagrams(), and KDChart::CartesianCoordinatePlane::setAxesCalcModeY().
|
inherited |
Set the boundaries of the visible value space displayed in horizontal direction.
This is also known as the horizontal viewport.
By default the horizontal range is adjusted to the range covered by the model's data, see setAutoAdjustHorizontalRangeToData for details. Calling setHorizontalRange with a valid range disables this default automatic adjusting, while on the other hand automatic adjusting will set these ranges.
To disable use of this range you can either pass an empty pair by using the default constructor QPair() or you can set both values to the same which constitutes a null range.
range | a pair of values representing the smalles and the largest horizontal value space coordinate displayed. |
Definition at line 621 of file KDChartCartesianCoordinatePlane.cpp.
References KDChart::AbstractCoordinatePlane::boundariesChanged(), d, KDChart::CartesianCoordinatePlane::layoutDiagrams(), and KDChart::AbstractCoordinatePlane::propertiesChanged().
|
inherited |
Sets whether the horizontal range should be reversed or not, i.e.
small values to the left and large values to the right (the default) or vice versa.
reverse | Whether the horizontal range should be reversed or not |
Definition at line 830 of file KDChartCartesianCoordinatePlane.cpp.
References d, KDChart::CartesianCoordinatePlane::layoutDiagrams(), and KDChart::AbstractCoordinatePlane::propertiesChanged().
|
inherited |
If onOff
is true, enforce that X and Y distances are scaled by the same factor.
This makes the plane's height a function of its width, and hasHeightForWidth() will return true.
Definition at line 470 of file KDChartCartesianCoordinatePlane.cpp.
References d, KDChart::CartesianCoordinatePlane::layoutDiagrams(), and KDChart::AbstractCoordinatePlane::propertiesChanged().
|
inherited |
Called internally by KDChart::Chart.
Definition at line 188 of file KDChartAbstractCoordinatePlane.cpp.
References d, and KDChart::AbstractCoordinatePlane::parent().
Referenced by KDChart::Chart::insertCoordinatePlane(), and KDChart::Chart::takeCoordinatePlane().
|
inherited |
Definition at line 73 of file KDChartLayoutItems.h.
Referenced by KDChart::Chart::addHeaderFooter(), findSharingAxisDiagrams(), 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(), KDChart::AbstractCartesianDiagram::takeAxis(), and updateToplevelLayout().
|
inherited |
Set another coordinate plane to be used as the reference plane for this one.
plane | The coordinate plane to be used the reference plane for this one. |
Definition at line 178 of file KDChartAbstractCoordinatePlane.cpp.
References d.
Referenced by invalidateLayoutTree().
|
inherited |
Enables or disables zooming with a rubber band using the mouse.
Definition at line 271 of file KDChartAbstractCoordinatePlane.cpp.
References d.
|
inherited |
Set the boundaries of the visible value space displayed in vertical direction.
This is also known as the vertical viewport.
By default the vertical range is adjusted to the range covered by the model's data, see setAutoAdjustVerticalRangeToData for details. Calling setVerticalRange with a valid range disables this default automatic adjusting, while on the other hand automatic adjusting will set these ranges.
To disable use of this range you can either pass an empty pair by using the default constructor QPair() or you can set setting both values to the same which constitutes a null range.
range | a pair of values representing the smalles and the largest vertical value space coordinate displayed. |
Definition at line 634 of file KDChartCartesianCoordinatePlane.cpp.
References KDChart::AbstractCoordinatePlane::boundariesChanged(), d, KDChart::CartesianCoordinatePlane::layoutDiagrams(), and KDChart::AbstractCoordinatePlane::propertiesChanged().
|
inherited |
Sets whether the vertical range should be reversed or not, i.e.
small values at the bottom and large values at the top (the default) or vice versa.
reverse | Whether the vertical range should be reversed or not |
Definition at line 845 of file KDChartCartesianCoordinatePlane.cpp.
References d, KDChart::CartesianCoordinatePlane::layoutDiagrams(), and KDChart::AbstractCoordinatePlane::propertiesChanged().
|
inherited |
Allows to fix the lower bound of X axis to zero when diagram is in first quadrant.
The default behavior is to lower x or y bound to be 0. If this behaviour is not wanted, either CartesianCoordinatePlane::setHorizontalRange could be used instead of letting KDChart auto-adjust the ranges, or this method can be used to disable this behavior.
Definition at line 401 of file KDChartCartesianCoordinatePlane.cpp.
References d.
|
overridevirtualinherited |
Reimplemented from KDChart::AbstractCoordinatePlane.
Definition at line 544 of file KDChartCartesianCoordinatePlane.cpp.
References d, KDChart::CartesianCoordinatePlane::doneSetZoomCenter(), KDChart::CartesianCoordinatePlane::drawingArea(), KDChart::CartesianCoordinatePlane::logicalArea(), and KDChart::AbstractCoordinatePlane::propertiesChanged().
|
overridevirtualinherited |
Reimplemented from KDChart::AbstractCoordinatePlane.
Definition at line 520 of file KDChartCartesianCoordinatePlane.cpp.
References d, KDChart::CartesianCoordinatePlane::doneSetZoomFactorX(), KDChart::CartesianCoordinatePlane::doneSetZoomFactorY(), KDChart::CartesianCoordinatePlane::drawingArea(), KDChart::CartesianCoordinatePlane::logicalArea(), and KDChart::AbstractCoordinatePlane::propertiesChanged().
|
overridevirtualinherited |
Reimplemented from KDChart::AbstractCoordinatePlane.
Definition at line 528 of file KDChartCartesianCoordinatePlane.cpp.
References d, KDChart::CartesianCoordinatePlane::doneSetZoomFactorX(), KDChart::CartesianCoordinatePlane::drawingArea(), KDChart::CartesianCoordinatePlane::logicalArea(), and KDChart::AbstractCoordinatePlane::propertiesChanged().
|
overridevirtualinherited |
Reimplemented from KDChart::AbstractCoordinatePlane.
Definition at line 536 of file KDChartCartesianCoordinatePlane.cpp.
References d, KDChart::CartesianCoordinatePlane::doneSetZoomFactorY(), KDChart::CartesianCoordinatePlane::drawingArea(), KDChart::CartesianCoordinatePlane::logicalArea(), and KDChart::AbstractCoordinatePlane::propertiesChanged().
|
overridevirtualinherited |
reimpl
Reimplemented from KDChart::AbstractCoordinatePlane.
Definition at line 783 of file KDChartCartesianCoordinatePlane.cpp.
References KDChart::AbstractCartesianDiagram::axes(), KDChart::AbstractAxis::coordinatePlane(), KDChart::AbstractCoordinatePlane::diagram(), KDChart::CartesianAxis::isAbscissa(), KDChart::CartesianAxis::isOrdinate(), and KDChart::CartesianCoordinatePlane::translate().
|
overrideprotectedinherited |
Definition at line 918 of file KDChartCartesianCoordinatePlane.cpp.
References d, KDChart::CartesianCoordinatePlane::heightForWidth(), and KDChart::AbstractCoordinatePlane::sizeHint().
|
virtualinherited |
Report changed size hint: ask the parent widget to recalculate the layout.
Definition at line 81 of file KDChartLayoutItems.cpp.
References KDChart::AbstractLayoutItem::mParent.
Referenced by KDChart::TextLayoutItem::sizeHint().
|
protectedslotinherited |
Definition at line 151 of file KDChartCartesianCoordinatePlane.cpp.
References KDChart::CartesianCoordinatePlane::layoutDiagrams().
Referenced by KDChart::CartesianCoordinatePlane::addDiagram(), and KDChart::CartesianCoordinatePlane::setAxesCalcModes().
|
virtualinherited |
Removes the diagram from the plane, without deleting it.
The plane no longer owns the diagram, so it is the caller's responsibility to delete the diagram.
Definition at line 114 of file KDChartAbstractCoordinatePlane.cpp.
References d, KDChart::AbstractCoordinatePlane::layoutDiagrams(), KDChart::AbstractCoordinatePlane::layoutPlanes(), KDChart::AbstractCoordinatePlane::relayout(), KDChart::AbstractDiagram::setCoordinatePlane(), and KDChart::AbstractCoordinatePlane::update().
Referenced by KDChart::AbstractCoordinatePlane::replaceDiagram().
|
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().
|
overridevirtualinherited |
Translate the given point in value space coordinates to a position in pixel space.
diagramPoint | The point in value coordinates. |
Implements KDChart::AbstractCoordinatePlane.
Definition at line 456 of file KDChartCartesianCoordinatePlane.cpp.
References d.
Referenced by KDChart::CartesianAxis::maximumSize(), KDChart::LeveyJenningsAxis::paintAsOrdinate(), and KDChart::CartesianCoordinatePlane::sharedAxisMasterPlane().
|
protected |
Definition at line 81 of file KDChartLeveyJenningsCoordinatePlane.cpp.
References KDChart::CartesianCoordinatePlane::translateBack().
|
slotinherited |
Calling update() on the plane triggers the global KDChart::Chart::update()
Definition at line 253 of file KDChartAbstractCoordinatePlane.cpp.
References KDChart::AbstractCoordinatePlane::needUpdate().
Referenced by KDChart::AbstractCoordinatePlane::addDiagram(), KDChart::PolarCoordinatePlane::adjustZoomAndRepaint(), KDChart::PolarCoordinatePlane::layoutDiagrams(), KDChart::CartesianCoordinatePlane::layoutDiagrams(), KDChart::AbstractCoordinatePlane::replaceDiagram(), KDChart::PolarCoordinatePlane::resetGridAttributes(), KDChart::CartesianCoordinatePlane::resetGridAttributes(), KDChart::AbstractCoordinatePlane::setGlobalGridAttributes(), KDChart::PolarCoordinatePlane::setGridAttributes(), KDChart::CartesianCoordinatePlane::setGridAttributes(), and KDChart::AbstractCoordinatePlane::takeDiagram().
|
inherited |
Definition at line 652 of file KDChartCartesianCoordinatePlane.cpp.
References d.
|
signalinherited |
Emitted upon change of the view coordinate system.
Referenced by KDChart::CartesianCoordinatePlane::setAxesCalcModes(), KDChart::CartesianCoordinatePlane::setAxesCalcModeX(), and KDChart::CartesianCoordinatePlane::setAxesCalcModeY().
|
inherited |
Returns the currently visible data range.
Might be greater than the range of the grid.
Definition at line 860 of file KDChartCartesianCoordinatePlane.cpp.
References KDChart::CartesianCoordinatePlane::drawingArea(), and KDChart::CartesianCoordinatePlane::translateBack().
Referenced by KDChart::Plotter::calcMergeRadius().
|
inherited |
Returns the visible part of the diagram area, i.e.
Definition at line 363 of file KDChartCartesianCoordinatePlane.cpp.
References KDChart::CartesianCoordinatePlane::diagramArea(), and KDChart::CartesianCoordinatePlane::drawingArea().
Referenced by KDChart::Measure::sizeOfArea().
|
inherited |
Definition at line 409 of file KDChartCartesianCoordinatePlane.cpp.
References d.
|
overridevirtualinherited |
Reimplemented from KDChart::AbstractCoordinatePlane.
Definition at line 552 of file KDChartCartesianCoordinatePlane.cpp.
References d.
Referenced by KDChart::CartesianCoordinatePlane::handleFixedDataCoordinateSpaceRelation().
|
overridevirtualinherited |
Reimplemented from KDChart::AbstractCoordinatePlane.
Definition at line 557 of file KDChartCartesianCoordinatePlane.cpp.
References d.
Referenced by KDChart::CartesianCoordinatePlane::handleFixedDataCoordinateSpaceRelation().
|
overridevirtualinherited |
Reimplemented from KDChart::AbstractCoordinatePlane.
Definition at line 562 of file KDChartCartesianCoordinatePlane.cpp.
References d.
Referenced by KDChart::CartesianCoordinatePlane::handleFixedDataCoordinateSpaceRelation().
|
protectedinherited |
|
protectedinherited |
Definition at line 92 of file KDChartLayoutItems.h.
Referenced by KDChart::AutoSpacerLayoutItem::paint().