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 text in graphs. More...

#include <jkqtpgraphsbasestylingmixins.h>

Inheritance diagram for JKQTPGraphTextStyleMixin:
[legend]

Public Member Functions

 JKQTPGraphTextStyleMixin (JKQTBasePlotter *parent)
 class constructor
 
virtual ~JKQTPGraphTextStyleMixin ()
 
QColor getTextColor () const
 set the color of the text
 
QString getTextFontName () const
 get the base font name of text
 
double getTextFontSize () const
 get the base font size of text
 
void initTextStyle (JKQTBasePlotter *parent, int &parentPlotStyle, JKQTPPlotStyleType styletype=JKQTPPlotStyleType::Default)
 initiaize the fill style (from the parent plotter)
 
void setTextColor (const QColor &__value)
 set the color of the text
 
void setTextColor (const QColor &__value, double alpha)
 set the color of the text
 
void setTextFontName (const QString &__value)
 set the base font name of text
 
void setTextFontSize (double __value)
 set the base font size of text
 

Properties

QColor textColor
 
QString textFontName
 
double textFontSize
 

Private Attributes

QColor m_textColor
 color of the text
 
QString m_textFontName
 name of the font to be used for the text
 
double m_textFontSize
 base font size of text
 

Detailed Description

This Mix-In class provides setter/getter methods, storage and other facilities for text in graphs.

supported properties:

  • font name
  • font size
  • text color

Constructor & Destructor Documentation

◆ JKQTPGraphTextStyleMixin()

JKQTPGraphTextStyleMixin::JKQTPGraphTextStyleMixin ( JKQTBasePlotter parent)

class constructor

◆ ~JKQTPGraphTextStyleMixin()

virtual JKQTPGraphTextStyleMixin::~JKQTPGraphTextStyleMixin ( )
virtual

Member Function Documentation

◆ getTextColor()

QColor JKQTPGraphTextStyleMixin::getTextColor ( ) const

set the color of the text

◆ getTextFontName()

QString JKQTPGraphTextStyleMixin::getTextFontName ( ) const

get the base font name of text

◆ getTextFontSize()

double JKQTPGraphTextStyleMixin::getTextFontSize ( ) const

get the base font size of text

◆ initTextStyle()

void JKQTPGraphTextStyleMixin::initTextStyle ( JKQTBasePlotter parent,
int &  parentPlotStyle,
JKQTPPlotStyleType  styletype = JKQTPPlotStyleType::Default 
)

initiaize the fill style (from the parent plotter)

◆ setTextColor() [1/2]

void JKQTPGraphTextStyleMixin::setTextColor ( const QColor &  __value)

set the color of the text

◆ setTextColor() [2/2]

void JKQTPGraphTextStyleMixin::setTextColor ( const QColor &  __value,
double  alpha 
)

set the color of the text

◆ setTextFontName()

void JKQTPGraphTextStyleMixin::setTextFontName ( const QString &  __value)

set the base font name of text

◆ setTextFontSize()

void JKQTPGraphTextStyleMixin::setTextFontSize ( double  __value)

set the base font size of text

Member Data Documentation

◆ m_textColor

QColor JKQTPGraphTextStyleMixin::m_textColor
private

color of the text

◆ m_textFontName

QString JKQTPGraphTextStyleMixin::m_textFontName
private

name of the font to be used for the text

◆ m_textFontSize

double JKQTPGraphTextStyleMixin::m_textFontSize
private

base font size of text

Property Documentation

◆ textColor

QColor JKQTPGraphTextStyleMixin::textColor
readwrite

◆ textFontName

QString JKQTPGraphTextStyleMixin::textFontName
readwrite

◆ textFontSize

double JKQTPGraphTextStyleMixin::textFontSize
readwrite

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