virtual ~Annotation1DTextItem()
Destructor.
const PointType & getPosition() const
Returns the position of the item (in MZ / intensity coordinates)
PointType position_
The position of the item (in MZ / intensity coordinates)
Definition: Annotation1DTextItem.h:83
virtual void move(const PointType &delta)
Moves the item; behaviour depends on item type and is implemented in the subclasses.
virtual void ensureWithinDataRange(Spectrum1DCanvas *const canvas)
Ensures that the item has coordinates within the visible area of the canvas.
virtual void draw(Spectrum1DCanvas *const canvas, QPainter &painter, bool flipped=false)
Draws the item on painter.
void setPosition(const PointType &position)
Sets the position of the item (in MZ / intensity coordinates)
void setFlags(int flags)
Set Qt flags (default: Qt::AlignCenter)
int flags_
Definition: Annotation1DTextItem.h:85
An annotation item which represents an arbitrary text on the canvas.
Definition: Annotation1DTextItem.h:45
Annotation1DTextItem(const PointType &position, const QString &text, const int flags=Qt::AlignCenter)
Constructor.