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 | setTickMarkColor (const QColor &color) |
Color setter method provided for convenience. | |
void | setTickMarkPen (qreal value, const QPen &pen) |
Sets the pen used to draw the tick mark at a specific value. | |
void | setTickMarkPen (const QPen &pen) |
Sets the pen used to draw the tick marks. | |
bool | showMajorTickMarks () const |
bool | showMinorTickMarks () const |
QColor | tickMarkColor () const |
QPen | tickMarkPen (qreal value) const |
QPen | tickMarkPen () 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 75 of file KDChartRulerAttributes.cpp.
RulerAttributes::RulerAttributes | ( | const RulerAttributes & | r | ) |
Definition at line 81 of file KDChartRulerAttributes.cpp.
RulerAttributes::~RulerAttributes | ( | ) |
Definition at line 211 of file KDChartRulerAttributes.cpp.
bool RulerAttributes::hasTickMarkPenAt | ( | qreal | value | ) | const |
Definition at line 150 of file KDChartRulerAttributes.cpp.
References d.
Referenced by KDChart::CartesianAxis::paintCtx().
int RulerAttributes::labelMargin | ( | ) | const |
Definition at line 196 of file KDChartRulerAttributes.cpp.
References d.
Referenced by KDChart::CartesianAxis::paintCtx().
QPen RulerAttributes::majorTickMarkPen | ( | ) | const |
Definition at line 107 of file KDChartRulerAttributes.cpp.
References d.
Referenced by operator<<(), operator==(), and KDChart::CartesianAxis::paintCtx().
bool RulerAttributes::majorTickMarkPenIsSet | ( | ) | const |
Definition at line 102 of file KDChartRulerAttributes.cpp.
References d.
QPen RulerAttributes::minorTickMarkPen | ( | ) | const |
Definition at line 123 of file KDChartRulerAttributes.cpp.
References d.
Referenced by operator<<(), and operator==().
bool RulerAttributes::minorTickMarkPenIsSet | ( | ) | const |
Definition at line 118 of file KDChartRulerAttributes.cpp.
References d.
bool KDChart::RulerAttributes::operator!= | ( | const RulerAttributes & | other | ) | const |
Definition at line 106 of file KDChartRulerAttributes.h.
References KDGantt::operator==().
RulerAttributes & RulerAttributes::operator= | ( | const RulerAttributes & | r | ) |
Definition at line 201 of file KDChartRulerAttributes.cpp.
References d.
bool RulerAttributes::operator== | ( | const RulerAttributes & | r | ) | const |
Definition at line 217 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 191 of file KDChartRulerAttributes.cpp.
References d.
void RulerAttributes::setMajorTickMarkPen | ( | const QPen & | pen | ) |
Sets the pen used to draw major tick marks.
Definition at line 96 of file KDChartRulerAttributes.cpp.
References d.
void RulerAttributes::setMinorTickMarkPen | ( | const QPen & | pen | ) |
Sets the pen used to draw minor tick marks.
Definition at line 112 of file KDChartRulerAttributes.cpp.
References d.
void RulerAttributes::setShowMajorTickMarks | ( | bool | show | ) |
Shows or hides major tick marks.
Definition at line 171 of file KDChartRulerAttributes.cpp.
References d.
void RulerAttributes::setShowMinorTickMarks | ( | bool | show | ) |
Shows or hides minor tick marks.
Definition at line 181 of file KDChartRulerAttributes.cpp.
References d.
void RulerAttributes::setTickMarkColor | ( | const QColor & | color | ) |
Color setter method provided for convenience.
Definition at line 161 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 128 of file KDChartRulerAttributes.cpp.
References d.
void RulerAttributes::setTickMarkPen | ( | const QPen & | pen | ) |
Sets the pen used to draw the tick marks.
Definition at line 86 of file KDChartRulerAttributes.cpp.
References d.
bool RulerAttributes::showMajorTickMarks | ( | ) | const |
Definition at line 176 of file KDChartRulerAttributes.cpp.
References d.
Referenced by KDChart::CartesianAxis::paintCtx().
bool RulerAttributes::showMinorTickMarks | ( | ) | const |
Definition at line 186 of file KDChartRulerAttributes.cpp.
References d.
Referenced by KDChart::CartesianAxis::paintCtx().
QColor RulerAttributes::tickMarkColor | ( | ) | const |
Definition at line 166 of file KDChartRulerAttributes.cpp.
References d.
QPen RulerAttributes::tickMarkPen | ( | qreal | value | ) | const |
Definition at line 134 of file KDChartRulerAttributes.cpp.
References d.
QPen RulerAttributes::tickMarkPen | ( | ) | const |
Definition at line 91 of file KDChartRulerAttributes.cpp.
References d.
Referenced by operator<<(), operator==(), and KDChart::CartesianAxis::paintCtx().
RulerAttributes::TickMarkerPensMap RulerAttributes::tickMarkPens | ( | ) | const |
Definition at line 145 of file KDChartRulerAttributes.cpp.
References d.
Referenced by operator<<().