Axis

Axis for a cartesian coordinate system.

Public Types

  • enum ArrowPosition

  • enum ArrowType

  • enum LabelsBackgroundType

  • enum LabelsFormat

  • enum LabelsPosition

  • enum LabelsTextType

  • enum Position

  • enum RangeType

  • enum TicksFlags

  • enum TicksStartType

  • enum TicksType

Public Methods

void

Axis(const QString &, Orientation=Orientation::Horizontal, bool loading=false)

QMenu*

createContextMenu() override

void

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

QIcon

icon() const override

LabelsFormat

indexToLabelsFormat(int index)

bool

isDefault() const

bool

isNumeric() const

int

labelsFormatToIndex(LabelsFormat format)

Line*

line() const

bool

load(XmlStreamReader *, bool preview) override

void

loadThemeConfig(const KConfig &) override

Line*

majorGridLine() const

Line*

majorTicksLine() const

int

majorTicksNumber() const

int

maxNumberMajorTicksCustomColumn()

Line*

minorGridLine() const

Line*

minorTicksLine() const

double

offset() const

void

retransform() override

void

retransformTickLabelStrings()

void

save(QXmlStreamWriter *) const override

void

saveThemeConfig(const KConfig &) override

void

setDefault(bool)

void

setEnd(const double)

void

setMajorTicksNumber(const int number)

void

setOffset(const double, const bool=true)

void

setRange(const double, const double)

void

setStart(const double)

void

setSuppressRetransform(bool)

void

setZValue(qreal) override

QVector< QString >

tickLabelStrings() const

QVector< double >

tickLabelValues() const

TextLabel*

title() const

void

updateLocale() override

Detailed Description

class Axis : public WorksheetElement

Axis for a cartesian coordinate system.

Note, this class doesn’t define the acttualy coordinate system and the data range to be plotted - this is done in CartesianPlot. In this class only the properties and the drawing of the visual object “axis” is handled.

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 setZValue(qreal) override

overrides the implementation in WorksheetElement and sets the z-value to the maximal possible, axes are drawn on top of all other object in the plot.

virtual void save(QXmlStreamWriter*) const override

Save as XML.

virtual bool load(XmlStreamReader*, bool preview) override

Load from XML.