|
KD Chart 2
[rev.2.5]
|
A set of attributes controlling the appearance of axis rulers. More...
#include <KDChartRulerAttributes.h>
Public Types | |
| typedef QMap< qreal, QPen > | TickMarkerPensMap |
Public Member Functions | |
| bool | hasTickMarkPenAt (qreal value) const |
| int | labelMargin () const |
| int | majorTickMarkLength () const |
| bool | majorTickMarkLengthIsSet () const |
| QPen | majorTickMarkPen () const |
| bool | majorTickMarkPenIsSet () const |
| int | minorTickMarkLength () const |
| bool | minorTickMarkLengthIsSet () const |
| QPen | minorTickMarkPen () const |
| bool | minorTickMarkPenIsSet () const |
| bool | operator!= (const RulerAttributes &other) const |
| RulerAttributes & | operator= (const RulerAttributes &) |
| bool | operator== (const RulerAttributes &) const |
| RulerAttributes () | |
| RulerAttributes (const RulerAttributes &) | |
| void | setLabelMargin (int margin) |
| Set margin that should be used between the labels and the ticks. | |
| void | setMajorTickMarkLength (int length) |
| Sets the length of major tick marks. | |
| void | setMajorTickMarkPen (const QPen &pen) |
| Sets the pen used to draw major tick marks. | |
| void | setMinorTickMarkLength (int length) |
| Sets the length of minor tick marks. | |
| void | setMinorTickMarkPen (const QPen &pen) |
| Sets the pen used to draw minor tick marks. | |
| void | setShowMajorTickMarks (bool show) |
| Shows or hides major tick marks. | |
| void | setShowMinorTickMarks (bool show) |
| Shows or hides minor tick marks. | |
| void | setShowRulerLine (bool show) |
| void | setShowZeroLabel (bool show) |
| Shows or hides the label for the zero value. | |
| void | setTickMarkColor (const QColor &color) |
| Color setter method provided for convenience. | |
| void | setTickMarkPen (const QPen &pen) |
| Sets the pen used to draw the tick marks. | |
| void | setTickMarkPen (qreal value, const QPen &pen) |
| Sets the pen used to draw the tick mark at a specific value. | |
| bool | showMajorTickMarks () const |
| bool | showMinorTickMarks () const |
| bool | showRulerLine () const |
| bool | showZeroLabel () const |
| QColor | tickMarkColor () const |
| QPen | tickMarkPen () const |
| QPen | tickMarkPen (qreal value) const |
| TickMarkerPensMap | tickMarkPens () const |
| ~RulerAttributes () | |
A set of attributes controlling the appearance of axis rulers.
Definition at line 39 of file KDChartRulerAttributes.h.
| typedef QMap<qreal, QPen> KDChart::RulerAttributes::TickMarkerPensMap |
Definition at line 76 of file KDChartRulerAttributes.h.
| RulerAttributes::RulerAttributes | ( | ) |
Definition at line 90 of file KDChartRulerAttributes.cpp.
| RulerAttributes::RulerAttributes | ( | const RulerAttributes & | r | ) |
Definition at line 96 of file KDChartRulerAttributes.cpp.
| RulerAttributes::~RulerAttributes | ( | ) |
Definition at line 268 of file KDChartRulerAttributes.cpp.
| bool RulerAttributes::hasTickMarkPenAt | ( | qreal | value | ) | const |
Definition at line 165 of file KDChartRulerAttributes.cpp.
References d.
Referenced by KDChart::CartesianAxis::paintCtx().
| int RulerAttributes::labelMargin | ( | ) | const |
Definition at line 211 of file KDChartRulerAttributes.cpp.
References d.
Referenced by KDChart::CartesianAxis::paintCtx().
| int RulerAttributes::majorTickMarkLength | ( | ) | const |
Definition at line 222 of file KDChartRulerAttributes.cpp.
References d.
Referenced by KDChart::CartesianAxis::tickLength().
| bool RulerAttributes::majorTickMarkLengthIsSet | ( | ) | const |
Definition at line 227 of file KDChartRulerAttributes.cpp.
References d.
| QPen RulerAttributes::majorTickMarkPen | ( | ) | const |
Definition at line 122 of file KDChartRulerAttributes.cpp.
References d.
Referenced by operator<<(), operator==(), and KDChart::CartesianAxis::paintCtx().
| bool RulerAttributes::majorTickMarkPenIsSet | ( | ) | const |
Definition at line 117 of file KDChartRulerAttributes.cpp.
References d.
| int RulerAttributes::minorTickMarkLength | ( | ) | const |
Definition at line 238 of file KDChartRulerAttributes.cpp.
References d.
Referenced by KDChart::CartesianAxis::tickLength().
| bool RulerAttributes::minorTickMarkLengthIsSet | ( | ) | const |
Definition at line 243 of file KDChartRulerAttributes.cpp.
References d.
| QPen RulerAttributes::minorTickMarkPen | ( | ) | const |
Definition at line 138 of file KDChartRulerAttributes.cpp.
References d.
Referenced by operator<<(), operator==(), and KDChart::CartesianAxis::paintCtx().
| bool RulerAttributes::minorTickMarkPenIsSet | ( | ) | const |
Definition at line 133 of file KDChartRulerAttributes.cpp.
References d.
| bool KDChart::RulerAttributes::operator!= | ( | const RulerAttributes & | other | ) | const |
Definition at line 131 of file KDChartRulerAttributes.h.
References KDGantt::operator==().
| RulerAttributes & RulerAttributes::operator= | ( | const RulerAttributes & | r | ) |
Definition at line 258 of file KDChartRulerAttributes.cpp.
References d.
| bool RulerAttributes::operator== | ( | const RulerAttributes & | r | ) | const |
Definition at line 274 of file KDChartRulerAttributes.cpp.
References d, majorTickMarkPen(), minorTickMarkPen(), and tickMarkPen().
| void RulerAttributes::setLabelMargin | ( | int | margin | ) |
Set margin that should be used between the labels and the ticks.
By default the value is -1, which means that half of the label's font height/width should be used as margin.
Definition at line 206 of file KDChartRulerAttributes.cpp.
References d.
| void RulerAttributes::setMajorTickMarkLength | ( | int | length | ) |
Sets the length of major tick marks.
Definition at line 216 of file KDChartRulerAttributes.cpp.
References d.
| void RulerAttributes::setMajorTickMarkPen | ( | const QPen & | pen | ) |
Sets the pen used to draw major tick marks.
Definition at line 111 of file KDChartRulerAttributes.cpp.
References d.
| void RulerAttributes::setMinorTickMarkLength | ( | int | length | ) |
Sets the length of minor tick marks.
Definition at line 232 of file KDChartRulerAttributes.cpp.
References d.
| void RulerAttributes::setMinorTickMarkPen | ( | const QPen & | pen | ) |
Sets the pen used to draw minor tick marks.
Definition at line 127 of file KDChartRulerAttributes.cpp.
References d.
| void RulerAttributes::setShowMajorTickMarks | ( | bool | show | ) |
Shows or hides major tick marks.
Definition at line 186 of file KDChartRulerAttributes.cpp.
References d.
| void RulerAttributes::setShowMinorTickMarks | ( | bool | show | ) |
Shows or hides minor tick marks.
Definition at line 196 of file KDChartRulerAttributes.cpp.
References d.
| void RulerAttributes::setShowRulerLine | ( | bool | show | ) |
Definition at line 291 of file KDChartRulerAttributes.cpp.
References d.
| void RulerAttributes::setShowZeroLabel | ( | bool | show | ) |
Shows or hides the label for the zero value.
Definition at line 248 of file KDChartRulerAttributes.cpp.
References d.
Referenced by KDChart::CartesianAxis::paintCtx().
| void RulerAttributes::setTickMarkColor | ( | const QColor & | color | ) |
Color setter method provided for convenience.
Definition at line 176 of file KDChartRulerAttributes.cpp.
References d.
| void RulerAttributes::setTickMarkPen | ( | const QPen & | pen | ) |
Sets the pen used to draw the tick marks.
Definition at line 101 of file KDChartRulerAttributes.cpp.
References d.
| void RulerAttributes::setTickMarkPen | ( | qreal | value, |
| const QPen & | pen | ||
| ) |
Sets the pen used to draw the tick mark at a specific value.
Note: This will not paint a tick mark at the specified value if it wasn't already drawn before.
Definition at line 143 of file KDChartRulerAttributes.cpp.
References d.
| bool RulerAttributes::showMajorTickMarks | ( | ) | const |
Definition at line 191 of file KDChartRulerAttributes.cpp.
References d.
| bool RulerAttributes::showMinorTickMarks | ( | ) | const |
Definition at line 201 of file KDChartRulerAttributes.cpp.
References d.
| bool RulerAttributes::showRulerLine | ( | ) | const |
Definition at line 296 of file KDChartRulerAttributes.cpp.
References d.
| bool RulerAttributes::showZeroLabel | ( | ) | const |
Definition at line 253 of file KDChartRulerAttributes.cpp.
References d.
Referenced by KDChart::CartesianAxis::paintCtx().
| QColor RulerAttributes::tickMarkColor | ( | ) | const |
Definition at line 181 of file KDChartRulerAttributes.cpp.
References d.
| QPen RulerAttributes::tickMarkPen | ( | ) | const |
Definition at line 106 of file KDChartRulerAttributes.cpp.
References d.
Referenced by operator<<(), operator==(), and KDChart::CartesianAxis::paintCtx().
| QPen RulerAttributes::tickMarkPen | ( | qreal | value | ) | const |
Definition at line 149 of file KDChartRulerAttributes.cpp.
References d.
| RulerAttributes::TickMarkerPensMap RulerAttributes::tickMarkPens | ( | ) | const |
Definition at line 160 of file KDChartRulerAttributes.cpp.
References d.
Referenced by operator<<().