JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
Loading...
Searching...
No Matches

This Mix-In class provides setter/getter methods, storage and other facilities for the graph line style. More...

#include <jkqtpgraphsbasestylingmixins.h>

Inheritance diagram for JKQTPGraphLineStyleMixin:
[legend]

Public Member Functions

 JKQTPGraphLineStyleMixin ()
 class constructor
virtual ~JKQTPGraphLineStyleMixin ()
QColor getHighlightingLineColor () const
 get the color of the graph line when highlighted
QPen getHighlightingLinePen (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const
 constructs a QPen from the line styling properties
QPen getHighlightingLinePenForRects (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const
 constructs a QPen from the line styling properties, suitable for drawing rectangle with sharp corners
QPen getKeyLinePen (JKQTPEnhancedPainter &painter, const QRectF &rect, JKQTBasePlotter *parent) const
 constructs a QPen from the line styling properties, but uses getKeyLineWidthPx() for the width, i.e. constructs a pen for drawing lines in key-symbols
double getKeyLineWidthPx (JKQTPEnhancedPainter &painter, const QRectF &keyRect, const JKQTBasePlotter *parent) const
 returns the linewidth for drawing lines in a key entry with keyRect for the symbol, using painter and parent .
QBrush getLineBrush () const
 gets the brush used to fill the line area
Qt::PenCapStyle getLineCapStyle () const
 gets the cap style
QColor getLineColor () const
 get the color of the graph line
qreal getLineDashOffset () const
 returns the dash offset for a custom dash style
QVector< qreal > getLineDashPattern () const
 gets the dash pattern for a custom dash style
Qt::PenJoinStyle getLineJoinStyle () const
 returns the join style
QPen getLinePen (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const
 constructs a QPen from the line styling properties
QPen getLinePenForRects (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const
 constructs a QPen from the line styling properties, suitable for drawing rectangles with sharp edges
Qt::PenStyle getLineStyle () const
 get the style of the graph line
double getLineWidth () const
 get the line width of the graph line (in pt)
void initLineStyle (JKQTBasePlotter *parent, int &parentPlotStyle, JKQTPPlotStyleType styletype=JKQTPPlotStyleType::Default)
 initiaize the line style (from the parent plotter)
void setHighlightingLineColor (const QColor &__value)
 set the color of the graph line when highlighted
void setHighlightingLineColor (const QColor &__value, double alpha)
 set the color of the graph line when highlighted
void setLineBrush (const QBrush &style)
 sets the brush used to fill the line area
void setLineCapStyle (Qt::PenCapStyle style)
 sets the cap style
void setLineColor (const QColor &__value)
 set the color of the graph line
void setLineColor (const QColor &__value, double alpha)
 set the color of the graph line
void setLineColorInvertedFrom (QColor __noninvertedColor)
 sets the line-color as an inverted version of the given color
void setLineDashOffset (qreal offset)
 sets the dash offset for a custom dash style
void setLineDashPattern (const QVector< qreal > &pattern)
 sets the dash pattern for a custom dash style
void setLineJoinStyle (Qt::PenJoinStyle style)
 sets the join style
void setLineStyle (Qt::PenStyle __value)
 set the style of the graph line
void setLineWidth (double __value)
 set the line width of the graph line (in pt)

Properties

QColor highlightingLineColor
QColor lineColor
Qt::PenStyle lineStyle
double lineWidth

Private Attributes

QColor m_highlightingLineColor
 line pen for the highlighted look
QPen m_linePen
 graph line pen
double m_lineWidth
 width of the graph lines, given in pt

Detailed Description

This Mix-In class provides setter/getter methods, storage and other facilities for the graph line style.

supported properties:

  • line color
  • line width
  • line style (including custom dash patterns, as in QPen)
  • line color, when graph is highlighted

Constructor & Destructor Documentation

◆ JKQTPGraphLineStyleMixin()

JKQTPGraphLineStyleMixin::JKQTPGraphLineStyleMixin ( )

class constructor

◆ ~JKQTPGraphLineStyleMixin()

virtual JKQTPGraphLineStyleMixin::~JKQTPGraphLineStyleMixin ( )
virtual

Member Function Documentation

◆ getHighlightingLineColor()

QColor JKQTPGraphLineStyleMixin::getHighlightingLineColor ( ) const

get the color of the graph line when highlighted

◆ getHighlightingLinePen()

QPen JKQTPGraphLineStyleMixin::getHighlightingLinePen ( JKQTPEnhancedPainter & painter,
JKQTBasePlotter * parent ) const

constructs a QPen from the line styling properties

◆ getHighlightingLinePenForRects()

QPen JKQTPGraphLineStyleMixin::getHighlightingLinePenForRects ( JKQTPEnhancedPainter & painter,
JKQTBasePlotter * parent ) const

constructs a QPen from the line styling properties, suitable for drawing rectangle with sharp corners

◆ getKeyLinePen()

QPen JKQTPGraphLineStyleMixin::getKeyLinePen ( JKQTPEnhancedPainter & painter,
const QRectF & rect,
JKQTBasePlotter * parent ) const

constructs a QPen from the line styling properties, but uses getKeyLineWidthPx() for the width, i.e. constructs a pen for drawing lines in key-symbols

◆ getKeyLineWidthPx()

double JKQTPGraphLineStyleMixin::getKeyLineWidthPx ( JKQTPEnhancedPainter & painter,
const QRectF & keyRect,
const JKQTBasePlotter * parent ) const

returns the linewidth for drawing lines in a key entry with keyRect for the symbol, using painter and parent .

◆ getLineBrush()

QBrush JKQTPGraphLineStyleMixin::getLineBrush ( ) const

gets the brush used to fill the line area

See also
https://doc.qt.io/qt-5/qpen.html#setBrush

◆ getLineCapStyle()

Qt::PenCapStyle JKQTPGraphLineStyleMixin::getLineCapStyle ( ) const

◆ getLineColor()

QColor JKQTPGraphLineStyleMixin::getLineColor ( ) const

get the color of the graph line

◆ getLineDashOffset()

qreal JKQTPGraphLineStyleMixin::getLineDashOffset ( ) const

returns the dash offset for a custom dash style

See also
https://doc.qt.io/qt-5/qpen.html#setDashOffset

◆ getLineDashPattern()

QVector< qreal > JKQTPGraphLineStyleMixin::getLineDashPattern ( ) const

gets the dash pattern for a custom dash style

See also
https://doc.qt.io/qt-5/qpen.html#setDashPattern

◆ getLineJoinStyle()

Qt::PenJoinStyle JKQTPGraphLineStyleMixin::getLineJoinStyle ( ) const

returns the join style

See also
https://doc.qt.io/qt-5/qpen.html#setJoinStyle

◆ getLinePen()

QPen JKQTPGraphLineStyleMixin::getLinePen ( JKQTPEnhancedPainter & painter,
JKQTBasePlotter * parent ) const

constructs a QPen from the line styling properties

◆ getLinePenForRects()

QPen JKQTPGraphLineStyleMixin::getLinePenForRects ( JKQTPEnhancedPainter & painter,
JKQTBasePlotter * parent ) const

constructs a QPen from the line styling properties, suitable for drawing rectangles with sharp edges

◆ getLineStyle()

Qt::PenStyle JKQTPGraphLineStyleMixin::getLineStyle ( ) const

get the style of the graph line

◆ getLineWidth()

double JKQTPGraphLineStyleMixin::getLineWidth ( ) const

get the line width of the graph line (in pt)

◆ initLineStyle()

void JKQTPGraphLineStyleMixin::initLineStyle ( JKQTBasePlotter * parent,
int & parentPlotStyle,
JKQTPPlotStyleType styletype = JKQTPPlotStyleType::Default )

initiaize the line style (from the parent plotter)

◆ setHighlightingLineColor() [1/2]

void JKQTPGraphLineStyleMixin::setHighlightingLineColor ( const QColor & __value)

set the color of the graph line when highlighted

◆ setHighlightingLineColor() [2/2]

void JKQTPGraphLineStyleMixin::setHighlightingLineColor ( const QColor & __value,
double alpha )

set the color of the graph line when highlighted

◆ setLineBrush()

void JKQTPGraphLineStyleMixin::setLineBrush ( const QBrush & style)

sets the brush used to fill the line area

See also
https://doc.qt.io/qt-5/qpen.html#setBrush

◆ setLineCapStyle()

void JKQTPGraphLineStyleMixin::setLineCapStyle ( Qt::PenCapStyle style)

◆ setLineColor() [1/2]

void JKQTPGraphLineStyleMixin::setLineColor ( const QColor & __value)

set the color of the graph line

◆ setLineColor() [2/2]

void JKQTPGraphLineStyleMixin::setLineColor ( const QColor & __value,
double alpha )

set the color of the graph line

◆ setLineColorInvertedFrom()

void JKQTPGraphLineStyleMixin::setLineColorInvertedFrom ( QColor __noninvertedColor)

sets the line-color as an inverted version of the given color

◆ setLineDashOffset()

void JKQTPGraphLineStyleMixin::setLineDashOffset ( qreal offset)

sets the dash offset for a custom dash style

See also
https://doc.qt.io/qt-5/qpen.html#setDashOffset

◆ setLineDashPattern()

void JKQTPGraphLineStyleMixin::setLineDashPattern ( const QVector< qreal > & pattern)

sets the dash pattern for a custom dash style

See also
https://doc.qt.io/qt-5/qpen.html#setDashPattern

◆ setLineJoinStyle()

void JKQTPGraphLineStyleMixin::setLineJoinStyle ( Qt::PenJoinStyle style)

sets the join style

See also
https://doc.qt.io/qt-5/qpen.html#setJoinStyle

◆ setLineStyle()

void JKQTPGraphLineStyleMixin::setLineStyle ( Qt::PenStyle __value)

set the style of the graph line

◆ setLineWidth()

void JKQTPGraphLineStyleMixin::setLineWidth ( double __value)

set the line width of the graph line (in pt)

Member Data Documentation

◆ m_highlightingLineColor

QColor JKQTPGraphLineStyleMixin::m_highlightingLineColor
private

line pen for the highlighted look

◆ m_linePen

QPen JKQTPGraphLineStyleMixin::m_linePen
private

graph line pen

◆ m_lineWidth

double JKQTPGraphLineStyleMixin::m_lineWidth
private

width of the graph lines, given in pt

Property Documentation

◆ highlightingLineColor

QColor JKQTPGraphLineStyleMixin::highlightingLineColor
readwrite

◆ lineColor

QColor JKQTPGraphLineStyleMixin::lineColor
readwrite

◆ lineStyle

Qt::PenStyle JKQTPGraphLineStyleMixin::lineStyle
readwrite

◆ lineWidth

double JKQTPGraphLineStyleMixin::lineWidth
readwrite

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