20#ifndef JKQTPKEYSTYLE_H
21#define JKQTPKEYSTYLE_H
23#include "jkqtplotter/jkqtptools.h"
24#include "jkqtplotter/jkqtplotter_imexport.h"
25#include "jkqtplotter/jkqtplotter_configmacros.h"
70 void saveSettings(QSettings& settings,
const QString& group=QString(
"plots/key/"))
const;
Support Class for JKQTBasePlotter, which summarizes all properties that define the visual styling of ...
Definition jkqtpbaseplotterstyle.h:47
Support Class for JKQTBasePlotter, which summarizes all properties that define the visual styling of ...
Definition jkqtpkeystyle.h:49
void loadSettings(const QSettings &settings, const QString &group=QString("plots/key/"), const JKQTPKeyStyle &defaultStyle=JKQTPKeyStyle())
loads the plot properties from a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object
double frameRounding
rounding radius of the key frame rectangle (<=0 -> no rounded rectangle) [pt]
Definition jkqtpkeystyle.h:82
double frameWidth
width of the key frame line [pt]
Definition jkqtpkeystyle.h:80
QBrush backgroundBrush
color of the key background
Definition jkqtpkeystyle.h:84
double ySeparation
distance between two key entries [in units of height of fontName, fontSize]
Definition jkqtpkeystyle.h:108
double sampleHeight
height of a line sample [in units of height of fontName, fontSize]
Definition jkqtpkeystyle.h:96
QString fontName
font name
Definition jkqtpkeystyle.h:90
double columnSeparation
distance between two columns of key entries [in units of width of 'X' set in fontName,...
Definition jkqtpkeystyle.h:110
double xSeparation
distance between key line example and key text [in units of width of 'X' set in fontName,...
Definition jkqtpkeystyle.h:106
double xMargin
x-distance between key frame and key content [in units of width of 'X' set in fontName,...
Definition jkqtpkeystyle.h:98
JKQTPKeyPosition position
key position inside or besides the plot area, see JKQTPKeyPositions for details and examples
Definition jkqtpkeystyle.h:113
JKQTPKeyLayout layout
the key layout, i.e. how the entries are distributed over the available space, see JKQTPKeyLayout for...
Definition jkqtpkeystyle.h:115
QColor textColor
color of the key entries' text
Definition jkqtpkeystyle.h:92
bool frameVisible
indicates whether to plot a frame around the key
Definition jkqtpkeystyle.h:74
JKQTPKeyStyle(const JKQTBasePlotterStyle &baseStyle)
void saveSettings(QSettings &settings, const QString &group=QString("plots/key/")) const
saves the plot properties into a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object.
double fontSize
font size for key labels [in points]
Definition jkqtpkeystyle.h:88
Qt::PenStyle frameLineStyle
linestyle for the frame
Definition jkqtpkeystyle.h:78
double yMargin
y-distance between key frame and key content [in units of width of 'X' set in fontName,...
Definition jkqtpkeystyle.h:100
bool visible
indicates whether to plot a key
Definition jkqtpkeystyle.h:86
double sampleLineLength
length of the line samples in the key [in units of width of 'X' set in fontName, fontSize]
Definition jkqtpkeystyle.h:94
QColor frameColor
color of the key frame line
Definition jkqtpkeystyle.h:76
double yOffset
y-offset of the key from the border of the plot [in units of width of 'X' set in fontName,...
Definition jkqtpkeystyle.h:104
double xOffset
x-offset of the key from the border of the plot [in units of width of 'X' set in fontName,...
Definition jkqtpkeystyle.h:102
JKQTPKeyLayout
layout of the key
Definition jkqtptools.h:632
QFlags< JKQTPKeyPositions > JKQTPKeyPosition
position of the key
Definition jkqtptools.h:607
#define JKQTPLOTTER_LIB_EXPORT
Definition jkqtplotter_imexport.h:89