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

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

Constructor.

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
te::qt::widgets::ChartStyle::~ChartStyle ( )

Destructor.

Member Function Documentation

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

Returns a reference to the axis' font.

Returns
A QFont that represents the axis' font.
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.
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.
QColor& te::qt::widgets::ChartStyle::getColor ( )

Returns a reference to the style's color.

Returns
A QColor that represents the style's color.
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.
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
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.
QString& te::qt::widgets::ChartStyle::getTitle ( )

Returns a reference to the style's Title.

Returns
A QString that represents the style's Title.
QFont& te::qt::widgets::ChartStyle::getTitleFont ( )

Returns a reference to the title's font.

Returns
A QFont that represents the title's font.
void te::qt::widgets::ChartStyle::setAxisFont ( QFont  newAxisFont)

It sets the axis' font.

Parameters
newAxisXThe new axis' font.
void te::qt::widgets::ChartStyle::setAxisX ( QString  newAxisX)

It sets the style's x axis label.

Parameters
newAxisXThe new x axis label.
void te::qt::widgets::ChartStyle::setAxisY ( QString  newAxisY)

It sets the style's y axis label.

Parameters
newAxisXThe new y axis label.
void te::qt::widgets::ChartStyle::setColor ( QColor  newColor)

It sets the style's color.

Parameters
newColorThe new color.
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
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
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
void te::qt::widgets::ChartStyle::setTitle ( QString  newTitle)

It sets the style's title.

Parameters
newTitleThe new title.
void te::qt::widgets::ChartStyle::setTitleFont ( QFont  newTitleFont)

It sets the title's font.

Parameters
newTitleThe new title's font..

Member Data Documentation

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

The axis' font.

Definition at line 220 of file ChartStyle.h.

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

The chart X axis' label.

Definition at line 218 of file ChartStyle.h.

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

The chart Y axis' label.

Definition at line 219 of file ChartStyle.h.

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

The chart's background color.

Definition at line 224 of file ChartStyle.h.

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

The chart's fill.

Definition at line 222 of file ChartStyle.h.

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.

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

The chart's stroke.

Definition at line 223 of file ChartStyle.h.

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

The chart's title.

Definition at line 216 of file ChartStyle.h.

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: