20#ifndef jkqtpgraphlabels_H
21#define jkqtpgraphlabels_H
28#include "jkqtplotter/jkqtptools.h"
29#include "jkqtplotter/jkqtplotter_imexport.h"
30#include "jkqtplotter/jkqtpgraphsbase.h"
31#include "jkqtplotter/graphs/jkqtpgraphlabelstylemixin.h"
111 Q_ENUM(LabelContentsDefaultType)
129 virtual QColor getKeyLabelColor() const override;
131 virtual
bool getXMinMax(
double& minx,
double& maxx,
double& smallestGreaterZero) override;
133 virtual
bool getYMinMax(
double& miny,
double& maxy,
double& smallestGreaterZero) override;
137 void setColor(QColor c,
bool setTextColor_=true,
bool setFrameColor_=true);
148 void setDefaultXLabelGenerator();
154 void setDefaultYLabelGenerator();
160 void setDefaultXYLabelGenerator();
163 QString generateLabel(
double x,
double y,
int index) const;
base class for 2D plotter classes (used by the plotter widget JKQTPlotter)
Definition jkqtpbaseplotter.h:394
this virtual class is the base for any type of coordinate axis, to be drawn by JKQTBasePlotter.
Definition jkqtpcoordinateaxes.h:181
This class manages data columns (with entries of type double ), used by JKQTPlotter/JKQTBasePlotter t...
Definition jkqtpdatastorage.h:282
this class extends the QPainter
Definition jkqtpenhancedpainter.h:33
This Mix-In class provides setter/getter methods, storage and other facilities for value labels in gr...
Definition jkqtpgraphlabelstylemixin.h:118
This virtual JKQTPGraph descendent may be used as base for all graphs that use at least two columns t...
Definition jkqtpgraphsbase.h:586
This graph plots a series of data labels. This can be used to add number-labels to e....
Definition jkqtpgraphlabels.h:103
std::function< QString(double, double, int)> LabelGenerator
type of a functor that generates a label
Definition jkqtpgraphlabels.h:113
LabelContentsDefaultType
Definition jkqtpgraphlabels.h:106
@ YValueLabel
generates a label with the y-coordinate only, calls setDefaultYLabelGenerator()
Definition jkqtpgraphlabels.h:108
@ XValueLabel
generates a label with the x-coordinate only, calls setDefaultXLabelGenerator()
Definition jkqtpgraphlabels.h:107
This Mix-In class provides setter/getter methods, and tools for x- and y-value label formatting (i....
Definition jkqtpgraphlabelstylemixin.h:316
plotter widget for scientific plots (uses JKQTBasePlotter to do the actual drawing)
Definition jkqtplotter.h:364
#define JKQTPLOTTER_LIB_EXPORT
Definition jkqtplotter_imexport.h:89