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 JKQTPlotter, which summarizes all proeprties that define the visual styling of a JKQTPlotter. More...

#include <jkqtplotterstyle.h>

Public Member Functions

 JKQTPlotterStyle ()
 initialize with default values More...
 
void loadSettings (const QSettings &settings, const QString &group=QString("plots/"), const JKQTPlotterStyle &defaultStyle=JKQTPlotterStyle())
 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("plots/")) const
 saves the plot properties into a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object. More...
 

Public Attributes

bool displayMousePosition
 specifies whether to display the current position of the mouse in the top border of the plot (this may automatically extent the top border, so the position fits in. The default widget font is used for the output. More...
 
int maxTooltipDistance
 maximum distance at which a tooltip for a point is still displayed, when the user action jkqtpmdaToolTipForClosestDataPoint is executed More...
 
QString mousePositionTemplate
 this string is used to generate the position output above the graph (%1 is replaced by the x-position, %2 by the y-position) More...
 
JKQTPMouseDoubleClickActionsHashMap registeredMouseDoubleClickActions
 action to perform on a double-click of the mouse buttons (depending on the button and the modifiers) More...
 
JKQTPMouseDragActionsHashMap registeredMouseDragActionModes
 lists all availble mouse drag action modes More...
 
JKQTPMouseWheelActionsHashMap registeredMouseWheelActions
 lists all availble mouse wheel action modes More...
 
bool toolbarAlwaysOn
 specifies whether the toolbar is always visible or only when the mouse moves to the upper left area More...
 
bool toolbarEnabled
 specifies whether to display a toolbar with buttons when the mouse is in the upper border of the plot More...
 
int toolbarIconSize
 width/height of the icons in the plotter toolbar in pixel More...
 
bool usePaletteColors
 if set (true ), JKQTPlotter uses QPalette::Window and other colors from QPalette as background color for the plot More...
 
int userActionCatchSensitivity
 sensitivity (i.e. max. distance to see as one point) for user actions More...
 
QString userActionFontName
 font name to use for text of user actions More...
 
double userActionFontSize
 font size [pt] to use for text of user actions More...
 
QBrush userActionMarkerBrush
 brush for location markers of user actions on the plot More...
 
int userActionMarkerDiameter
 size (diameter) of markers drawn by user actions More...
 
QPen userActionMarkerPen
 pen for location markers of user actions on the plot More...
 
JKQTPUserActionMarkerType userActionMarkerType
 type of the location markers of user actions on the plot More...
 
QBrush userActionOpaqueBrush
 brush for user actions that cover parts of the plot (typically opaque, like e.g. tooltips) More...
 
QPen userActionOpaquePen
 pen for user actions that cover parts of the plot (typically opaque, like e.g. tooltips) More...
 
QBrush userActionOverlayBrush
 brush for user actions (typically semi-transparent, like e.g. zoom-rectangles) More...
 
QPen userActionOverlayPen
 pen for user actions that overlay the plot (typically semi-transparent, like e.g. zoom-rectangles) More...
 

Detailed Description

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

See also
JKQTPlotter, JKQTPlotter Styling System

Constructor & Destructor Documentation

◆ JKQTPlotterStyle()

JKQTPlotterStyle::JKQTPlotterStyle ( )

initialize with default values

Member Function Documentation

◆ loadSettings()

void JKQTPlotterStyle::loadSettings ( const QSettings &  settings,
const QString &  group = QString("plots/"),
const JKQTPlotterStyle defaultStyle = JKQTPlotterStyle() 
)

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 JKQTPlotterStyle::saveSettings ( QSettings &  settings,
const QString &  group = QString("plots/") 
) 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

◆ displayMousePosition

bool JKQTPlotterStyle::displayMousePosition

specifies whether to display the current position of the mouse in the top border of the plot (this may automatically extent the top border, so the position fits in. The default widget font is used for the output.

See also
mousePositionTemplate, Tutorial (JKQTPlotter): User-Interactions in JKQtPlotter, Signaling When Mouse Moves

◆ maxTooltipDistance

int JKQTPlotterStyle::maxTooltipDistance

maximum distance at which a tooltip for a point is still displayed, when the user action jkqtpmdaToolTipForClosestDataPoint is executed

◆ mousePositionTemplate

QString JKQTPlotterStyle::mousePositionTemplate

this string is used to generate the position output above the graph (%1 is replaced by the x-position, %2 by the y-position)

By default simply "(%1, %2) is used to format this display (e.g. (1.35, -4.56)).

See also
mousePositionTemplate, Tutorial (JKQTPlotter): User-Interactions in JKQtPlotter

◆ registeredMouseDoubleClickActions

JKQTPMouseDoubleClickActionsHashMap JKQTPlotterStyle::registeredMouseDoubleClickActions

action to perform on a double-click of the mouse buttons (depending on the button and the modifiers)

◆ registeredMouseDragActionModes

JKQTPMouseDragActionsHashMap JKQTPlotterStyle::registeredMouseDragActionModes

lists all availble mouse drag action modes

◆ registeredMouseWheelActions

JKQTPMouseWheelActionsHashMap JKQTPlotterStyle::registeredMouseWheelActions

lists all availble mouse wheel action modes

◆ toolbarAlwaysOn

bool JKQTPlotterStyle::toolbarAlwaysOn

specifies whether the toolbar is always visible or only when the mouse moves to the upper left area

If toolbarAlwaysOn is set to true:

If toolbarAlwaysOn is set to false, the toolbar only appears when the mouse is in the right location:

Hidden Toolbar
Shown Toolbar
See also
toolbarEnabled, Tutorial (JKQTPlotter): User-Interactions in JKQtPlotter

◆ toolbarEnabled

bool JKQTPlotterStyle::toolbarEnabled

specifies whether to display a toolbar with buttons when the mouse is in the upper border of the plot

See also
toolbarAlwaysOn, Tutorial (JKQTPlotter): User-Interactions in JKQtPlotter

◆ toolbarIconSize

int JKQTPlotterStyle::toolbarIconSize

width/height of the icons in the plotter toolbar in pixel

◆ usePaletteColors

bool JKQTPlotterStyle::usePaletteColors

if set (true ), JKQTPlotter uses QPalette::Window and other colors from QPalette as background color for the plot

Note
setting this (default: true ) will overwrite some settings from JKQTBasePlotterStyle!

◆ userActionCatchSensitivity

int JKQTPlotterStyle::userActionCatchSensitivity

sensitivity (i.e. max. distance to see as one point) for user actions

◆ userActionFontName

QString JKQTPlotterStyle::userActionFontName

font name to use for text of user actions

See also
Actions When Dragging the Mouse

◆ userActionFontSize

double JKQTPlotterStyle::userActionFontSize

font size [pt] to use for text of user actions

See also
Actions When Dragging the Mouse

◆ userActionMarkerBrush

QBrush JKQTPlotterStyle::userActionMarkerBrush

brush for location markers of user actions on the plot

See also
Actions When Dragging the Mouse

◆ userActionMarkerDiameter

int JKQTPlotterStyle::userActionMarkerDiameter

size (diameter) of markers drawn by user actions

◆ userActionMarkerPen

QPen JKQTPlotterStyle::userActionMarkerPen

pen for location markers of user actions on the plot

See also
Actions When Dragging the Mouse

◆ userActionMarkerType

JKQTPUserActionMarkerType JKQTPlotterStyle::userActionMarkerType

type of the location markers of user actions on the plot

See also
Actions When Dragging the Mouse

◆ userActionOpaqueBrush

QBrush JKQTPlotterStyle::userActionOpaqueBrush

brush for user actions that cover parts of the plot (typically opaque, like e.g. tooltips)

See also
Actions When Dragging the Mouse

◆ userActionOpaquePen

QPen JKQTPlotterStyle::userActionOpaquePen

pen for user actions that cover parts of the plot (typically opaque, like e.g. tooltips)

See also
Actions When Dragging the Mouse

◆ userActionOverlayBrush

QBrush JKQTPlotterStyle::userActionOverlayBrush

brush for user actions (typically semi-transparent, like e.g. zoom-rectangles)

See also
Actions When Dragging the Mouse

◆ userActionOverlayPen

QPen JKQTPlotterStyle::userActionOverlayPen

pen for user actions that overlay the plot (typically semi-transparent, like e.g. zoom-rectangles)

See also
Actions When Dragging the Mouse

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