![]() |
JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
|
This Mix-In class provides setter/getter methods, and tools for x- and y-value label formatting (i.e. double to string conversion) More...
#include <jkqtpgraphlabelstylemixin.h>
Public Member Functions | |
| JKQTPXYLabelsGeneratorMixin () | |
| class constructor | |
| virtual | ~JKQTPXYLabelsGeneratorMixin () |
| double | getXBelowIsZero () const |
| x-values below this value are treated as exactly 0 | |
| QString | getXDateTimeFormat () const |
| format string for datetime -> string conversion of x-values | |
| JKQTPGraphLabelConverterType | getXDefaultConverter () const |
| type of number to string conversion for x-values | |
| int | getXDefaultPrecision () const |
| default precision for x-labels | |
| double | getXMaxNoExponent () const |
| x-values above this value will be shown in exponent notation, below in decimal notation | |
| double | getXMinNoExponent () const |
| x-values below this value will be shown in exponent notation, above in decimal notation | |
| QString | getXValueLabelFormat () const |
format string for the x-label, use %1 as placeholder for the numeric value | |
| QString | getXYValueLabelFormat () const |
format string for the x/y-label, use %1 as placeholder for the numeric value of x and %2 for y | |
| double | getYBelowIsZero () const |
| y-values below this value are treated as exactly 0 | |
| QString | getYDateTimeFormat () const |
| format string for datetime -> string conversion of y-value | |
| JKQTPGraphLabelConverterType | getYDefaultConverter () const |
| type of number to string conversion for y-values | |
| int | getYDefaultPrecision () const |
| default precision for x-labels | |
| double | getYMaxNoExponent () const |
| y-values above this value will be shown in exponent notation, below in decimal notation | |
| double | getYMinNoExponent () const |
| y-values below this value will be shown in exponent notation, above in decimal notation | |
| QString | getYValueLabelFormat () const |
format string for the y-label, use %1 as placeholder for the numeric value | |
| void | setXBelowIsZero (double v) |
| x-values below this value are treated as exactly 0 | |
| void | setXDateTimeFormat (const QString &v) |
| format string for datetime -> string conversion of x-values | |
| void | setXDefaultConverter (JKQTPGraphLabelConverterType v) |
| type of number to string conversion for x-values | |
| void | setXDefaultPrecision (int v) |
| default precision for x-labels | |
| void | setXMaxNoExponent (double v) |
| x-values above this value will be shown in exponent notation, below in decimal notation | |
| void | setXMinNoExponent (double v) |
| x-values below this value will be shown in exponent notation, above in decimal notation | |
| void | setXValueLabelFormat (const QString &v) |
format string for the x-label, use %1 as placeholder for the numeric value | |
| void | setXYValueLabelFormat (const QString &v) |
format string for the x/y-label, use %1 as placeholder for the numeric value of x and %2 for y | |
| void | setYBelowIsZero (double v) |
| y-values below this value are treated as exactly 0 | |
| void | setYDateTimeFormat (const QString &v) |
| format string for datetime -> string conversion of y-value | |
| void | setYDefaultConverter (JKQTPGraphLabelConverterType v) |
| type of number to string conversion for y-values | |
| void | setYDefaultPrecision (int v) |
| default precision for x-labels | |
| void | setYMaxNoExponent (double v) |
| y-values above this value will be shown in exponent notation, below in decimal notation | |
| void | setYMinNoExponent (double v) |
| y-values below this value will be shown in exponent notation, above in decimal notation | |
| void | setYValueLabelFormat (const QString &v) |
format string for the y-label, use %1 as placeholder for the numeric value | |
Protected Member Functions | |
| QString | generateDefaultXLabel (double x, double y, int index) const |
| default label generator for x-value only | |
| QString | generateDefaultXYLabel (double x, double y, int index) const |
| default label generator for x- and y-value | |
| QString | generateDefaultYLabel (double x, double y, int index) const |
| default label generator for y-value only | |
| QString | xValToString (double x) const |
| converts x to a string, using several of the formatting properties set in this class for x-values | |
| QString | yValToString (double y) const |
| converts y to a string, using several of the formatting properties set in this class for y-values | |
Static Protected Member Functions | |
| static QString | valToString (double x, JKQTPGraphLabelConverterType m_xDefaultConverter, int m_xDefaultPrecision, double m_xBelowIsZero, double m_xMinNoExponent, double m_xMaxNoExponent, const QString &m_xDateTimeFormat) |
| converts x to a QString, using the provided options | |
Private Attributes | |
| double | m_xBelowIsZero |
| x-values below this value are treated as exactly 0 | |
| QString | m_xDateTimeFormat |
| format string for datetime -> string conversion of x-values | |
| JKQTPGraphLabelConverterType | m_xDefaultConverter |
| type of number to string conversion for x-values | |
| int | m_xDefaultPrecision |
| default precision for x-labels | |
| double | m_xMaxNoExponent |
| x-values above this value will be shown in exponent notation, below in decimal notation | |
| double | m_xMinNoExponent |
| x-values below this value will be shown in exponent notation, above in decimal notation | |
| QString | m_xValueLabelFormat |
format string for the x-label, use %1 as placeholder for the numeric value | |
| QString | m_xyValueLabelFormat |
format string for the x/y-label, use %1 as placeholder for the numeric value of x and %2 for y | |
| double | m_yBelowIsZero |
| y-values below this value are treated as exactly 0 | |
| QString | m_yDateTimeFormat |
| format string for datetime -> string conversion of y-value | |
| JKQTPGraphLabelConverterType | m_yDefaultConverter |
| type of number to string conversion for y-values | |
| int | m_yDefaultPrecision |
| default precision for x-labels | |
| double | m_yMaxNoExponent |
| y-values above this value will be shown in exponent notation, below in decimal notation | |
| double | m_yMinNoExponent |
| y-values below this value will be shown in exponent notation, above in decimal notation | |
| QString | m_yValueLabelFormat |
format string for the y-label, use %1 as placeholder for the numeric value | |
This Mix-In class provides setter/getter methods, and tools for x- and y-value label formatting (i.e. double to string conversion)
|
explicit |
class constructor
|
virtual |
|
protected |
default label generator for x-value only
|
protected |
default label generator for x- and y-value
|
protected |
default label generator for y-value only
| double JKQTPXYLabelsGeneratorMixin::getXBelowIsZero | ( | ) | const |
x-values below this value are treated as exactly 0
| QString JKQTPXYLabelsGeneratorMixin::getXDateTimeFormat | ( | ) | const |
format string for datetime -> string conversion of x-values
| JKQTPGraphLabelConverterType JKQTPXYLabelsGeneratorMixin::getXDefaultConverter | ( | ) | const |
type of number to string conversion for x-values
| int JKQTPXYLabelsGeneratorMixin::getXDefaultPrecision | ( | ) | const |
default precision for x-labels
| double JKQTPXYLabelsGeneratorMixin::getXMaxNoExponent | ( | ) | const |
x-values above this value will be shown in exponent notation, below in decimal notation
| double JKQTPXYLabelsGeneratorMixin::getXMinNoExponent | ( | ) | const |
x-values below this value will be shown in exponent notation, above in decimal notation
| QString JKQTPXYLabelsGeneratorMixin::getXValueLabelFormat | ( | ) | const |
format string for the x-label, use %1 as placeholder for the numeric value
| QString JKQTPXYLabelsGeneratorMixin::getXYValueLabelFormat | ( | ) | const |
format string for the x/y-label, use %1 as placeholder for the numeric value of x and %2 for y
| double JKQTPXYLabelsGeneratorMixin::getYBelowIsZero | ( | ) | const |
y-values below this value are treated as exactly 0
| QString JKQTPXYLabelsGeneratorMixin::getYDateTimeFormat | ( | ) | const |
format string for datetime -> string conversion of y-value
| JKQTPGraphLabelConverterType JKQTPXYLabelsGeneratorMixin::getYDefaultConverter | ( | ) | const |
type of number to string conversion for y-values
| int JKQTPXYLabelsGeneratorMixin::getYDefaultPrecision | ( | ) | const |
default precision for x-labels
| double JKQTPXYLabelsGeneratorMixin::getYMaxNoExponent | ( | ) | const |
y-values above this value will be shown in exponent notation, below in decimal notation
| double JKQTPXYLabelsGeneratorMixin::getYMinNoExponent | ( | ) | const |
y-values below this value will be shown in exponent notation, above in decimal notation
| QString JKQTPXYLabelsGeneratorMixin::getYValueLabelFormat | ( | ) | const |
format string for the y-label, use %1 as placeholder for the numeric value
| void JKQTPXYLabelsGeneratorMixin::setXBelowIsZero | ( | double | v | ) |
x-values below this value are treated as exactly 0
| void JKQTPXYLabelsGeneratorMixin::setXDateTimeFormat | ( | const QString & | v | ) |
format string for datetime -> string conversion of x-values
| void JKQTPXYLabelsGeneratorMixin::setXDefaultConverter | ( | JKQTPGraphLabelConverterType | v | ) |
type of number to string conversion for x-values
| void JKQTPXYLabelsGeneratorMixin::setXDefaultPrecision | ( | int | v | ) |
default precision for x-labels
| void JKQTPXYLabelsGeneratorMixin::setXMaxNoExponent | ( | double | v | ) |
x-values above this value will be shown in exponent notation, below in decimal notation
| void JKQTPXYLabelsGeneratorMixin::setXMinNoExponent | ( | double | v | ) |
x-values below this value will be shown in exponent notation, above in decimal notation
| void JKQTPXYLabelsGeneratorMixin::setXValueLabelFormat | ( | const QString & | v | ) |
format string for the x-label, use %1 as placeholder for the numeric value
| void JKQTPXYLabelsGeneratorMixin::setXYValueLabelFormat | ( | const QString & | v | ) |
format string for the x/y-label, use %1 as placeholder for the numeric value of x and %2 for y
| void JKQTPXYLabelsGeneratorMixin::setYBelowIsZero | ( | double | v | ) |
y-values below this value are treated as exactly 0
| void JKQTPXYLabelsGeneratorMixin::setYDateTimeFormat | ( | const QString & | v | ) |
format string for datetime -> string conversion of y-value
| void JKQTPXYLabelsGeneratorMixin::setYDefaultConverter | ( | JKQTPGraphLabelConverterType | v | ) |
type of number to string conversion for y-values
| void JKQTPXYLabelsGeneratorMixin::setYDefaultPrecision | ( | int | v | ) |
default precision for x-labels
| void JKQTPXYLabelsGeneratorMixin::setYMaxNoExponent | ( | double | v | ) |
y-values above this value will be shown in exponent notation, below in decimal notation
| void JKQTPXYLabelsGeneratorMixin::setYMinNoExponent | ( | double | v | ) |
y-values below this value will be shown in exponent notation, above in decimal notation
| void JKQTPXYLabelsGeneratorMixin::setYValueLabelFormat | ( | const QString & | v | ) |
format string for the y-label, use %1 as placeholder for the numeric value
|
staticprotected |
converts x to a QString, using the provided options
|
protected |
converts x to a string, using several of the formatting properties set in this class for x-values
|
protected |
converts y to a string, using several of the formatting properties set in this class for y-values
|
private |
x-values below this value are treated as exactly 0
|
private |
format string for datetime -> string conversion of x-values
|
private |
type of number to string conversion for x-values
|
private |
default precision for x-labels
|
private |
x-values above this value will be shown in exponent notation, below in decimal notation
|
private |
x-values below this value will be shown in exponent notation, above in decimal notation
|
private |
format string for the x-label, use %1 as placeholder for the numeric value
|
private |
format string for the x/y-label, use %1 as placeholder for the numeric value of x and %2 for y
|
private |
y-values below this value are treated as exactly 0
|
private |
format string for datetime -> string conversion of y-value
|
private |
type of number to string conversion for y-values
|
private |
default precision for x-labels
|
private |
y-values above this value will be shown in exponent notation, below in decimal notation
|
private |
y-values below this value will be shown in exponent notation, above in decimal notation
|
private |
format string for the y-label, use %1 as placeholder for the numeric value