This Mix-In class provides setter/getter methods, storage and other facilities for the graph symbols style.
More...
#include <jkqtpgraphsbasestylingmixins.h>
|
double | getKeySymbolLineWidthPx (JKQTPEnhancedPainter &painter, const QRectF &keyRect, const JKQTBasePlotter *parent, double maxSymbolSizeFracton=0.9) const |
| returns the symbol linewidth for drawing symbols in a key entry with keyRect for the symbol, using painter and parent . maxSymbolSizeFracton specifies the maximum fraction of keyRect to be used for the symbol.
|
|
double | getKeySymbolSizePx (JKQTPEnhancedPainter &painter, const QRectF &keyRect, const JKQTBasePlotter *parent, double maxSymbolSizeFracton=0.9) const |
| returns the symbol size for drawing symbols in a key entry with keyRect for the symbol, using painter and parent . maxSymbolSizeFracton specifies the maximum fraction of keyRect to be used for the symbol.
|
|
QBrush | getSymbolBrush (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const |
| constructs a QPen from the line styling properties
|
|
QFont | getSymbolFont () const |
| generate a QFont for darwing symbols
|
|
QPen | getSymbolPen (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const |
| constructs a QPen from the line styling properties
|
|
void | plotStyledSymbol (JKQTBasePlotter *parent, JKQTPEnhancedPainter &painter, double x, double y) const |
| plot a symbol at location x,y (in painter coordinates), using the current style
|
|
void | plotStyledSymbol (JKQTBasePlotter *parent, JKQTPEnhancedPainter &painter, double x, double y, double symbolSize) const |
| plot a symbol at location x,y (in painter coordinates), using the current style
|
|
void | plotStyledSymbol (JKQTBasePlotter *parent, JKQTPEnhancedPainter &painter, double x, double y, JKQTPGraphSymbols type) const |
| plot a symbol at location x,y (in painter coordinates), using the current style
|
|
void | plotStyledSymbol (JKQTBasePlotter *parent, JKQTPEnhancedPainter &painter, double x, double y, QColor color, QColor fillColor) const |
| plot a symbol at location x,y (in painter coordinates), using the current style
|
|
This Mix-In class provides setter/getter methods, storage and other facilities for the graph symbols style.
supported properties:
- symbol style
- symbol size
- symbol (outline) color
- symbol fill color (not required for all symbols)
- symbol (line) width
- symbol font name (family) for character symbols
JKQTPCharacterSymbol+QChar
('').unicode()
◆ JKQTPGraphSymbolStyleMixin()
JKQTPGraphSymbolStyleMixin::JKQTPGraphSymbolStyleMixin |
( |
| ) |
|
◆ ~JKQTPGraphSymbolStyleMixin()
virtual JKQTPGraphSymbolStyleMixin::~JKQTPGraphSymbolStyleMixin |
( |
| ) |
|
|
virtual |
◆ getKeySymbolLineWidthPx()
double JKQTPGraphSymbolStyleMixin::getKeySymbolLineWidthPx |
( |
JKQTPEnhancedPainter & |
painter, |
|
|
const QRectF & |
keyRect, |
|
|
const JKQTBasePlotter * |
parent, |
|
|
double |
maxSymbolSizeFracton = 0.9 |
|
) |
| const |
|
protected |
returns the symbol linewidth for drawing symbols in a key entry with keyRect for the symbol, using painter and parent . maxSymbolSizeFracton specifies the maximum fraction of keyRect to be used for the symbol.
◆ getKeySymbolSizePx()
double JKQTPGraphSymbolStyleMixin::getKeySymbolSizePx |
( |
JKQTPEnhancedPainter & |
painter, |
|
|
const QRectF & |
keyRect, |
|
|
const JKQTBasePlotter * |
parent, |
|
|
double |
maxSymbolSizeFracton = 0.9 |
|
) |
| const |
|
protected |
returns the symbol size for drawing symbols in a key entry with keyRect for the symbol, using painter and parent . maxSymbolSizeFracton specifies the maximum fraction of keyRect to be used for the symbol.
◆ getSymbolBrush()
constructs a QPen from the line styling properties
◆ getSymbolColor()
QColor JKQTPGraphSymbolStyleMixin::getSymbolColor |
( |
| ) |
const |
set the color of the graph symbols
◆ getSymbolFillColor()
QColor JKQTPGraphSymbolStyleMixin::getSymbolFillColor |
( |
| ) |
const |
set the color of filling of the graph symbols
◆ getSymbolFont()
QFont JKQTPGraphSymbolStyleMixin::getSymbolFont |
( |
| ) |
const |
|
protected |
generate a QFont for darwing symbols
◆ getSymbolFontName()
QString JKQTPGraphSymbolStyleMixin::getSymbolFontName |
( |
| ) |
const |
get the font to be used for character symbols JKQTPCharacterSymbol+QChar
('').unicode()
◆ getSymbolLineWidth()
double JKQTPGraphSymbolStyleMixin::getSymbolLineWidth |
( |
| ) |
const |
get the line width of the graph symbol outline (in pt)
◆ getSymbolPen()
constructs a QPen from the line styling properties
◆ getSymbolSize()
double JKQTPGraphSymbolStyleMixin::getSymbolSize |
( |
| ) |
const |
get the size (=diameter in pt) of the graph symbol (in pt)
◆ getSymbolType()
get the type of the graph symbol
◆ initSymbolStyle()
initiaize the symbol style (from the parent plotter)
◆ plotStyledSymbol() [1/4]
plot a symbol at location x,y (in painter coordinates), using the current style
- Parameters
-
parent | parent JKQTBasePlotter of the graph that uses this mix-in (used e.g. for line-width transformation) |
painter | the QPainter to draw to |
x | x-coordinate of the symbol center |
y | y-coordinate of the symbol center |
◆ plotStyledSymbol() [2/4]
plot a symbol at location x,y (in painter coordinates), using the current style
- Parameters
-
parent | parent JKQTBasePlotter of the graph that uses this mix-in (used e.g. for line-width transformation) |
painter | the QPainter to draw to |
x | x-coordinate of the symbol center |
y | y-coordinate of the symbol center |
symbolSize | size of the symbol |
◆ plotStyledSymbol() [3/4]
plot a symbol at location x,y (in painter coordinates), using the current style
- Parameters
-
parent | parent JKQTBasePlotter of the graph that uses this mix-in (used e.g. for line-width transformation) |
painter | the QPainter to draw to |
x | x-coordinate of the symbol center |
y | y-coordinate of the symbol center |
type | type of the symbol |
◆ plotStyledSymbol() [4/4]
plot a symbol at location x,y (in painter coordinates), using the current style
- Parameters
-
parent | parent JKQTBasePlotter of the graph that uses this mix-in (used e.g. for line-width transformation) |
painter | the QPainter to draw to |
x | x-coordinate of the symbol center |
y | y-coordinate of the symbol center |
color | color of the symbol |
fillColor | fill color of the symbol |
◆ setSymbolAlpha()
void JKQTPGraphSymbolStyleMixin::setSymbolAlpha |
( |
double |
alpha | ) |
|
set alpha-value of symbol outline and filling
◆ setSymbolColor() [1/2]
void JKQTPGraphSymbolStyleMixin::setSymbolColor |
( |
const QColor & |
__value | ) |
|
set the color of the graph symbols
◆ setSymbolColor() [2/2]
void JKQTPGraphSymbolStyleMixin::setSymbolColor |
( |
const QColor & |
__value, |
|
|
double |
alpha |
|
) |
| |
set the color of the graph symbols
◆ setSymbolFillColor() [1/2]
void JKQTPGraphSymbolStyleMixin::setSymbolFillColor |
( |
const QColor & |
__value | ) |
|
set the color of filling of the graph symbols
◆ setSymbolFillColor() [2/2]
void JKQTPGraphSymbolStyleMixin::setSymbolFillColor |
( |
const QColor & |
__value, |
|
|
double |
alpha |
|
) |
| |
set the color of filling of the graph symbols
◆ setSymbolFontName()
void JKQTPGraphSymbolStyleMixin::setSymbolFontName |
( |
const QString & |
__value | ) |
|
set the font to be used for character symbols JKQTPCharacterSymbol+QChar
('').unicode()
◆ setSymbolLineWidth()
void JKQTPGraphSymbolStyleMixin::setSymbolLineWidth |
( |
double |
__value | ) |
|
set the line width of the graph symbol outline (in pt)
◆ setSymbolSize()
void JKQTPGraphSymbolStyleMixin::setSymbolSize |
( |
double |
__value | ) |
|
set the size (=diameter in pt) of the graph symbol (in pt)
◆ setSymbolType()
set the type of the graph symbol
◆ m_symbolColor
QColor JKQTPGraphSymbolStyleMixin::m_symbolColor |
|
private |
(outline) color of the symbol
◆ m_symbolFillColor
QColor JKQTPGraphSymbolStyleMixin::m_symbolFillColor |
|
private |
color of the symbol filling
◆ m_symbolFontName
QString JKQTPGraphSymbolStyleMixin::m_symbolFontName |
|
private |
font to be used for character symbols JKQTPCharacterSymbol+QChar
('').unicode()
◆ m_symbolLineWidth
double JKQTPGraphSymbolStyleMixin::m_symbolLineWidth |
|
private |
width (in pt) of the lines used to plot the symbol for the data points, given in pt
◆ m_symbolSize
double JKQTPGraphSymbolStyleMixin::m_symbolSize |
|
private |
size (diameter in pt) of the symbol for the data points, given in pt
◆ m_symbolType
which symbol to use for the datapoints
◆ symbolColor
QColor JKQTPGraphSymbolStyleMixin::symbolColor |
|
readwrite |
◆ symbolFillColor
QColor JKQTPGraphSymbolStyleMixin::symbolFillColor |
|
readwrite |
◆ symbolFontName
QString JKQTPGraphSymbolStyleMixin::symbolFontName |
|
readwrite |
◆ symbolLineWidth
double JKQTPGraphSymbolStyleMixin::symbolLineWidth |
|
readwrite |
◆ symbolSize
double JKQTPGraphSymbolStyleMixin::symbolSize |
|
readwrite |
◆ symbolType
The documentation for this class was generated from the following file: