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.

Definition at line 34 of file ChartStyle.cpp.

References te::at::Bold, m_axisFont, m_axisX, m_axisY, m_backColor, m_fill, m_gridChecked, m_stroke, m_title, and m_titleFont.

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

Definition at line 47 of file ChartStyle.cpp.

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

Destructor.

Definition at line 60 of file ChartStyle.cpp.

References m_fill, and m_stroke.

Member Function Documentation

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

Returns a reference to the axis' font.

Returns
A QFont that represents the axis' font.

Definition at line 106 of file ChartStyle.cpp.

References m_axisFont.

Referenced by te::qt::widgets::ChartDisplay::adjustDisplay(), and te::qt::widgets::ChartStyleWidget::onLabelStylePushButtonClicked().

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.

Definition at line 86 of file ChartStyle.cpp.

References m_axisX.

Referenced by te::qt::widgets::ChartDisplay::adjustDisplay(), te::qt::widgets::exportChart(), and te::qt::widgets::ChartStyleWidget::setStyle().

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.

Definition at line 96 of file ChartStyle.cpp.

References m_axisY.

Referenced by te::qt::widgets::ChartDisplay::adjustDisplay(), te::qt::widgets::exportChart(), and te::qt::widgets::ChartStyleWidget::setStyle().

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

Returns a reference to the style's color.

Returns
A QColor that represents the style's color.

Definition at line 140 of file ChartStyle.cpp.

References m_backColor.

Referenced by te::qt::widgets::ChartDisplay::adjustDisplay(), te::qt::widgets::ChartStyleWidget::onColorChanged(), and te::qt::widgets::ChartStyleWidget::setStyle().

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.

Definition at line 117 of file ChartStyle.cpp.

References m_fill.

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

Definition at line 150 of file ChartStyle.cpp.

References m_gridChecked.

Referenced by te::qt::widgets::ChartDisplay::adjustDisplay(), and te::qt::widgets::ChartStyleWidget::setStyle().

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.

Definition at line 129 of file ChartStyle.cpp.

References m_stroke.

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

Returns a reference to the style's Title.

Returns
A QString that represents the style's Title.

Definition at line 66 of file ChartStyle.cpp.

References m_title.

Referenced by te::qt::widgets::ChartDisplay::adjustDisplay(), te::qt::widgets::exportChart(), te::qt::widgets::ChartDisplayWidget::setDisplay(), and te::qt::widgets::ChartStyleWidget::setStyle().

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

Returns a reference to the title's font.

Returns
A QFont that represents the title's font.

Definition at line 76 of file ChartStyle.cpp.

References m_titleFont.

Referenced by te::qt::widgets::ChartDisplay::adjustDisplay(), and te::qt::widgets::ChartStyleWidget::onTitleStylePushButtonClicked().

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

It sets the axis' font.

Parameters
newAxisXThe new axis' font.

Definition at line 111 of file ChartStyle.cpp.

References m_axisFont.

Referenced by te::qt::widgets::ChartStyleWidget::onLabelStylePushButtonClicked().

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

It sets the style's color.

Parameters
newColorThe new color.

Definition at line 145 of file ChartStyle.cpp.

References m_backColor.

Referenced by te::qt::widgets::ChartStyleWidget::onColorChanged().

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

Definition at line 123 of file ChartStyle.cpp.

References m_fill.

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

Definition at line 134 of file ChartStyle.cpp.

References m_stroke.

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

It sets the title's font.

Parameters
newTitleThe new title's font..

Definition at line 81 of file ChartStyle.cpp.

References m_titleFont.

Referenced by te::qt::widgets::ChartStyleWidget::onTitleStylePushButtonClicked().

Member Data Documentation

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

The axis' font.

Definition at line 220 of file ChartStyle.h.

Referenced by ChartStyle(), getAxisFont(), and setAxisFont().

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

The chart X axis' label.

Definition at line 218 of file ChartStyle.h.

Referenced by ChartStyle(), getAxisX(), and setAxisX().

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

The chart Y axis' label.

Definition at line 219 of file ChartStyle.h.

Referenced by ChartStyle(), getAxisY(), and setAxisY().

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

The chart's background color.

Definition at line 224 of file ChartStyle.h.

Referenced by ChartStyle(), getColor(), and setColor().

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

The chart's fill.

Definition at line 222 of file ChartStyle.h.

Referenced by ChartStyle(), getFill(), setFill(), and ~ChartStyle().

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.

Referenced by ChartStyle(), getGridChecked(), and setGridChecked().

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

The chart's stroke.

Definition at line 223 of file ChartStyle.h.

Referenced by ChartStyle(), getStroke(), setStroke(), and ~ChartStyle().

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

The chart's title.

Definition at line 216 of file ChartStyle.h.

Referenced by ChartStyle(), getTitle(), and setTitle().

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

The title's font.

Definition at line 217 of file ChartStyle.h.

Referenced by ChartStyle(), getTitleFont(), and setTitleFont().


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