Axis
Axis for a cartesian coordinate system.
Public Types
enum ArrowPositionenum ArrowTypeenum LabelsBackgroundTypeenum LabelsFormatenum LabelsPositionenum LabelsTextTypeenum Positionenum RangeTypeenum TicksFlagsenum TicksStartTypeenum TicksType
Public Methods
|
Axis(const QString &, Orientation=Orientation::Horizontal, bool loading=false) |
|
createContextMenu() override |
|
handleResize(double horizontalRatio, double verticalRatio, bool pageResize) override |
|
icon() const override |
|
indexToLabelsFormat(int index) |
|
isDefault() const |
|
isNumeric() const |
|
labelsFormatToIndex(LabelsFormat format) |
|
line() const |
|
load(XmlStreamReader *, bool preview) override |
|
loadThemeConfig(const KConfig &) override |
|
majorGridLine() const |
|
majorTicksLine() const |
|
majorTicksNumber() const |
|
maxNumberMajorTicksCustomColumn() |
|
minorGridLine() const |
|
minorTicksLine() const |
|
offset() const |
|
retransform() override |
|
retransformTickLabelStrings() |
|
save(QXmlStreamWriter *) const override |
|
saveThemeConfig(const KConfig &) override |
|
setDefault(bool) |
|
setEnd(const double) |
|
setMajorTicksNumber(const int number) |
|
setOffset(const double, const bool=true) |
|
setRange(const double, const double) |
|
setStart(const double) |
|
setSuppressRetransform(bool) |
|
setZValue(qreal) override |
|
tickLabelStrings() const |
|
tickLabelValues() const |
|
title() const |
|
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.
-
virtual QIcon icon() const override