The vtkQtChartTitle class is used to draw a chart title. More...
#include <vtkQtChartTitle.h>
Signals | |
| void | orientationChanged () |
| Emitted when the title orientation has changed. | |
Public Member Functions | |
| vtkQtChartTitle (Qt::Orientation orient=Qt::Horizontal, QWidget *parent=0) | |
| Creates a chart title instance. | |
| virtual | ~vtkQtChartTitle () |
| Qt::Orientation | getOrientation () const |
| Gets the orientation of the chart title. | |
| void | setOrientation (Qt::Orientation orient) |
| Sets the orientation of the chart title. | |
| QString | getText () const |
| Gets the chart title text. | |
| void | setText (const QString &text) |
| Sets the chart title text. | |
| int | getTextAlignment () const |
| Gets the text alignment flags for the title. | |
| void | setTextAlignment (int flags) |
| Sets the text alignment flags for the title. | |
| virtual QSize | sizeHint () const |
| Gets the preferred size of the chart title. | |
| void | drawTitle (QPainter &painter) |
| Draws the title using the given painter. | |
Protected Member Functions | |
| virtual bool | event (QEvent *e) |
| Updates the layout when the font changes. | |
| virtual void | paintEvent (QPaintEvent *e) |
| Draws the chart title. | |
The vtkQtChartTitle class is used to draw a chart title.
The text for the title can be drawn horizontally or vertically. This allows the title to be used on a vertical axis.
Definition at line 41 of file vtkQtChartTitle.h.
| vtkQtChartTitle::vtkQtChartTitle | ( | Qt::Orientation | orient = Qt::Horizontal, |
| QWidget * | parent = 0 |
||
| ) |
Creates a chart title instance.
| orient | The orientation of the title. |
| parent | The parent widget. |
| virtual vtkQtChartTitle::~vtkQtChartTitle | ( | ) | [inline, virtual] |
Definition at line 51 of file vtkQtChartTitle.h.
{}
| void vtkQtChartTitle::drawTitle | ( | QPainter & | painter ) |
Draws the title using the given painter.
| painter | The painter to use. |
| virtual bool vtkQtChartTitle::event | ( | QEvent * | e ) | [protected, virtual] |
Updates the layout when the font changes.
| e | Event specific information. |
| Qt::Orientation vtkQtChartTitle::getOrientation | ( | ) | const [inline] |
Gets the orientation of the chart title.
Definition at line 57 of file vtkQtChartTitle.h.
{return this->Orient;}
| QString vtkQtChartTitle::getText | ( | ) | const [inline] |
Gets the chart title text.
Definition at line 68 of file vtkQtChartTitle.h.
{return this->Text;}
| int vtkQtChartTitle::getTextAlignment | ( | ) | const [inline] |
Gets the text alignment flags for the title.
Definition at line 79 of file vtkQtChartTitle.h.
{return this->Align;}
| void vtkQtChartTitle::orientationChanged | ( | ) | [signal] |
Emitted when the title orientation has changed.
| virtual void vtkQtChartTitle::paintEvent | ( | QPaintEvent * | e ) | [protected, virtual] |
Draws the chart title.
| e | Event specific information. |
| void vtkQtChartTitle::setOrientation | ( | Qt::Orientation | orient ) |
Sets the orientation of the chart title.
| orient | The orientation of the title. |
| void vtkQtChartTitle::setText | ( | const QString & | text ) |
Sets the chart title text.
| text | The text to display. |
| void vtkQtChartTitle::setTextAlignment | ( | int | flags ) | [inline] |
Sets the text alignment flags for the title.
| flags | The text alignment flags to use. |
Definition at line 84 of file vtkQtChartTitle.h.
{this->Align = flags;}
| virtual QSize vtkQtChartTitle::sizeHint | ( | ) | const [inline, virtual] |
Gets the preferred size of the chart title.
Definition at line 90 of file vtkQtChartTitle.h.
{return this->Bounds;}
1.7.2