JKQTPlotter
an extensive Qt4/Qt5 Plotter framework (including a fast variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
|
Support Class for JKQTPCoordinateAxis, which summarizes all proeprties that define the visual styling of a JKQTPCoordinateAxis. More...
#include <jkqtpcoordinateaxesstyle.h>
Public Member Functions | |
JKQTPCoordinateAxisStyle () | |
JKQTPCoordinateAxisStyle (const JKQTBasePlotterStyle &baseStyle) | |
void | loadSettings (const QSettings &settings, const QString &group=QString("axis/"), const JKQTPCoordinateAxisStyle &defaultStyle=JKQTPCoordinateAxisStyle()) |
loads the plot properties from a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object More... | |
void | saveSettings (QSettings &settings, const QString &group=QString("axis/")) const |
saves the plot properties into a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object. More... | |
Public Attributes | |
bool | autoLabelDigits |
when true , the digits of the labels are calculated automatically More... | |
QColor | axisColor |
color of the axis (labels, ticks, axis itself ...) More... | |
double | axisLineOffset |
if non-zero, the line of the coordinate axis is moved outside by this amount [pt] More... | |
QColor | colorZeroAxis |
color of 0-line More... | |
bool | drawGrid |
indicates whether to draw the major grid lines More... | |
bool | drawMinorGrid |
indicates whether to draw the minor grid lines More... | |
JKQTPCADrawMode | drawMode1 |
draw mode of the main (left/bottom) axis More... | |
JKQTPCADrawMode | drawMode2 |
draw mode of the secondary (right/top) axis More... | |
QColor | gridColor |
color of the grid More... | |
Qt::PenStyle | gridStyle |
line stye of the grid lines More... | |
double | gridWidth |
width of the grid lines (in pixel) More... | |
int | labelDigits |
digits used for tick labels More... | |
double | labelDistance |
distance between tick label and axis label in pt More... | |
double | labelFontSize |
fontsize of the axis labels More... | |
JKQTPLabelPosition | labelPosition |
position of the axis label More... | |
JKQTPCALabelType | labelType |
indicates how to draw the labels More... | |
double | lineWidth |
line width of axis in pt More... | |
double | lineWidthZeroAxis |
line width of 0-line in pt More... | |
QColor | minorGridColor |
color of the minor grid lines More... | |
Qt::PenStyle | minorGridStyle |
line stye of the minor grid lines More... | |
double | minorGridWidth |
width of the minor grid lines (in pixel) More... | |
double | minorTickInsideLength |
length of a minor axis tick inside the plot border in pt More... | |
double | minorTickLabelFontSize |
fontsize of the minor axis tick labels More... | |
bool | minorTickLabelFullNumber |
indicates whether the minor tick labels should be full numbers, or just a number between 0..10 More... | |
bool | minorTickLabelsEnabled |
if true , the plotter displays minor axis labels as number between 1 and 10 in some cases More... | |
double | minorTickOutsideLength |
length of a minor axis tick outside the plot border in pt More... | |
unsigned int | minorTicks |
number of minor grid lines per axis tick interval More... | |
double | minorTickWidth |
line width of minor ticks in pt More... | |
unsigned int | minTicks |
minimum number of axis ticks More... | |
bool | showZeroAxis |
indicates whether to draw a thick axis line at x=0 (zero axis) More... | |
Qt::PenStyle | styleZeroAxis |
pen style of 0-line More... | |
QString | tickDateFormat |
format string for date tick labels, see see QDateTime::toString() documentation for details on format strings More... | |
QString | tickDateTimeFormat |
format string for datetime tick labels, see see QDateTime::toString() documentation for details on format strings More... | |
double | tickInsideLength |
length of an axis tick inside the plot border in pt More... | |
double | tickLabelAngle |
rotation angle of tick labels [-180..180], i.e. given in degrees, default is 0 (horizontal) More... | |
double | tickLabelDistance |
distance between tick end and label start in pt More... | |
double | tickLabelFontSize |
fontsize of the axis tick labels More... | |
JKQTPLabelTickMode | tickMode |
mode of the major ticks More... | |
double | tickOutsideLength |
length of an axis tick outside the plot border in pt More... | |
QString | tickTimeFormat |
format string for time tick labels, see see QDateTime::toString() documentation for details on format strings More... | |
double | tickWidth |
line width of ticks in pt More... | |
Support Class for JKQTPCoordinateAxis, which summarizes all proeprties that define the visual styling of a JKQTPCoordinateAxis.
JKQTPCoordinateAxisStyle::JKQTPCoordinateAxisStyle | ( | ) |
JKQTPCoordinateAxisStyle::JKQTPCoordinateAxisStyle | ( | const JKQTBasePlotterStyle & | baseStyle | ) |
void JKQTPCoordinateAxisStyle::loadSettings | ( | const QSettings & | settings, |
const QString & | group = QString("axis/") , |
||
const JKQTPCoordinateAxisStyle & | defaultStyle = JKQTPCoordinateAxisStyle() |
||
) |
loads the plot properties from a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object
settings | QSettings-object to read from |
group | Group in the QSettings-object to read from |
defaultStyle | If a setting cannot be found in settings, default values are taken from this object By default, this is a default-constructed object |
void JKQTPCoordinateAxisStyle::saveSettings | ( | QSettings & | settings, |
const QString & | group = QString("axis/") |
||
) | const |
saves the plot properties into a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object.
settings | QSettings-object to save to |
group | Group in the QSettings-object to save to |
bool JKQTPCoordinateAxisStyle::autoLabelDigits |
when true
, the digits of the labels are calculated automatically
QColor JKQTPCoordinateAxisStyle::axisColor |
color of the axis (labels, ticks, axis itself ...)
double JKQTPCoordinateAxisStyle::axisLineOffset |
if non-zero, the line of the coordinate axis is moved outside by this amount [pt]
QColor JKQTPCoordinateAxisStyle::colorZeroAxis |
color of 0-line
bool JKQTPCoordinateAxisStyle::drawGrid |
indicates whether to draw the major grid lines
bool JKQTPCoordinateAxisStyle::drawMinorGrid |
indicates whether to draw the minor grid lines
JKQTPCADrawMode JKQTPCoordinateAxisStyle::drawMode1 |
draw mode of the main (left/bottom) axis
JKQTPCADrawMode JKQTPCoordinateAxisStyle::drawMode2 |
draw mode of the secondary (right/top) axis
QColor JKQTPCoordinateAxisStyle::gridColor |
color of the grid
Qt::PenStyle JKQTPCoordinateAxisStyle::gridStyle |
line stye of the grid lines
double JKQTPCoordinateAxisStyle::gridWidth |
width of the grid lines (in pixel)
int JKQTPCoordinateAxisStyle::labelDigits |
digits used for tick labels
double JKQTPCoordinateAxisStyle::labelDistance |
distance between tick label and axis label in pt
double JKQTPCoordinateAxisStyle::labelFontSize |
fontsize of the axis labels
JKQTPLabelPosition JKQTPCoordinateAxisStyle::labelPosition |
position of the axis label
JKQTPCALabelType JKQTPCoordinateAxisStyle::labelType |
indicates how to draw the labels
double JKQTPCoordinateAxisStyle::lineWidth |
line width of axis in pt
double JKQTPCoordinateAxisStyle::lineWidthZeroAxis |
line width of 0-line in pt
QColor JKQTPCoordinateAxisStyle::minorGridColor |
color of the minor grid lines
Qt::PenStyle JKQTPCoordinateAxisStyle::minorGridStyle |
line stye of the minor grid lines
double JKQTPCoordinateAxisStyle::minorGridWidth |
width of the minor grid lines (in pixel)
double JKQTPCoordinateAxisStyle::minorTickInsideLength |
length of a minor axis tick inside the plot border in pt
double JKQTPCoordinateAxisStyle::minorTickLabelFontSize |
fontsize of the minor axis tick labels
bool JKQTPCoordinateAxisStyle::minorTickLabelFullNumber |
indicates whether the minor tick labels should be full numbers, or just a number between 0..10
bool JKQTPCoordinateAxisStyle::minorTickLabelsEnabled |
if true
, the plotter displays minor axis labels as number between 1 and 10 in some cases
double JKQTPCoordinateAxisStyle::minorTickOutsideLength |
length of a minor axis tick outside the plot border in pt
unsigned int JKQTPCoordinateAxisStyle::minorTicks |
number of minor grid lines per axis tick interval
double JKQTPCoordinateAxisStyle::minorTickWidth |
line width of minor ticks in pt
unsigned int JKQTPCoordinateAxisStyle::minTicks |
minimum number of axis ticks
bool JKQTPCoordinateAxisStyle::showZeroAxis |
indicates whether to draw a thick axis line at x=0 (zero axis)
Qt::PenStyle JKQTPCoordinateAxisStyle::styleZeroAxis |
pen style of 0-line
QString JKQTPCoordinateAxisStyle::tickDateFormat |
format string for date tick labels, see see QDateTime::toString() documentation for details on format strings
QString JKQTPCoordinateAxisStyle::tickDateTimeFormat |
format string for datetime tick labels, see see QDateTime::toString() documentation for details on format strings
double JKQTPCoordinateAxisStyle::tickInsideLength |
length of an axis tick inside the plot border in pt
double JKQTPCoordinateAxisStyle::tickLabelAngle |
rotation angle of tick labels [-180..180], i.e. given in degrees, default is 0 (horizontal)
double JKQTPCoordinateAxisStyle::tickLabelDistance |
distance between tick end and label start in pt
double JKQTPCoordinateAxisStyle::tickLabelFontSize |
fontsize of the axis tick labels
JKQTPLabelTickMode JKQTPCoordinateAxisStyle::tickMode |
mode of the major ticks
double JKQTPCoordinateAxisStyle::tickOutsideLength |
length of an axis tick outside the plot border in pt
QString JKQTPCoordinateAxisStyle::tickTimeFormat |
format string for time tick labels, see see QDateTime::toString() documentation for details on format strings
double JKQTPCoordinateAxisStyle::tickWidth |
line width of ticks in pt