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...
 

Detailed Description

Support Class for JKQTPCoordinateAxis, which summarizes all proeprties that define the visual styling of a JKQTPCoordinateAxis.

See also
JKQTPCoordinateAxis, JKQTPlotter Styling System

Constructor & Destructor Documentation

◆ JKQTPCoordinateAxisStyle() [1/2]

JKQTPCoordinateAxisStyle::JKQTPCoordinateAxisStyle ( )

◆ JKQTPCoordinateAxisStyle() [2/2]

JKQTPCoordinateAxisStyle::JKQTPCoordinateAxisStyle ( const JKQTBasePlotterStyle baseStyle)

Member Function Documentation

◆ loadSettings()

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

Parameters
settingsQSettings-object to read from
groupGroup in the QSettings-object to read from
defaultStyleIf a setting cannot be found in settings, default values are taken from this object By default, this is a default-constructed object

◆ saveSettings()

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.

Parameters
settingsQSettings-object to save to
groupGroup in the QSettings-object to save to

Member Data Documentation

◆ autoLabelDigits

bool JKQTPCoordinateAxisStyle::autoLabelDigits

when true, the digits of the labels are calculated automatically

◆ axisColor

QColor JKQTPCoordinateAxisStyle::axisColor

color of the axis (labels, ticks, axis itself ...)

◆ axisLineOffset

double JKQTPCoordinateAxisStyle::axisLineOffset

if non-zero, the line of the coordinate axis is moved outside by this amount [pt]

◆ colorZeroAxis

QColor JKQTPCoordinateAxisStyle::colorZeroAxis

color of 0-line

◆ drawGrid

bool JKQTPCoordinateAxisStyle::drawGrid

indicates whether to draw the major grid lines

◆ drawMinorGrid

bool JKQTPCoordinateAxisStyle::drawMinorGrid

indicates whether to draw the minor grid lines

◆ drawMode1

JKQTPCADrawMode JKQTPCoordinateAxisStyle::drawMode1

draw mode of the main (left/bottom) axis

◆ drawMode2

JKQTPCADrawMode JKQTPCoordinateAxisStyle::drawMode2

draw mode of the secondary (right/top) axis

◆ gridColor

QColor JKQTPCoordinateAxisStyle::gridColor

color of the grid

◆ gridStyle

Qt::PenStyle JKQTPCoordinateAxisStyle::gridStyle

line stye of the grid lines

◆ gridWidth

double JKQTPCoordinateAxisStyle::gridWidth

width of the grid lines (in pixel)

◆ labelDigits

int JKQTPCoordinateAxisStyle::labelDigits

digits used for tick labels

◆ labelDistance

double JKQTPCoordinateAxisStyle::labelDistance

distance between tick label and axis label in pt

◆ labelFontSize

double JKQTPCoordinateAxisStyle::labelFontSize

fontsize of the axis labels

◆ labelPosition

JKQTPLabelPosition JKQTPCoordinateAxisStyle::labelPosition

position of the axis label

◆ labelType

JKQTPCALabelType JKQTPCoordinateAxisStyle::labelType

indicates how to draw the labels

◆ lineWidth

double JKQTPCoordinateAxisStyle::lineWidth

line width of axis in pt

◆ lineWidthZeroAxis

double JKQTPCoordinateAxisStyle::lineWidthZeroAxis

line width of 0-line in pt

◆ minorGridColor

QColor JKQTPCoordinateAxisStyle::minorGridColor

color of the minor grid lines

◆ minorGridStyle

Qt::PenStyle JKQTPCoordinateAxisStyle::minorGridStyle

line stye of the minor grid lines

◆ minorGridWidth

double JKQTPCoordinateAxisStyle::minorGridWidth

width of the minor grid lines (in pixel)

◆ minorTickInsideLength

double JKQTPCoordinateAxisStyle::minorTickInsideLength

length of a minor axis tick inside the plot border in pt

◆ minorTickLabelFontSize

double JKQTPCoordinateAxisStyle::minorTickLabelFontSize

fontsize of the minor axis tick labels

◆ minorTickLabelFullNumber

bool JKQTPCoordinateAxisStyle::minorTickLabelFullNumber

indicates whether the minor tick labels should be full numbers, or just a number between 0..10

◆ minorTickLabelsEnabled

bool JKQTPCoordinateAxisStyle::minorTickLabelsEnabled

if true, the plotter displays minor axis labels as number between 1 and 10 in some cases

◆ minorTickOutsideLength

double JKQTPCoordinateAxisStyle::minorTickOutsideLength

length of a minor axis tick outside the plot border in pt

◆ minorTicks

unsigned int JKQTPCoordinateAxisStyle::minorTicks

number of minor grid lines per axis tick interval

◆ minorTickWidth

double JKQTPCoordinateAxisStyle::minorTickWidth

line width of minor ticks in pt

◆ minTicks

unsigned int JKQTPCoordinateAxisStyle::minTicks

minimum number of axis ticks

◆ showZeroAxis

bool JKQTPCoordinateAxisStyle::showZeroAxis

indicates whether to draw a thick axis line at x=0 (zero axis)

◆ styleZeroAxis

Qt::PenStyle JKQTPCoordinateAxisStyle::styleZeroAxis

pen style of 0-line

◆ tickDateFormat

QString JKQTPCoordinateAxisStyle::tickDateFormat

format string for date tick labels, see see QDateTime::toString() documentation for details on format strings

◆ tickDateTimeFormat

QString JKQTPCoordinateAxisStyle::tickDateTimeFormat

format string for datetime tick labels, see see QDateTime::toString() documentation for details on format strings

◆ tickInsideLength

double JKQTPCoordinateAxisStyle::tickInsideLength

length of an axis tick inside the plot border in pt

◆ tickLabelAngle

double JKQTPCoordinateAxisStyle::tickLabelAngle

rotation angle of tick labels [-180..180], i.e. given in degrees, default is 0 (horizontal)

◆ tickLabelDistance

double JKQTPCoordinateAxisStyle::tickLabelDistance

distance between tick end and label start in pt

◆ tickLabelFontSize

double JKQTPCoordinateAxisStyle::tickLabelFontSize

fontsize of the axis tick labels

◆ tickMode

JKQTPLabelTickMode JKQTPCoordinateAxisStyle::tickMode

mode of the major ticks

◆ tickOutsideLength

double JKQTPCoordinateAxisStyle::tickOutsideLength

length of an axis tick outside the plot border in pt

◆ tickTimeFormat

QString JKQTPCoordinateAxisStyle::tickTimeFormat

format string for time tick labels, see see QDateTime::toString() documentation for details on format strings

◆ tickWidth

double JKQTPCoordinateAxisStyle::tickWidth

line width of ticks in pt


The documentation for this class was generated from the following file: