Common base widget providing title, axis labels and resize handling for DISPLIB's QPainter plots. More...
#include <graph.h>
Public Types | |
| typedef QSharedPointer< Graph > | SPtr |
| typedef QSharedPointer< const Graph > | ConstSPtr |
Public Member Functions | |
| Graph (QWidget *parent=0) | |
| void | init () |
| void | setTitle (const QString &p_sTitle) |
| void | setXLabel (const QString &p_sXLabel) |
| void | setYLabel (const QString &p_sYLabel) |
Protected Member Functions | |
| void | resizeEvent (QResizeEvent *event) |
| void | drawLabels (qint32 p_iContentWidth, qint32 p_iContentHeight) |
Protected Attributes | |
| QSize | m_qSizeWidget |
| QString | m_sTitle |
| QFont | m_qFontTitle |
| QPen | m_qPenTitle |
| qint32 | m_iBorderTopBottom |
| qint32 | m_iBorderLeftRight |
| QString | m_sXLabel |
| QString | m_sYLabel |
| QFont | m_qFontAxes |
| QPen | m_qPenAxes |
Common base widget providing title, axis labels and resize handling for DISPLIB's QPainter plots.
Subclasses such as Plot and ImageSc paint inside the content rectangle that Graph leaves free after stamping the title bar at the top and the x / y axis labels on the bottom and left margins.

| typedef QSharedPointer<const Graph> DISPLIB::Graph::ConstSPtr |
| typedef QSharedPointer<Graph> DISPLIB::Graph::SPtr |
|
explicit |
|
protected |
|
protected |
| void Graph::setTitle | ( | const QString & | p_sTitle | ) |
| void Graph::setXLabel | ( | const QString & | p_sXLabel | ) |
| void Graph::setYLabel | ( | const QString & | p_sYLabel | ) |
|
protected |
|
protected |
|
protected |