| QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
    | 
Encapsulates the properties of a plot axis. More...
#include <qgsplot.h>
| Public Member Functions | |
| QgsPlotAxis () | |
| QgsPlotAxis (const QgsPlotAxis &other)=delete | |
| QgsPlotAxis cannot be copied.  More... | |
| ~QgsPlotAxis () | |
| double | gridIntervalMajor () const | 
| Returns the interval of major grid lines for the axis.  More... | |
| double | gridIntervalMinor () const | 
| Returns the interval of minor grid lines for the axis.  More... | |
| QgsLineSymbol * | gridMajorSymbol () | 
| Returns the line symbol used to render the major lines in the axis grid.  More... | |
| QgsLineSymbol * | gridMinorSymbol () | 
| Returns the line symbol used to render the minor lines in the axis grid.  More... | |
| double | labelInterval () const | 
| Returns the interval of labels for the axis.  More... | |
| QgsNumericFormat * | numericFormat () const | 
| Returns the numeric format used for the axis labels.  More... | |
| QgsPlotAxis & | operator= (const QgsPlotAxis &other)=delete | 
| QgsPlotAxis cannot be copied.  More... | |
| bool | readXml (const QDomElement &element, const QgsReadWriteContext &context) | 
| Reads the axis' properties from an XML element.  More... | |
| void | setGridIntervalMajor (double interval) | 
| Sets the interval of major grid lines for the axis.  More... | |
| void | setGridIntervalMinor (double interval) | 
| Sets the interval of minor grid lines for the axis.  More... | |
| void | setGridMajorSymbol (QgsLineSymbol *symbol) | 
| Sets the symbol used to render the major lines in the axis grid.  More... | |
| void | setGridMinorSymbol (QgsLineSymbol *symbol) | 
| Sets the symbol used to render the minor lines in the axis grid.  More... | |
| void | setLabelInterval (double interval) | 
| Sets the interval of labels for the axis.  More... | |
| void | setNumericFormat (QgsNumericFormat *format) | 
| Sets the numeric format used for the axis labels.  More... | |
| void | setTextFormat (const QgsTextFormat &format) | 
| Sets the text format used for the axis labels.  More... | |
| QgsTextFormat | textFormat () const | 
| Returns the text format used for the axis labels.  More... | |
| bool | writeXml (QDomElement &element, QDomDocument &document, const QgsReadWriteContext &context) const | 
| Writes the axis' properties into an XML element.  More... | |
Encapsulates the properties of a plot axis.
| QgsPlotAxis::QgsPlotAxis | ( | ) | 
Definition at line 45 of file qgsplot.cpp.
| 
 | default | 
| 
 | delete | 
QgsPlotAxis cannot be copied.
| 
 | inline | 
Returns the interval of major grid lines for the axis.
| 
 | inline | 
Returns the interval of minor grid lines for the axis.
| QgsLineSymbol * QgsPlotAxis::gridMajorSymbol | ( | ) | 
Returns the line symbol used to render the major lines in the axis grid.
Definition at line 109 of file qgsplot.cpp.
| QgsLineSymbol * QgsPlotAxis::gridMinorSymbol | ( | ) | 
Returns the line symbol used to render the minor lines in the axis grid.
Definition at line 119 of file qgsplot.cpp.
| 
 | inline | 
Returns the interval of labels for the axis.
| QgsNumericFormat * QgsPlotAxis::numericFormat | ( | ) | const | 
Returns the numeric format used for the axis labels.
Definition at line 99 of file qgsplot.cpp.
| 
 | delete | 
QgsPlotAxis cannot be copied.
| bool QgsPlotAxis::readXml | ( | const QDomElement & | element, | 
| const QgsReadWriteContext & | context | ||
| ) | 
Reads the axis' properties from an XML element.
Definition at line 79 of file qgsplot.cpp.
| 
 | inline | 
Sets the interval of major grid lines for the axis.
| 
 | inline | 
Sets the interval of minor grid lines for the axis.
| void QgsPlotAxis::setGridMajorSymbol | ( | QgsLineSymbol * | symbol | ) | 
Sets the symbol used to render the major lines in the axis grid.
Ownership of symbol is transferred to the plot.
Definition at line 114 of file qgsplot.cpp.
| void QgsPlotAxis::setGridMinorSymbol | ( | QgsLineSymbol * | symbol | ) | 
Sets the symbol used to render the minor lines in the axis grid.
Ownership of symbol is transferred to the plot.
Definition at line 124 of file qgsplot.cpp.
| 
 | inline | 
Sets the interval of labels for the axis.
| void QgsPlotAxis::setNumericFormat | ( | QgsNumericFormat * | format | ) | 
Sets the numeric format used for the axis labels.
Ownership of format is transferred to the plot.
Definition at line 104 of file qgsplot.cpp.
| void QgsPlotAxis::setTextFormat | ( | const QgsTextFormat & | format | ) | 
Sets the text format used for the axis labels.
Definition at line 134 of file qgsplot.cpp.
| QgsTextFormat QgsPlotAxis::textFormat | ( | ) | const | 
Returns the text format used for the axis labels.
Definition at line 129 of file qgsplot.cpp.
| bool QgsPlotAxis::writeXml | ( | QDomElement & | element, | 
| QDomDocument & | document, | ||
| const QgsReadWriteContext & | context | ||
| ) | const | 
Writes the axis' properties into an XML element.
Definition at line 55 of file qgsplot.cpp.