|
KD Chart 2 [rev.2.4]
|
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 |
| QPen | majorTickMarkPen () const |
| bool | majorTickMarkPenIsSet () const |
| QPen | minorTickMarkPen () const |
| bool | minorTickMarkPenIsSet () const |
| bool | operator!= (const RulerAttributes &other) const |
| RulerAttributes & | operator= (const RulerAttributes &) |
| bool | operator== (const RulerAttributes &) const |
| RulerAttributes (const RulerAttributes &) | |
| RulerAttributes () | |
| void | setLabelMargin (int margin) |
| Set margin that should be used between the labals and the ticks. | |
| void | setMajorTickMarkPen (const QPen &pen) |
| Sets the pen used to draw major 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 | 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 |
| 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 37 of file KDChartRulerAttributes.h.
| typedef QMap<qreal, QPen> KDChart::RulerAttributes::TickMarkerPensMap |
Definition at line 74 of file KDChartRulerAttributes.h.
| RulerAttributes::RulerAttributes | ( | ) |
Definition at line 78 of file KDChartRulerAttributes.cpp.
| RulerAttributes::RulerAttributes | ( | const RulerAttributes & | r | ) |
Definition at line 84 of file KDChartRulerAttributes.cpp.
| RulerAttributes::~RulerAttributes | ( | ) |
Definition at line 214 of file KDChartRulerAttributes.cpp.
| bool RulerAttributes::hasTickMarkPenAt | ( | qreal | value | ) | const |
Definition at line 153 of file KDChartRulerAttributes.cpp.
References d.
Referenced by KDChart::CartesianAxis::paintCtx().
| int RulerAttributes::labelMargin | ( | ) | const |
Definition at line 199 of file KDChartRulerAttributes.cpp.
References d.
Referenced by KDChart::CartesianAxis::paintCtx().
| QPen RulerAttributes::majorTickMarkPen | ( | ) | const |
Definition at line 110 of file KDChartRulerAttributes.cpp.
References d.
Referenced by operator<<(), operator==(), and KDChart::CartesianAxis::paintCtx().
| bool RulerAttributes::majorTickMarkPenIsSet | ( | ) | const |
Definition at line 105 of file KDChartRulerAttributes.cpp.
References d.
| QPen RulerAttributes::minorTickMarkPen | ( | ) | const |
Definition at line 126 of file KDChartRulerAttributes.cpp.
References d.
Referenced by operator<<(), and operator==().
| bool RulerAttributes::minorTickMarkPenIsSet | ( | ) | const |
Definition at line 121 of file KDChartRulerAttributes.cpp.
References d.
| bool KDChart::RulerAttributes::operator!= | ( | const RulerAttributes & | other | ) | const |
Definition at line 109 of file KDChartRulerAttributes.h.
References KDGantt::operator==().
| RulerAttributes & RulerAttributes::operator= | ( | const RulerAttributes & | r | ) |
Definition at line 204 of file KDChartRulerAttributes.cpp.
References d.
| bool RulerAttributes::operator== | ( | const RulerAttributes & | r | ) | const |
Definition at line 220 of file KDChartRulerAttributes.cpp.
References d, majorTickMarkPen(), minorTickMarkPen(), and tickMarkPen().
| void RulerAttributes::setLabelMargin | ( | int | margin | ) |
Set margin that should be used between the labals and the ticks.
Per default the value is -1 what means, that half of the label's font height/width should be used as margin.
Definition at line 194 of file KDChartRulerAttributes.cpp.
References d.
| void RulerAttributes::setMajorTickMarkPen | ( | const QPen & | pen | ) |
Sets the pen used to draw major tick marks.
Definition at line 99 of file KDChartRulerAttributes.cpp.
References d.
| void RulerAttributes::setMinorTickMarkPen | ( | const QPen & | pen | ) |
Sets the pen used to draw minor tick marks.
Definition at line 115 of file KDChartRulerAttributes.cpp.
References d.
| void RulerAttributes::setShowMajorTickMarks | ( | bool | show | ) |
Shows or hides major tick marks.
Definition at line 174 of file KDChartRulerAttributes.cpp.
References d.
| void RulerAttributes::setShowMinorTickMarks | ( | bool | show | ) |
Shows or hides minor tick marks.
Definition at line 184 of file KDChartRulerAttributes.cpp.
References d.
| void RulerAttributes::setShowRulerLine | ( | bool | show | ) |
Definition at line 237 of file KDChartRulerAttributes.cpp.
References d.
| void RulerAttributes::setTickMarkColor | ( | const QColor & | color | ) |
Color setter method provided for convenience.
Definition at line 164 of file KDChartRulerAttributes.cpp.
References d.
| void RulerAttributes::setTickMarkPen | ( | const QPen & | pen | ) |
Sets the pen used to draw the tick marks.
Definition at line 89 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 131 of file KDChartRulerAttributes.cpp.
References d.
| bool RulerAttributes::showMajorTickMarks | ( | ) | const |
Definition at line 179 of file KDChartRulerAttributes.cpp.
References d.
Referenced by KDChart::CartesianAxis::paintCtx().
| bool RulerAttributes::showMinorTickMarks | ( | ) | const |
Definition at line 189 of file KDChartRulerAttributes.cpp.
References d.
Referenced by KDChart::CartesianAxis::paintCtx().
| bool RulerAttributes::showRulerLine | ( | ) | const |
Definition at line 242 of file KDChartRulerAttributes.cpp.
References d.
Referenced by KDChart::CartesianAxis::paintCtx().
| QColor RulerAttributes::tickMarkColor | ( | ) | const |
Definition at line 169 of file KDChartRulerAttributes.cpp.
References d.
| QPen RulerAttributes::tickMarkPen | ( | qreal | value | ) | const |
Definition at line 137 of file KDChartRulerAttributes.cpp.
References d.
| QPen RulerAttributes::tickMarkPen | ( | ) | const |
Definition at line 94 of file KDChartRulerAttributes.cpp.
References d.
Referenced by operator<<(), operator==(), and KDChart::CartesianAxis::paintCtx().
| RulerAttributes::TickMarkerPensMap RulerAttributes::tickMarkPens | ( | ) | const |
Definition at line 148 of file KDChartRulerAttributes.cpp.
References d.
Referenced by operator<<().