62 void draw(
Plot1DCanvas *
const canvas, QPainter & painter,
bool flipped =
false)
override;
An abstract class acting as an interface for the different 1D annotation items.
Definition: Annotation1DItem.h:60
An annotation item which represents an arbitrary text on the canvas.
Definition: Annotation1DTextItem.h:46
void setFlags(int flags)
Set Qt flags (default: Qt::AlignCenter)
~Annotation1DTextItem() override
Destructor.
int flags_
Definition: Annotation1DTextItem.h:84
void setPosition(const PointType &position)
Sets the position of the item (in MZ / intensity coordinates)
const PointType & getPosition() const
Returns the position of the item (in MZ / intensity coordinates)
void draw(Plot1DCanvas *const canvas, QPainter &painter, bool flipped=false) override
Draws the item on painter.
Annotation1DTextItem(const PointType &position, const QString &text, const int flags=Qt::AlignCenter)
Constructor.
void ensureWithinDataRange(Plot1DCanvas *const canvas) override
Ensures that the item has coordinates within the visible area of the canvas.
void move(const PointType &delta) override
Moves the item; behaviour depends on item type and is implemented in the subclasses.
int getFlags() const
Get Qt flags.
Annotation1DTextItem(const Annotation1DTextItem &rhs)
Copy constructor.
PointType position_
The position of the item (in MZ / intensity coordinates)
Definition: Annotation1DTextItem.h:82
Canvas for visualization of one or several spectra.
Definition: Plot1DCanvas.h:69
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Size< TNeedle >::Type position(const PatternAuxData< TNeedle > &dh)
Definition: AhoCorasickAmbiguous.h:563