Class QAccelPlot::AxisTicker¶
ClassList > QAccelPlot > AxisTicker
Controls the visual appearance of ticks, sub-ticks, and tick labels on an Axis .More...
#include <AxisTicker.hpp>
Inherits the following classes: QObject
Inheritance diagram¶
flowchart TB
classQAccelPlot_1_1AxisTicker["QAccelPlot::AxisTicker"]
external_base_classQAccelPlot_1_1AxisTicker_1["QObject"]
external_base_classQAccelPlot_1_1AxisTicker_1 --> classQAccelPlot_1_1AxisTicker
Public Properties¶
| Type | Name |
|---|---|
| property QColor | subtickColor Color of sub-tick marks. Default: Colors.dark.subtick . |
| property int | subtickCount Number of sub-tick intervals between adjacent major ticks. Default: 10. |
| property qreal | subtickLength Convenience setter for both subtickLengthIn andsubtickLengthOut simultaneously. |
| property qreal | subtickLengthIn Inward length in pixels of sub-tick marks. Default: 4. |
| property qreal | subtickLengthOut Outward length in pixels of sub-tick marks. Default: 4. |
| property qreal | subtickWidth Width in pixels of sub-tick mark lines. Default: 1. |
| property QML_ANONYMOUSQColor | tickColor Color of major tick marks. Default: Colors.dark.tick . |
| property int | tickCount Target number of major tick marks. Actual count is adjusted for "nice" values. Default: 5. |
| property QColor | tickLabelColor Optional color of tick labels. When invalid, the tickColor is used. |
| property QFont | tickLabelFont Font used to render tick labels. Default: application default font. |
| property TickLabelFormatter * | tickLabelFormatter Optional custom formatter for tick labels. When nullptr the defaultNumericTickLabelFormatter is used. |
| property qreal | tickLabelPadding Spacing in pixels between a tick mark and its label. Default: 5. |
| property qreal | tickLabelRotation Rotation angle in degrees applied to each tick label. Default: 0. |
| property qreal | tickLength Convenience setter for both tickLengthIn andtickLengthOut simultaneously. |
| property qreal | tickLengthIn Length in pixels of the portion of a major tick that extends into the plot area. Default: 8. |
| property qreal | tickLengthOut Length in pixels of the portion of a major tick that extends outside the plot area. Default: 8. |
| property qreal | tickWidth Width in pixels of major tick mark lines. Default: 2. |
Public Signals¶
| Type | Name |
|---|---|
| signal void | subtickColorChanged Emitted when the subtickColor property changes. |
| signal void | subtickCountChanged Emitted when the subtickCount property changes. |
| signal void | subtickLengthChanged Emitted when the subtickLength convenience property changes. |
| signal void | subtickLengthInChanged Emitted when the subtickLengthIn property changes. |
| signal void | subtickLengthOutChanged Emitted when the subtickLengthOut property changes. |
| signal void | subtickWidthChanged Emitted when the subtickWidth property changes. |
| signal void | tickColorChanged Emitted when the tickColor property changes. |
| signal void | tickCountChanged Emitted when the tickCount property changes. |
| signal void | tickLabelColorChanged Emitted when the tickLabelColor property changes. |
| signal void | tickLabelFontChanged Emitted when the tickLabelFont property changes. |
| signal void | tickLabelFormatChanged Emitted when the current formatter's output configuration changes. |
| signal void | tickLabelFormatterChanged Emitted when the tickLabelFormatter property changes. |
| signal void | tickLabelPaddingChanged Emitted when the tickLabelPadding property changes. |
| signal void | tickLabelRotationChanged Emitted when the tickLabelRotation property changes. |
| signal void | tickLengthChanged Emitted when the tickLength convenience property changes. |
| signal void | tickLengthInChanged Emitted when the tickLengthIn property changes. |
| signal void | tickLengthOutChanged Emitted when the tickLengthOut property changes. |
| signal void | tickWidthChanged Emitted when the tickWidth property changes. |
Public Functions¶
| Type | Name |
|---|---|
| AxisTicker (QObject * parent=nullptr) Constructs an AxisTicker with the given__parent . |
|
| void | setSubtickColor (const QColor & c) Sets the sub-tick color to c . |
| void | setSubtickCount (int count) Sets the sub-tick interval count to count . |
| void | setSubtickLength (qreal length) Sets both subtickLengthIn andsubtickLengthOut to__length . |
| void | setSubtickLengthIn (qreal length) Sets the inward sub-tick length to length . |
| void | setSubtickLengthOut (qreal length) Sets the outward sub-tick length to length . |
| void | setSubtickWidth (qreal width) Sets the sub-tick line width to width . |
| void | setTickColor (const QColor & c) Sets the major tick color to c . |
| void | setTickCount (int count) Sets the target major tick count to count . |
| void | setTickLabelColor (const QColor & c) Sets the tick-label color to c . An invalid color restores the tickColor fallback. |
| void | setTickLabelFont (const QFont & f) Sets the tick label font to f . |
| void | setTickLabelFormatter (TickLabelFormatter * formatter) Sets the tick label formatter to formatter . |
| void | setTickLabelPadding (qreal padding) Sets the tick label padding to padding . |
| void | setTickLabelRotation (qreal rotation) Sets the tick label rotation to rotation degrees. |
| void | setTickLength (qreal length) Sets both tickLengthIn andtickLengthOut to__length . |
| void | setTickLengthIn (qreal length) Sets the inward major tick length to length . |
| void | setTickLengthOut (qreal length) Sets the outward major tick length to length . |
| void | setTickWidth (qreal width) Sets the major tick line width to width . |
| QColor | subtickColor () const Returns the sub-tick color. |
| int | subtickCount () const Returns the sub-tick interval count. |
| qreal | subtickLength () const Returns the shared inward+outward sub-tick length (reads subtickLengthIn ). |
| qreal | subtickLengthIn () const Returns the inward sub-tick length. |
| qreal | subtickLengthOut () const Returns the outward sub-tick length. |
| qreal | subtickWidth () const Returns the sub-tick line width. |
| QColor | tickColor () const Returns the major tick color. |
| int | tickCount () const Returns the target number of major ticks. |
| QColor | tickLabelColor () const Returns the tick-label color, or an invalid color when it follows tickColor. |
| QFont | tickLabelFont () const Returns the tick label font. |
| TickLabelFormatter * | tickLabelFormatter () const Returns the custom tick label formatter, or nullptr if using the default. |
| qreal | tickLabelPadding () const Returns the tick label padding. |
| qreal | tickLabelRotation () const Returns the tick label rotation in degrees. |
| qreal | tickLength () const Returns the shared inward+outward tick length (reads tickLengthIn ). |
| qreal | tickLengthIn () const Returns the inward major tick length. |
| qreal | tickLengthOut () const Returns the outward major tick length. |
| qreal | tickWidth () const Returns the major tick line width. |
Detailed Description¶
Accessible via the Axis::ticker CONSTANT property. Changes are applied on the next paint event.
See also: Axis
Public Properties Documentation¶
property subtickColor¶
Color of sub-tick marks. Default: Colors.dark.subtick .
property subtickCount¶
Number of sub-tick intervals between adjacent major ticks. Default: 10.
property subtickLength¶
Convenience setter for both subtickLengthIn andsubtickLengthOut simultaneously.
property subtickLengthIn¶
Inward length in pixels of sub-tick marks. Default: 4.
property subtickLengthOut¶
Outward length in pixels of sub-tick marks. Default: 4.
property subtickWidth¶
Width in pixels of sub-tick mark lines. Default: 1.
property tickColor¶
Color of major tick marks. Default: Colors.dark.tick .
property tickCount¶
Target number of major tick marks. Actual count is adjusted for "nice" values. Default: 5.
property tickLabelColor¶
Optional color of tick labels. When invalid, the tickColor is used.
property tickLabelFont¶
Font used to render tick labels. Default: application default font.
property tickLabelFormatter¶
Optional custom formatter for tick labels. When nullptr the defaultNumericTickLabelFormatter is used.
property tickLabelPadding¶
Spacing in pixels between a tick mark and its label. Default: 5.
property tickLabelRotation¶
Rotation angle in degrees applied to each tick label. Default: 0.
property tickLength¶
Convenience setter for both tickLengthIn andtickLengthOut simultaneously.
property tickLengthIn¶
Length in pixels of the portion of a major tick that extends into the plot area. Default: 8.
property tickLengthOut¶
Length in pixels of the portion of a major tick that extends outside the plot area. Default: 8.
property tickWidth¶
Width in pixels of major tick mark lines. Default: 2.
Public Signals Documentation¶
signal subtickColorChanged¶
Emitted when the subtickColor property changes.
signal subtickCountChanged¶
Emitted when the subtickCount property changes.
signal subtickLengthChanged¶
Emitted when the subtickLength convenience property changes.
signal subtickLengthInChanged¶
Emitted when the subtickLengthIn property changes.
signal subtickLengthOutChanged¶
Emitted when the subtickLengthOut property changes.
signal subtickWidthChanged¶
Emitted when the subtickWidth property changes.
signal tickColorChanged¶
Emitted when the tickColor property changes.
signal tickCountChanged¶
Emitted when the tickCount property changes.
signal tickLabelColorChanged¶
Emitted when the tickLabelColor property changes.
signal tickLabelFontChanged¶
Emitted when the tickLabelFont property changes.
signal tickLabelFormatChanged¶
Emitted when the current formatter's output configuration changes.
signal tickLabelFormatterChanged¶
Emitted when the tickLabelFormatter property changes.
signal tickLabelPaddingChanged¶
Emitted when the tickLabelPadding property changes.
signal tickLabelRotationChanged¶
Emitted when the tickLabelRotation property changes.
signal tickLengthChanged¶
Emitted when the tickLength convenience property changes.
signal tickLengthInChanged¶
Emitted when the tickLengthIn property changes.
signal tickLengthOutChanged¶
Emitted when the tickLengthOut property changes.
signal tickWidthChanged¶
Emitted when the tickWidth property changes.
Public Functions Documentation¶
function AxisTicker¶
Constructs an AxisTicker with the given__parent .
function setSubtickColor¶
Sets the sub-tick color to c .
function setSubtickCount¶
Sets the sub-tick interval count to count .
function setSubtickLength¶
Sets both subtickLengthIn andsubtickLengthOut to__length .
function setSubtickLengthIn¶
Sets the inward sub-tick length to length .
function setSubtickLengthOut¶
Sets the outward sub-tick length to length .
function setSubtickWidth¶
Sets the sub-tick line width to width .
function setTickColor¶
Sets the major tick color to c .
function setTickCount¶
Sets the target major tick count to count .
function setTickLabelColor¶
Sets the tick-label color to c . An invalid color restores the tickColor fallback.
function setTickLabelFont¶
Sets the tick label font to f .
function setTickLabelFormatter¶
Sets the tick label formatter to formatter .
function setTickLabelPadding¶
Sets the tick label padding to padding .
function setTickLabelRotation¶
Sets the tick label rotation to rotation degrees.
function setTickLength¶
Sets both tickLengthIn andtickLengthOut to__length .
function setTickLengthIn¶
Sets the inward major tick length to length .
function setTickLengthOut¶
Sets the outward major tick length to length .
function setTickWidth¶
Sets the major tick line width to width .
function subtickColor¶
Returns the sub-tick color.
function subtickCount¶
Returns the sub-tick interval count.
function subtickLength¶
Returns the shared inward+outward sub-tick length (reads subtickLengthIn ).
function subtickLengthIn¶
Returns the inward sub-tick length.
function subtickLengthOut¶
Returns the outward sub-tick length.
function subtickWidth¶
Returns the sub-tick line width.
function tickColor¶
Returns the major tick color.
function tickCount¶
Returns the target number of major ticks.
function tickLabelColor¶
Returns the tick-label color, or an invalid color when it follows tickColor.
function tickLabelFont¶
Returns the tick label font.
function tickLabelFormatter¶
Returns the custom tick label formatter, or nullptr if using the default.
function tickLabelPadding¶
Returns the tick label padding.
function tickLabelRotation¶
Returns the tick label rotation in degrees.
function tickLength¶
Returns the shared inward+outward tick length (reads tickLengthIn ).
function tickLengthIn¶
Returns the inward major tick length.
function tickLengthOut¶
Returns the outward major tick length.
function tickWidth¶
Returns the major tick line width.
The documentation for this class was generated from the following file QAccelPlot/src/QAccelPlot/axis/AxisTicker.hpp