Signals | Public Member Functions | Protected Member Functions

vtkQtChartTitle Class Reference

The vtkQtChartTitle class is used to draw a chart title. More...

#include <vtkQtChartTitle.h>

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

vtkQtChartTitle::vtkQtChartTitle ( Qt::Orientation  orient = Qt::Horizontal,
QWidget *  parent = 0 
)

Creates a chart title instance.

Parameters:
orientThe orientation of the title.
parentThe parent widget.
virtual vtkQtChartTitle::~vtkQtChartTitle (  ) [inline, virtual]

Definition at line 51 of file vtkQtChartTitle.h.

{}

Member Function Documentation

void vtkQtChartTitle::drawTitle ( QPainter &  painter )

Draws the title using the given painter.

Parameters:
painterThe painter to use.
virtual bool vtkQtChartTitle::event ( QEvent *  e ) [protected, virtual]

Updates the layout when the font changes.

Parameters:
eEvent specific information.
Returns:
True if the event was handled.
Qt::Orientation vtkQtChartTitle::getOrientation (  ) const [inline]

Gets the orientation of the chart title.

Returns:
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.

Returns:
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.

Returns:
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.

Parameters:
eEvent specific information.
void vtkQtChartTitle::setOrientation ( Qt::Orientation  orient )

Sets the orientation of the chart title.

Parameters:
orientThe orientation of the title.
void vtkQtChartTitle::setText ( const QString &  text )

Sets the chart title text.

Parameters:
textThe text to display.
void vtkQtChartTitle::setTextAlignment ( int  flags ) [inline]

Sets the text alignment flags for the title.

Parameters:
flagsThe 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.

Returns:
The preferred size of the chart title.

Definition at line 90 of file vtkQtChartTitle.h.

{return this->Bounds;}

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines