An annotation item which represents an arbitrary text on the canvas. More...
#include <OpenMS/VISUAL/ANNOTATION/Annotation1DTextItem.h>
Public Member Functions | |
| Annotation1DTextItem (const PointType &position, const QString &text, const int flags=Qt::AlignCenter) | |
| Constructor. More... | |
| Annotation1DTextItem (const Annotation1DTextItem &rhs) | |
| Copy constructor. More... | |
| virtual | ~Annotation1DTextItem () |
| Destructor. More... | |
| virtual void | ensureWithinDataRange (Spectrum1DCanvas *const canvas) |
| Ensures that the item has coordinates within the visible area of the canvas. More... | |
| virtual void | draw (Spectrum1DCanvas *const canvas, QPainter &painter, bool flipped=false) |
Draws the item on painter. More... | |
| virtual void | move (const PointType &delta) |
| Moves the item; behaviour depends on item type and is implemented in the subclasses. More... | |
| void | setPosition (const PointType &position) |
| Sets the position of the item (in MZ / intensity coordinates) More... | |
| const PointType & | getPosition () const |
| Returns the position of the item (in MZ / intensity coordinates) More... | |
| void | setFlags (int flags) |
| Set Qt flags (default: Qt::AlignCenter) More... | |
| int | getFlags () const |
| Get Qt flags. More... | |
Public Member Functions inherited from Annotation1DItem | |
| virtual | ~Annotation1DItem () |
| Destructor. More... | |
| const QRectF & | boundingBox () const |
| Returns the current bounding box of this item on the canvas where it has last been drawn. More... | |
| bool | isSelected () const |
| Returns true if this item is currently selected on the canvas, else false. More... | |
| void | setSelected (bool selected) |
| Sets whether this item is currently selected on the canvas or not. More... | |
| void | setText (const QString &text) |
| Sets the text of the item. More... | |
| const QString & | getText () const |
| Returns the text of the item. More... | |
Protected Attributes | |
| PointType | position_ |
| The position of the item (in MZ / intensity coordinates) More... | |
| int | flags_ |
Protected Attributes inherited from Annotation1DItem | |
| QRectF | bounding_box_ |
| The current bounding box of this item on the canvas where it has last been drawn. More... | |
| bool | selected_ |
| Determines whether this item is currently selected on the canvas. More... | |
| QString | text_ |
| The displayed text. More... | |
Additional Inherited Members | |
Public Types inherited from Annotation1DItem | |
| typedef DPosition< 2 > | PointType |
| Type of the Points. More... | |
| typedef Real | IntensityType |
| Intensity type. More... | |
| typedef DoubleReal | CoordinateType |
| Coordinate type. More... | |
Protected Member Functions inherited from Annotation1DItem | |
| Annotation1DItem (const QString &text) | |
| Constructor. More... | |
| Annotation1DItem (const Annotation1DItem &rhs) | |
| Copy constructor. More... | |
| void | drawBoundingBox_ (QPainter &painter) |
| Draws the bounding_box_. More... | |
An annotation item which represents an arbitrary text on the canvas.
| Annotation1DTextItem | ( | const PointType & | position, |
| const QString & | text, | ||
| const int | flags = Qt::AlignCenter |
||
| ) |
Constructor.
| Annotation1DTextItem | ( | const Annotation1DTextItem & | rhs | ) |
Copy constructor.
|
virtual |
Destructor.
|
virtual |
Draws the item on painter.
Implements Annotation1DItem.
|
virtual |
Ensures that the item has coordinates within the visible area of the canvas.
Implements Annotation1DItem.
| int getFlags | ( | ) | const |
Get Qt flags.
| const PointType& getPosition | ( | ) | const |
Returns the position of the item (in MZ / intensity coordinates)
|
virtual |
Moves the item; behaviour depends on item type and is implemented in the subclasses.
Implements Annotation1DItem.
| void setFlags | ( | int | flags | ) |
Set Qt flags (default: Qt::AlignCenter)
| void setPosition | ( | const PointType & | position | ) |
Sets the position of the item (in MZ / intensity coordinates)
|
protected |
|
protected |
The position of the item (in MZ / intensity coordinates)
| OpenMS / TOPP release 1.11.1 | Documentation generated on Thu Nov 14 2013 11:19:35 using doxygen 1.8.5 |