ReferenceRange

This class implements a rectangular that can be placed at a custom reference position on the plot to highlight certain range of the visualized data.

Public Methods

void

ReferenceRange(CartesianPlot *, const QString &, bool loading=false)

Background*

background() const

QMenu*

createContextMenu() override

void

handleResize(double horizontalRatio, double verticalRatio, bool pageResize) override

QIcon

icon() const override

Line*

line() const

bool

load(XmlStreamReader *, bool preview) override

void

loadThemeConfig(const KConfig &) override

void

orientationChanged(Orientation)

void

positionLogicalEndChanged(QPointF)

void

positionLogicalStartChanged(QPointF)

void

retransform() override

void

save(QXmlStreamWriter *) const override

Detailed Description

class ReferenceRange : public WorksheetElement

This class implements a rectangular that can be placed at a custom reference position on the plot to highlight certain range of the visualized data.

The custom position can be either specified by moving the line with the mouse or by manually providing the start and end values for x or y for the vertical or horizontal orientations, respectively. The coordinates are provided relatively to plot’s coordinate system.

Public Functions

virtual QIcon icon() const override

Returns an icon to be used in the project explorer.

virtual QMenu *createContextMenu() override

Return a new context menu.

The caller takes ownership of the menu.

virtual void save(QXmlStreamWriter*) const override

Save as XML.

virtual bool load(XmlStreamReader*, bool preview) override

Load from XML.