Updraft  1.0
Open source glider flight visualisation tool.
Updraft::IgcViewer::TextLabel Class Reference

Textual label in plot. More...

#include <graphlabels.h>

Inheritance diagram for Updraft::IgcViewer::TextLabel:
Collaboration diagram for Updraft::IgcViewer::TextLabel:

List of all members.

Public Member Functions

void draw (QPainter *painter)
 Draw the labels to the painter.
 TextLabel (QString text_)
Qt::Orientations expandingDirections () const
 Overridden from QLayoutItem.
QSize maximumSize () const
QSize minimumSize () const
QSize sizeHint () const

Private Attributes

QString text

Static Private Attributes

static const int MIN_WIDTH = 100
static const int MIN_HEIGHT = 15
static const QPen LABEL_PEN = QPen(Qt::white)

Detailed Description

Textual label in plot.


Constructor & Destructor Documentation

Updraft::IgcViewer::TextLabel::TextLabel ( QString  text_) [explicit]

Member Function Documentation

void Updraft::IgcViewer::TextLabel::draw ( QPainter *  painter) [virtual]

Draw the labels to the painter.

Implements Updraft::IgcViewer::Label.

Qt::Orientations Updraft::IgcViewer::TextLabel::expandingDirections ( ) const [virtual]

Overridden from QLayoutItem.

Reimplemented from Updraft::IgcViewer::Label.

QSize Updraft::IgcViewer::TextLabel::maximumSize ( ) const [virtual]

Reimplemented from Updraft::IgcViewer::Label.

QSize Updraft::IgcViewer::TextLabel::minimumSize ( ) const [virtual]

Reimplemented from Updraft::IgcViewer::Label.

QSize Updraft::IgcViewer::TextLabel::sizeHint ( ) const [virtual]

Reimplemented from Updraft::IgcViewer::Label.


Member Data Documentation

const QPen Updraft::IgcViewer::TextLabel::LABEL_PEN = QPen(Qt::white) [static, private]
const int Updraft::IgcViewer::TextLabel::MIN_HEIGHT = 15 [static, private]
const int Updraft::IgcViewer::TextLabel::MIN_WIDTH = 100 [static, private]

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