20#ifndef JKQTPGRAPHSBASESTYLE_H
21#define JKQTPGRAPHSBASESTYLE_H
23#include "jkqtplotter/jkqtptools.h"
24#include "jkqtplotter/jkqtpimagetools.h"
25#include "jkqtplotter/jkqtpcoordinateaxesstyle.h"
26#include "jkqtplotter/jkqtpkeystyle.h"
27#include "jkqtplotter/jkqtpimagetools.h"
28#include "jkqtplotter/jkqtplotter_imexport.h"
29#include "jkqtcommon/jkqtpdrawingtools.h"
30#include "jkqtcommon/jkqtpbasicimagetools.h"
31#include "jkqtplotter/jkqtplotter_configmacros.h"
48#ifndef JKQTPLOTTER_WORKAROUND_QGADGET_BUG
62 QBrush
brush(
const QColor& color)
const;
76#ifndef JKQTPLOTTER_WORKAROUND_QGADGET_BUG
147#ifndef JKQTPLOTTER_WORKAROUND_QGADGET_BUG
197#ifndef JKQTPLOTTER_WORKAROUND_QGADGET_BUG
242#ifndef JKQTPLOTTER_WORKAROUND_QGADGET_BUG
290#ifndef JKQTPLOTTER_WORKAROUND_QGADGET_BUG
332#ifndef JKQTPLOTTER_WORKAROUND_QGADGET_BUG
387#ifndef JKQTPLOTTER_WORKAROUND_QGADGET_BUG
410 void saveSettings(QSettings& settings,
const QString& group=QString(
"graphs_styling/"))
const;
Support Class for JKQTBasePlotter, which summarizes all properties that define the visual styling of ...
Definition jkqtpgraphsbasestyle.h:196
JKQTAnnotationsSpecificStyleProperties(const JKQTAnnotationsSpecificStyleProperties &other)=default
JKQTAnnotationsSpecificStyleProperties(const JKQTBasePlotterStyle &parent, const JKQTGraphsSpecificStyleProperties &other)
JKQTAnnotationsSpecificStyleProperties(const JKQTBasePlotterStyle &parent)
void loadSettings(const QSettings &settings, const QString &group, const JKQTAnnotationsSpecificStyleProperties &defaultStyle)
loads the plot properties from a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object
JKQTAnnotationsSpecificStyleProperties & operator=(const JKQTAnnotationsSpecificStyleProperties &other)=default
QString defaultFontName
default font name in the plot
Definition jkqtpgraphsbasestyle.h:230
JKQTAnnotationsSpecificStyleProperties & operator=(JKQTAnnotationsSpecificStyleProperties &&other)=default
JKQTAnnotationsSpecificStyleProperties(JKQTAnnotationsSpecificStyleProperties &&other)=default
double defaultFontSize
default font size in the plot [pt]
Definition jkqtpgraphsbasestyle.h:228
QColor defaultTextColor
default text color in the plot
Definition jkqtpgraphsbasestyle.h:226
void saveSettings(QSettings &settings, const QString &group) const
saves the plot properties into a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object.
Support Class for JKQTBasePlotter, which summarizes all properties that define the visual styling of ...
Definition jkqtpgraphsbasestyle.h:241
JKQTBarchartSpecificStyleProperties(const JKQTBasePlotterStyle &parent)
double defaultRectRadiusAtValue
corner radius (in pt) for bars at the "value" end
Definition jkqtpgraphsbasestyle.h:271
JKQTBarchartSpecificStyleProperties(JKQTBarchartSpecificStyleProperties &&other)=default
void loadSettings(const QSettings &settings, const QString &group, const JKQTBarchartSpecificStyleProperties &defaultStyle)
loads the plot properties from a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object
JKQTBarchartSpecificStyleProperties & operator=(JKQTBarchartSpecificStyleProperties &&other)=default
void saveSettings(QSettings &settings, const QString &group) const
saves the plot properties into a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object.
double stackSeparation
separation between consecutive pars in a stack of bars [in pt]
Definition jkqtpgraphsbasestyle.h:277
bool drawBaseline
indicates whether to draw a baseline (style is derived from axis style)
Definition jkqtpgraphsbasestyle.h:275
JKQTBarchartSpecificStyleProperties(const JKQTBarchartSpecificStyleProperties &other)=default
double defaultRectRadiusAtBaseline
corner radius (in pt) for bars at the "baseline" end
Definition jkqtpgraphsbasestyle.h:273
JKQTBarchartSpecificStyleProperties & operator=(const JKQTBarchartSpecificStyleProperties &other)=default
JKQTBarchartSpecificStyleProperties(const JKQTBasePlotterStyle &parent, const JKQTGraphsSpecificStyleProperties &other)
Support Class for JKQTBasePlotter, which summarizes all properties that define the visual styling of ...
Definition jkqtpbaseplotterstyle.h:47
Support Class for JKQTBasePlotter, which summarizes a fill style.
Definition jkqtpgraphsbasestyle.h:47
Qt::BrushStyle brushStyle
a brushStyle (e.g. pattern) to use for filling
Definition jkqtpgraphsbasestyle.h:55
QString toCSSString() const
converst the contents to a string representation
QGradient gradient
a QGradient to use for filling
Definition jkqtpgraphsbasestyle.h:57
QPixmap texture
a texture to use for filling
Definition jkqtpgraphsbasestyle.h:59
JKQTFillStyleSummmary(Qt::BrushStyle style=Qt::SolidPattern, const QGradient &grad=QGradient())
static JKQTFillStyleSummmary fromString(const QString &style)
reads object contents from a string representation, e.g. as created by JKQTFillStyleSummmary::toCSSSt...
QBrush brush(const QColor &color) const
constructs a QBrush from the data in this object, possibly using color to replace JKQTPlotterDrawingT...
Support Class for JKQTBasePlotter, which summarizes all properties that define the visual styling of ...
Definition jkqtpgraphsbasestyle.h:331
JKQTFinancialSpecificStyleProperties(JKQTFinancialSpecificStyleProperties &&other)=default
JKQTFillStyleSummmary negativeFillStyle
graph fill style used for negative element
Definition jkqtpgraphsbasestyle.h:373
JKQTFillStyleSummmary positiveFillStyle
graph fill style used for positive element
Definition jkqtpgraphsbasestyle.h:371
QColor positiveDefaultColor
default color to use for the (first) financial graph, positive elements
Definition jkqtpgraphsbasestyle.h:361
JKQTFinancialSpecificStyleProperties & operator=(JKQTFinancialSpecificStyleProperties &&other)=default
JKQTFinancialSpecificStyleProperties(const JKQTBasePlotterStyle &parent)
void saveSettings(QSettings &settings, const QString &group) const
saves the plot properties into a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object.
QColor negativeDefaultColor
default color to use for the (first) financial graph, negative elements
Definition jkqtpgraphsbasestyle.h:363
JKQTFinancialSpecificStyleProperties(const JKQTFinancialSpecificStyleProperties &other)=default
JKQTFinancialSpecificStyleProperties(const JKQTBasePlotterStyle &parent, const JKQTGraphsSpecificStyleProperties &other)
JKQTFinancialSpecificStyleProperties & operator=(const JKQTFinancialSpecificStyleProperties &other)=default
JKQTPColorDerivationMode negativeGraphColorDerivationMode
defines how to derive the basic graph color for negative elements in a new graph from the color selec...
Definition jkqtpgraphsbasestyle.h:369
void loadSettings(const QSettings &settings, const QString &group, const JKQTFinancialSpecificStyleProperties &defaultStyle)
loads the plot properties from a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object
Support Class for JKQTBasePlotter, which summarizes all properties that define the visual styling of ...
Definition jkqtpgraphsbasestyle.h:146
void saveSettings(QSettings &settings, const QString &group) const
saves the plot properties into a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object.
Qt::PenStyle defaultLineStyle
graph line style used
Definition jkqtpgraphsbasestyle.h:181
JKQTGeometricSpecificStyleProperties & operator=(JKQTGeometricSpecificStyleProperties &&other)=default
JKQTGeometricSpecificStyleProperties(const JKQTGeometricSpecificStyleProperties &other)=default
JKQTGeometricSpecificStyleProperties(const JKQTBasePlotterStyle &parent)
JKQTPGraphSymbols defaultSymbol
graph symbol used
Definition jkqtpgraphsbasestyle.h:183
QColor defaultColor
graph color used
Definition jkqtpgraphsbasestyle.h:179
void loadSettings(const QSettings &settings, const QString &group, const JKQTGeometricSpecificStyleProperties &defaultStyle)
loads the plot properties from a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object
JKQTGeometricSpecificStyleProperties(JKQTPPlotStyleType type, const JKQTGraphsSpecificStyleProperties &other, const JKQTBasePlotterStyle &parent)
JKQTFillStyleSummmary defaultFillStyle
graph fill style used
Definition jkqtpgraphsbasestyle.h:185
JKQTGeometricSpecificStyleProperties(JKQTPPlotStyleType type, const JKQTBasePlotterStyle &parent)
JKQTGeometricSpecificStyleProperties & operator=(const JKQTGeometricSpecificStyleProperties &other)=default
JKQTGeometricSpecificStyleProperties(JKQTGeometricSpecificStyleProperties &&other)=default
JKQTGeometricSpecificStyleProperties(const JKQTBasePlotterStyle &parent, const JKQTGraphsSpecificStyleProperties &other)
Support Class for JKQTBasePlotter, which summarizes all properties that define the visual styling of ...
Definition jkqtpgraphsbasestyle.h:386
JKQTAnnotationsSpecificStyleProperties annotationStyle
styling options for annotation elements
Definition jkqtpgraphsbasestyle.h:433
JKQTGraphsSpecificStyleProperties filledStyle
styling options for filled graphs
Definition jkqtpgraphsbasestyle.h:427
JKQTGraphsSpecificStyleProperties defaultGraphStyle
styling options for standard graphs
Definition jkqtpgraphsbasestyle.h:421
QVector< JKQTFillStyleSummmary > defaultGraphFillStyles
Qt::BrushStyle used to automatically style different graphs differently.
Definition jkqtpgraphsbasestyle.h:450
static QVector< Qt::PenStyle > getDefaultGraphPenStyles()
a list of Qt::PenStyles used to automatically style different graphs differently in the default style
QVector< QColor > defaultGraphColors
colors used to automatically collor different graphs differently
Definition jkqtpgraphsbasestyle.h:444
static QVector< QColor > getDefaultGraphColors()
standard color palette for the default style
JKQTGraphsBaseStyle(const JKQTBasePlotterStyle &parent)
const JKQTGraphsSpecificStyleProperties & getGraphStyleByType(JKQTPPlotStyleType type) const
returns defaultGraphStyle, barchartStyle, ..., depending on the value of type
bool useAntiAliasingForGraphs
specifies whether to use antialiasing for plotting the graphs
Definition jkqtpgraphsbasestyle.h:417
JKQTPMathImageColorPalette defaultPalette
color palette used by default for new graphs
Definition jkqtpgraphsbasestyle.h:441
JKQTGeometricSpecificStyleProperties geometricStyle
styling options for geometric elements
Definition jkqtpgraphsbasestyle.h:431
void loadSettings(const QSettings &settings, const QString &group, const JKQTGraphsBaseStyle &defaultStyle, const JKQTBasePlotterStyle &parent)
loads the plot properties from a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object
void saveSettings(QSettings &settings, const QString &group=QString("graphs_styling/")) const
saves the plot properties into a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object.
QVector< Qt::PenStyle > defaultGraphPenStyles
Qt::PenStyle used to automatically style different graphs differently.
Definition jkqtpgraphsbasestyle.h:446
JKQTFinancialSpecificStyleProperties financialStyle
styling options for financial elements
Definition jkqtpgraphsbasestyle.h:435
static QVector< JKQTPGraphSymbols > getDefaultGraphSymbols()
list of JKQTPGraphSymbols used to automatically assign to different graphs in the default style
JKQTBarchartSpecificStyleProperties barchartStyle
styling options for bargraph graphs
Definition jkqtpgraphsbasestyle.h:423
QVector< JKQTPGraphSymbols > defaultGraphSymbols
JKQTPGraphSymbols used to automatically assign to different graphs.
Definition jkqtpgraphsbasestyle.h:448
JKQTGraphsSpecificStyleProperties boxplotStyle
styling options for boxplots graphs
Definition jkqtpgraphsbasestyle.h:425
static QVector< JKQTFillStyleSummmary > getDefaultGraphFillStyles()
list of Qt::BrushStyle used to automatically style different graphs differently in the default style
JKQTImpulseSpecificStyleProperties impulseStyle
styling options for impulses graphs
Definition jkqtpgraphsbasestyle.h:429
Support Class for JKQTBasePlotter, which summarizes all properties that define the visual styling of ...
Definition jkqtpgraphsbasestyle.h:75
JKQTGraphsSpecificStyleProperties(const JKQTGraphsSpecificStyleProperties &other)=default
void modifyForDefaultStyle(JKQTPPlotStyleType type)
modifies some of the settings to match the defaults for the given JKQTPPlotStyleType (e....
double defaultSymbolSize
size (in pt) of symbols used for newly added graphs
Definition jkqtpgraphsbasestyle.h:109
JKQTGraphsSpecificStyleProperties(JKQTPPlotStyleType type, const JKQTGraphsSpecificStyleProperties &other)
initializes the object as a copy of other, but modified some properties for the given type
JKQTPColorDerivationMode graphColorDerivationMode
defines how to derive the basic graph color for a new graph from the color selected from JKQTGraphsBa...
Definition jkqtpgraphsbasestyle.h:125
void saveSettings(QSettings &settings, const QString &group) const
saves the plot properties into a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object.
JKQTGraphsSpecificStyleProperties(JKQTGraphsSpecificStyleProperties &&other)=default
double defaultLineWidth
width (in pt) of lines used for newly added graphs
Definition jkqtpgraphsbasestyle.h:107
JKQTGraphsSpecificStyleProperties(JKQTPPlotStyleType type, const JKQTBasePlotterStyle &parent)
initializes the object for the given type and takes some properties from the parent
JKQTGraphsSpecificStyleProperties & operator=(const JKQTGraphsSpecificStyleProperties &other)=default
double defaultHeadDecoratorSizeFactor
head decorator size-factor, used to calculate the size of the arrow from the line width
Definition jkqtpgraphsbasestyle.h:117
JKQTPColorDerivationMode symbolFillColorDerivationMode
defines how to derive a symbol fill color for a new graph
Definition jkqtpgraphsbasestyle.h:133
JKQTPColorDerivationMode fillColorDerivationMode
defines how to derive a fill color for a new graph
Definition jkqtpgraphsbasestyle.h:127
double defaultSymbolLineWidth
width (in pt) of the outline of symbols used for newly added graphs
Definition jkqtpgraphsbasestyle.h:111
JKQTPColorDerivationMode errorFillColorDerivationMode
defines how to derive an error fill color from the error color for a new graph
Definition jkqtpgraphsbasestyle.h:131
double defaultErrorIndicatorWidth
width (in pt) of lines used for the error indicators of newly added graphs
Definition jkqtpgraphsbasestyle.h:113
void loadSettings(const QSettings &settings, const QString &group, const JKQTGraphsSpecificStyleProperties &defaultStyle)
loads the plot properties from a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object
JKQTPColorDerivationMode errorColorDerivationMode
defines how to derive an error color for a new graph
Definition jkqtpgraphsbasestyle.h:129
JKQTGraphsSpecificStyleProperties & operator=(JKQTGraphsSpecificStyleProperties &&other)=default
JKQTPLineDecoratorStyle defaultHeadDecoratorStyle
head decorator style
Definition jkqtpgraphsbasestyle.h:115
Qt::BrushStyle errorFillStyle
Definition jkqtpgraphsbasestyle.h:119
Support Class for JKQTBasePlotter, which summarizes all properties that define the visual styling of ...
Definition jkqtpgraphsbasestyle.h:289
JKQTImpulseSpecificStyleProperties(const JKQTImpulseSpecificStyleProperties &other)=default
void loadSettings(const QSettings &settings, const QString &group, const JKQTImpulseSpecificStyleProperties &defaultStyle)
loads the plot properties from a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object
JKQTImpulseSpecificStyleProperties(const JKQTBasePlotterStyle &parent, const JKQTGraphsSpecificStyleProperties &other)
bool drawBaseline
indicates whether to draw a baseline (style is derived from axis style)
Definition jkqtpgraphsbasestyle.h:319
JKQTImpulseSpecificStyleProperties(const JKQTBasePlotterStyle &parent)
JKQTImpulseSpecificStyleProperties & operator=(JKQTImpulseSpecificStyleProperties &&other)=default
JKQTImpulseSpecificStyleProperties(JKQTImpulseSpecificStyleProperties &&other)=default
JKQTImpulseSpecificStyleProperties & operator=(const JKQTImpulseSpecificStyleProperties &other)=default
void saveSettings(QSettings &settings, const QString &group) const
saves the plot properties into a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object.
#define JKQTPLOTTER_LIB_EXPORT
Definition jkqtplotter_imexport.h:89
JKQTPPlotStyleType
used to specify teh type of graph when calling getPlotStyle()
Definition jkqtptools.h:68
Specifies how a fill-color is derived from a given color.
Definition jkqtptools.h:262