te::qt::widgets::ChartStyle Class Reference

#include <ChartStyle.h>

Public Member Functions

 ChartStyle ()
 Constructor. More...
 
 ChartStyle (QString title, QFont titleFont, QString axisX, QString axisY, QFont axisFont, te::se::Fill *fill, te::se::Stroke *stroke, bool gridChecked, QColor color)
 Constructor. More...
 
QFont & getAxisFont ()
 Returns a reference to the axis' font. More...
 
QString & getAxisX ()
 Returns a reference to the style's x axis label. More...
 
QString & getAxisY ()
 Returns a reference to the style's y axis label. More...
 
QColor & getColor ()
 Returns a reference to the style's color. More...
 
te::se::FillgetFill ()
 Returns a pointer to the style's fill. More...
 
bool getGridChecked ()
 Returns true if the grid is to be displayed, otherwise returns false. More...
 
te::se::StrokegetStroke ()
 Returns a pointer to the style's stroke. More...
 
QString & getTitle ()
 Returns a reference to the style's Title. More...
 
QFont & getTitleFont ()
 Returns a reference to the title's font. More...
 
void setAxisFont (QFont newAxisFont)
 It sets the axis' font. More...
 
void setAxisX (QString newAxisX)
 It sets the style's x axis label. More...
 
void setAxisY (QString newAxisY)
 It sets the style's y axis label. More...
 
void setColor (QColor newColor)
 It sets the style's color. More...
 
void setFill (te::se::Fill *newFill)
 It sets the style's fill. More...
 
void setGridChecked (bool newGridChecked)
 It sets the boolean used to decided weather to display the grid or not. More...
 
void setStroke (te::se::Stroke *newStroke)
 It sets the style's stroke. More...
 
void setTitle (QString newTitle)
 It sets the style's title. More...
 
void setTitleFont (QFont newTitleFont)
 It sets the title's font. More...
 
 ~ChartStyle ()
 Destructor. More...
 

Private Attributes

QFont m_axisFont
 The axis' font. More...
 
QString m_axisX
 The chart X axis' label. More...
 
QString m_axisY
 The chart Y axis' label. More...
 
QColor m_backColor
 The chart's background color. More...
 
te::se::Fillm_fill
 The chart's fill. More...
 
bool m_gridChecked
 The boolean used to decide if the chart will have a background grid . More...
 
te::se::Strokem_stroke
 The chart's stroke. More...
 
QString m_title
 The chart's title. More...
 
QFont m_titleFont
 The title's font. More...
 

Detailed Description

Definition at line 54 of file ChartStyle.h.

Constructor & Destructor Documentation

◆ ChartStyle() [1/2]

te::qt::widgets::ChartStyle::ChartStyle ( )

Constructor.

◆ ChartStyle() [2/2]

te::qt::widgets::ChartStyle::ChartStyle ( QString  title,
QFont  titleFont,
QString  axisX,
QString  axisY,
QFont  axisFont,
te::se::Fill fill,
te::se::Stroke stroke,
bool  gridChecked,
QColor  color 
)

Constructor.

Parameters
titleThe style's title
titleFontThe title's font
axisXThe x axis' label
axisYThe y axis' label
axisFontThe axis' font. Will be used for both x and y axis.
fillThe title's fill
strokeThe title's stroke
gridCheckedBoolean used to decided weather to display the grid or not
colorThe style's background ccolor

◆ ~ChartStyle()

te::qt::widgets::ChartStyle::~ChartStyle ( )

Destructor.

Member Function Documentation

◆ getAxisFont()

QFont& te::qt::widgets::ChartStyle::getAxisFont ( )

Returns a reference to the axis' font.

Returns
A QFont that represents the axis' font.

◆ getAxisX()

QString& te::qt::widgets::ChartStyle::getAxisX ( )

Returns a reference to the style's x axis label.

Returns
A QString that represents the style's x axis label.

◆ getAxisY()

QString& te::qt::widgets::ChartStyle::getAxisY ( )

Returns a reference to the style's y axis label.

Returns
A QString that represents the style's y axis label.

◆ getColor()

QColor& te::qt::widgets::ChartStyle::getColor ( )

Returns a reference to the style's color.

Returns
A QColor that represents the style's color.

◆ getFill()

te::se::Fill* te::qt::widgets::ChartStyle::getFill ( )

Returns a pointer to the style's fill.

Returns
A Fill type pointer to the style's fill.
Note
The caller will not take ownership of the returned pointer.

◆ getGridChecked()

bool te::qt::widgets::ChartStyle::getGridChecked ( )

Returns true if the grid is to be displayed, otherwise returns false.

Returns
A boolean used to decided weather to display the grid or not

◆ getStroke()

te::se::Stroke* te::qt::widgets::ChartStyle::getStroke ( )

Returns a pointer to the style's stroke.

Returns
A Fill type pointer to the style's stroke.
Note
The caller will not take ownership of the returned pointer.

◆ getTitle()

QString& te::qt::widgets::ChartStyle::getTitle ( )

Returns a reference to the style's Title.

Returns
A QString that represents the style's Title.

◆ getTitleFont()

QFont& te::qt::widgets::ChartStyle::getTitleFont ( )

Returns a reference to the title's font.

Returns
A QFont that represents the title's font.

◆ setAxisFont()

void te::qt::widgets::ChartStyle::setAxisFont ( QFont  newAxisFont)

It sets the axis' font.

Parameters
newAxisXThe new axis' font.

◆ setAxisX()

void te::qt::widgets::ChartStyle::setAxisX ( QString  newAxisX)

It sets the style's x axis label.

Parameters
newAxisXThe new x axis label.

◆ setAxisY()

void te::qt::widgets::ChartStyle::setAxisY ( QString  newAxisY)

It sets the style's y axis label.

Parameters
newAxisXThe new y axis label.

◆ setColor()

void te::qt::widgets::ChartStyle::setColor ( QColor  newColor)

It sets the style's color.

Parameters
newColorThe new color.

◆ setFill()

void te::qt::widgets::ChartStyle::setFill ( te::se::Fill newFill)

It sets the style's fill.

Parameters
newFillThe new fill.
Note
It will take ownership of the given pointer

◆ setGridChecked()

void te::qt::widgets::ChartStyle::setGridChecked ( bool  newGridChecked)

It sets the boolean used to decided weather to display the grid or not.

Parameters
newGridCheckedA boolean used to decided weather to display the grid or not

◆ setStroke()

void te::qt::widgets::ChartStyle::setStroke ( te::se::Stroke newStroke)

It sets the style's stroke.

Parameters
newStrokeThe new stroke.
Note
It will take ownership of the given pointer

◆ setTitle()

void te::qt::widgets::ChartStyle::setTitle ( QString  newTitle)

It sets the style's title.

Parameters
newTitleThe new title.

◆ setTitleFont()

void te::qt::widgets::ChartStyle::setTitleFont ( QFont  newTitleFont)

It sets the title's font.

Parameters
newTitleThe new title's font..

Member Data Documentation

◆ m_axisFont

QFont te::qt::widgets::ChartStyle::m_axisFont
private

The axis' font.

Definition at line 220 of file ChartStyle.h.

◆ m_axisX

QString te::qt::widgets::ChartStyle::m_axisX
private

The chart X axis' label.

Definition at line 218 of file ChartStyle.h.

◆ m_axisY

QString te::qt::widgets::ChartStyle::m_axisY
private

The chart Y axis' label.

Definition at line 219 of file ChartStyle.h.

◆ m_backColor

QColor te::qt::widgets::ChartStyle::m_backColor
private

The chart's background color.

Definition at line 224 of file ChartStyle.h.

◆ m_fill

te::se::Fill* te::qt::widgets::ChartStyle::m_fill
private

The chart's fill.

Definition at line 222 of file ChartStyle.h.

◆ m_gridChecked

bool te::qt::widgets::ChartStyle::m_gridChecked
private

The boolean used to decide if the chart will have a background grid .

Definition at line 221 of file ChartStyle.h.

◆ m_stroke

te::se::Stroke* te::qt::widgets::ChartStyle::m_stroke
private

The chart's stroke.

Definition at line 223 of file ChartStyle.h.

◆ m_title

QString te::qt::widgets::ChartStyle::m_title
private

The chart's title.

Definition at line 216 of file ChartStyle.h.

◆ m_titleFont

QFont te::qt::widgets::ChartStyle::m_titleFont
private

The title's font.

Definition at line 217 of file ChartStyle.h.


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