#include <ChartStyle.h>
Definition at line 54 of file ChartStyle.h.
te::qt::widgets::ChartStyle::ChartStyle |
( |
| ) |
|
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
-
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 |
te::qt::widgets::ChartStyle::~ChartStyle |
( |
| ) |
|
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.
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
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
-
newAxisX | The new axis' font. |
void te::qt::widgets::ChartStyle::setAxisX |
( |
QString |
newAxisX | ) |
|
It sets the style's x axis label.
- Parameters
-
newAxisX | The new x axis label. |
void te::qt::widgets::ChartStyle::setAxisY |
( |
QString |
newAxisY | ) |
|
It sets the style's y axis label.
- Parameters
-
newAxisX | The new y axis label. |
void te::qt::widgets::ChartStyle::setColor |
( |
QColor |
newColor | ) |
|
It sets the style's color.
- Parameters
-
void te::qt::widgets::ChartStyle::setFill |
( |
te::se::Fill * |
newFill | ) |
|
It sets the style's fill.
- Parameters
-
- 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
-
newGridChecked | A 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
-
- Note
- It will take ownership of the given pointer
void te::qt::widgets::ChartStyle::setTitle |
( |
QString |
newTitle | ) |
|
It sets the style's title.
- Parameters
-
void te::qt::widgets::ChartStyle::setTitleFont |
( |
QFont |
newTitleFont | ) |
|
It sets the title's font.
- Parameters
-
newTitle | The new title's font.. |
QFont te::qt::widgets::ChartStyle::m_axisFont |
|
private |
QString te::qt::widgets::ChartStyle::m_axisX |
|
private |
QString te::qt::widgets::ChartStyle::m_axisY |
|
private |
QColor te::qt::widgets::ChartStyle::m_backColor |
|
private |
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.
QString te::qt::widgets::ChartStyle::m_title |
|
private |
QFont te::qt::widgets::ChartStyle::m_titleFont |
|
private |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/src/terralib/qt/widgets/charts/ChartStyle.h