An abstract class acting as an interface for the different 1D annotation items.
Definition: Annotation1DItem.h:59
int getFlags() const
Get Qt flags.
void ensureWithinDataRange(Spectrum1DCanvas *const canvas) override
Ensures that the item has coordinates within the visible area of the canvas.
Size< TNeedle >::Type position(const PatternAuxData< TNeedle > &dh)
Definition: AhoCorasickAmbiguous.h:561
void draw(Spectrum1DCanvas *const canvas, QPainter &painter, bool flipped=false) override
Draws the item on painter.
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:82
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
~Annotation1DTextItem() override
Destructor.
void move(const PointType &delta) override
Moves the item; behaviour depends on item type and is implemented in the subclasses.
Canvas for visualization of one or several spectra.
Definition: Spectrum1DCanvas.h:67
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:84
An annotation item which represents an arbitrary text on the canvas.
Definition: Annotation1DTextItem.h:44
Annotation1DTextItem(const PointType &position, const QString &text, const int flags=Qt::AlignCenter)
Constructor.