KChart::CartesianGrid

Search for usage in LXR

KChart::CartesianGrid Class Reference

#include <KChartCartesianGrid.h>

Inheritance diagram for KChart::CartesianGrid:

Public Member Functions

void drawGrid (PaintContext *context) override
 
int maximalSteps () const
 
int minimalSteps () const
 
void setMaximalSteps (int maxsteps)
 
void setMinimalSteps (int minsteps)
 
- Public Member Functions inherited from KChart::AbstractGrid
void setNeedRecalculate ()
 
DataDimensionsList updateData (AbstractCoordinatePlane *plane)
 

Additional Inherited Members

- Static Public Member Functions inherited from KChart::AbstractGrid
static const DataDimension adjustedLowerUpperRange (const DataDimension &dim, bool adjustLower, bool adjustUpper)
 
static void adjustLowerUpperRange (qreal &start, qreal &end, qreal stepWidth, bool adjustLower, bool adjustUpper)
 
static bool isBoundariesValid (const DataDimensionsList &l)
 
static bool isBoundariesValid (const QPair< QPointF, QPointF > &b)
 
static bool isBoundariesValid (const QRectF &r)
 
static bool isValueValid (const qreal &r)
 
- Public Attributes inherited from KChart::AbstractGrid
GridAttributes gridAttributes
 
- Protected Member Functions inherited from KChart::AbstractGrid
- Protected Attributes inherited from KChart::AbstractGrid
DataDimensionsList mDataDimensions
 
AbstractCoordinatePlanemPlane
 

Detailed Description

Class for the grid in a cartesian plane.

The CartesianGrid interface is used for calculating and for drawing the horizontal grid lines, and the vertical grid lines of a cartesian coordinate plane.

Definition at line 30 of file KChartCartesianGrid.h.

Constructor & Destructor Documentation

◆ CartesianGrid()

CartesianGrid::CartesianGrid ( )

Definition at line 23 of file KChartCartesianGrid.cpp.

◆ ~CartesianGrid()

CartesianGrid::~CartesianGrid ( )
override

Definition at line 28 of file KChartCartesianGrid.cpp.

Member Function Documentation

◆ drawGrid()

void CartesianGrid::drawGrid ( PaintContext * context)
overridevirtual

Doing the actual drawing.

Every derived class must implement this.

Note
When implementing drawGrid(): Before you start drawing, make sure to call updateData(), to get the data boundaries recalculated. For an example, see the implementation of CartesianGrid:drawGrid().

Implements KChart::AbstractGrid.

Reimplemented in KChart::LeveyJenningsGrid.

Definition at line 52 of file KChartCartesianGrid.cpp.

◆ maximalSteps()

int CartesianGrid::maximalSteps ( ) const

Definition at line 42 of file KChartCartesianGrid.cpp.

◆ minimalSteps()

int CartesianGrid::minimalSteps ( ) const

Definition at line 32 of file KChartCartesianGrid.cpp.

◆ setMaximalSteps()

void CartesianGrid::setMaximalSteps ( int maxsteps)

Definition at line 47 of file KChartCartesianGrid.cpp.

◆ setMinimalSteps()

void CartesianGrid::setMinimalSteps ( int minsteps)

Definition at line 37 of file KChartCartesianGrid.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.