#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::Fill * | getFill () |
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::Stroke * | getStroke () |
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::Fill * | m_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::Stroke * | m_stroke |
The chart's stroke. More... | |
QString | m_title |
The chart's title. More... | |
QFont | m_titleFont |
The title's font. More... | |
Definition at line 54 of file ChartStyle.h.
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.
title | The style's title |
titleFont | The title's font |
axisX | The x axis' label |
axisY | The y axis' label |
axisFont | The axis' font. Will be used for both x and y axis. |
fill | The title's fill |
stroke | The title's stroke |
gridChecked | Boolean used to decided weather to display the grid or not |
color | The 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.
QFont & te::qt::widgets::ChartStyle::getAxisFont | ( | ) |
Returns a reference to the axis' font.
Definition at line 106 of file ChartStyle.cpp.
QString & te::qt::widgets::ChartStyle::getAxisX | ( | ) |
Returns a reference to the style's x axis label.
Definition at line 86 of file ChartStyle.cpp.
QString & te::qt::widgets::ChartStyle::getAxisY | ( | ) |
Returns a reference to the style's y axis label.
Definition at line 96 of file ChartStyle.cpp.
QColor & te::qt::widgets::ChartStyle::getColor | ( | ) |
Returns a reference to the style's color.
Definition at line 140 of file ChartStyle.cpp.
te::se::Fill * te::qt::widgets::ChartStyle::getFill | ( | ) |
Returns a pointer to the style's fill.
Definition at line 117 of file ChartStyle.cpp.
bool te::qt::widgets::ChartStyle::getGridChecked | ( | ) |
Returns true if the grid is to be displayed, otherwise returns false.
Definition at line 150 of file ChartStyle.cpp.
te::se::Stroke * te::qt::widgets::ChartStyle::getStroke | ( | ) |
Returns a pointer to the style's stroke.
Definition at line 129 of file ChartStyle.cpp.
QString & te::qt::widgets::ChartStyle::getTitle | ( | ) |
Returns a reference to the style's Title.
Definition at line 66 of file ChartStyle.cpp.
QFont & te::qt::widgets::ChartStyle::getTitleFont | ( | ) |
Returns a reference to the title's font.
Definition at line 76 of file ChartStyle.cpp.
void te::qt::widgets::ChartStyle::setAxisFont | ( | QFont | newAxisFont | ) |
It sets the axis' font.
newAxisX | The new axis' font. |
Definition at line 111 of file ChartStyle.cpp.
void te::qt::widgets::ChartStyle::setAxisX | ( | QString | newAxisX | ) |
It sets the style's x axis label.
newAxisX | The new x axis label. |
Definition at line 91 of file ChartStyle.cpp.
Referenced by te::qt::widgets::createHistogramDisplay(), te::qt::widgets::createNormalDistribution(), te::qt::widgets::createScatterDisplay(), and te::qt::widgets::RasterHistogramWidget::RasterHistogramWidget().
void te::qt::widgets::ChartStyle::setAxisY | ( | QString | newAxisY | ) |
It sets the style's y axis label.
newAxisX | The new y axis label. |
Definition at line 101 of file ChartStyle.cpp.
Referenced by te::qt::widgets::createHistogramDisplay(), te::qt::widgets::createNormalDistribution(), te::qt::widgets::createScatterDisplay(), and te::qt::widgets::RasterHistogramWidget::RasterHistogramWidget().
void te::qt::widgets::ChartStyle::setColor | ( | QColor | newColor | ) |
It sets the style's color.
newColor | The new color. |
Definition at line 145 of file ChartStyle.cpp.
Referenced by te::qt::widgets::ChartStyleWidget::setStyle().
void te::qt::widgets::ChartStyle::setFill | ( | te::se::Fill * | newFill | ) |
It sets the style's fill.
newFill | The new fill. |
Definition at line 123 of file ChartStyle.cpp.
void te::qt::widgets::ChartStyle::setGridChecked | ( | bool | newGridChecked | ) |
It sets the boolean used to decided weather to display the grid or not.
newGridChecked | A boolean used to decided weather to display the grid or not |
Definition at line 155 of file ChartStyle.cpp.
Referenced by te::qt::widgets::createNormalDistribution(), and te::qt::widgets::RasterHistogramWidget::RasterHistogramWidget().
void te::qt::widgets::ChartStyle::setStroke | ( | te::se::Stroke * | newStroke | ) |
It sets the style's stroke.
newStroke | The new stroke. |
Definition at line 134 of file ChartStyle.cpp.
void te::qt::widgets::ChartStyle::setTitle | ( | QString | newTitle | ) |
It sets the style's title.
newTitle | The new title. |
Definition at line 71 of file ChartStyle.cpp.
Referenced by te::qt::widgets::createHistogramDisplay(), te::qt::widgets::createNormalDistribution(), te::qt::widgets::createScatterDisplay(), and te::qt::widgets::RasterHistogramWidget::RasterHistogramWidget().
void te::qt::widgets::ChartStyle::setTitleFont | ( | QFont | newTitleFont | ) |
It sets the title's font.
newTitle | The new title's font.. |
Definition at line 81 of file ChartStyle.cpp.
|
private |
|
private |
|
private |
|
private |
The chart's background color.
Definition at line 224 of file ChartStyle.h.
Referenced by ChartStyle().
|
private |
|
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().
|
private |
|
private |
|
private |