![]() |
KD Chart API Documentation
3.1
|
A set of attributes controlling the appearance of axis rulers. More...
#include <KDChartRulerAttributes.h>
Public Types | |
typedef QMap< qreal, QPen > | TickMarkerPensMap |
A set of attributes controlling the appearance of axis rulers.
Definition at line 27 of file KDChartRulerAttributes.h.
typedef QMap<qreal, QPen> KDChart::RulerAttributes::TickMarkerPensMap |
Definition at line 64 of file KDChartRulerAttributes.h.
RulerAttributes::RulerAttributes | ( | ) |
Definition at line 74 of file KDChartRulerAttributes.cpp.
RulerAttributes::RulerAttributes | ( | const RulerAttributes & | r | ) |
Definition at line 80 of file KDChartRulerAttributes.cpp.
RulerAttributes::~RulerAttributes | ( | ) |
Definition at line 252 of file KDChartRulerAttributes.cpp.
bool RulerAttributes::hasTickMarkPenAt | ( | qreal | value | ) | const |
Definition at line 149 of file KDChartRulerAttributes.cpp.
References d.
Referenced by KDChart::CartesianAxis::paintCtx().
int RulerAttributes::labelMargin | ( | ) | const |
Definition at line 195 of file KDChartRulerAttributes.cpp.
References d.
Referenced by KDChart::CartesianAxis::paintCtx().
int RulerAttributes::majorTickMarkLength | ( | ) | const |
Definition at line 206 of file KDChartRulerAttributes.cpp.
References d.
Referenced by KDChart::CartesianAxis::tickLength().
bool RulerAttributes::majorTickMarkLengthIsSet | ( | ) | const |
Definition at line 211 of file KDChartRulerAttributes.cpp.
References d.
Referenced by operator==().
QPen RulerAttributes::majorTickMarkPen | ( | ) | const |
Definition at line 106 of file KDChartRulerAttributes.cpp.
References d.
Referenced by operator<<(), operator==(), and KDChart::CartesianAxis::paintCtx().
bool RulerAttributes::majorTickMarkPenIsSet | ( | ) | const |
Definition at line 101 of file KDChartRulerAttributes.cpp.
References d.
Referenced by operator==().
int RulerAttributes::minorTickMarkLength | ( | ) | const |
Definition at line 222 of file KDChartRulerAttributes.cpp.
References d.
Referenced by KDChart::CartesianAxis::tickLength().
bool RulerAttributes::minorTickMarkLengthIsSet | ( | ) | const |
Definition at line 227 of file KDChartRulerAttributes.cpp.
References d.
Referenced by operator==().
QPen RulerAttributes::minorTickMarkPen | ( | ) | const |
Definition at line 122 of file KDChartRulerAttributes.cpp.
References d.
Referenced by operator<<(), operator==(), and KDChart::CartesianAxis::paintCtx().
bool RulerAttributes::minorTickMarkPenIsSet | ( | ) | const |
Definition at line 117 of file KDChartRulerAttributes.cpp.
References d.
Referenced by operator==().
|
inline |
Definition at line 120 of file KDChartRulerAttributes.h.
References KDChart::operator==().
RulerAttributes & RulerAttributes::operator= | ( | const RulerAttributes & | r | ) |
Definition at line 242 of file KDChartRulerAttributes.cpp.
References d.
bool RulerAttributes::operator== | ( | const RulerAttributes & | r | ) | const |
Definition at line 258 of file KDChartRulerAttributes.cpp.
References d, majorTickMarkLengthIsSet(), majorTickMarkPen(), majorTickMarkPenIsSet(), minorTickMarkLengthIsSet(), minorTickMarkPen(), minorTickMarkPenIsSet(), showFirstTick(), showMajorTickMarks(), showMinorTickMarks(), showRulerLine(), 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 190 of file KDChartRulerAttributes.cpp.
References d.
void RulerAttributes::setMajorTickMarkLength | ( | int | length | ) |
Sets the length of major tick marks
Definition at line 200 of file KDChartRulerAttributes.cpp.
References d.
void RulerAttributes::setMajorTickMarkPen | ( | const QPen & | pen | ) |
Sets the pen used to draw major tick marks
Definition at line 95 of file KDChartRulerAttributes.cpp.
References d.
void RulerAttributes::setMinorTickMarkLength | ( | int | length | ) |
Sets the length of minor tick marks
Definition at line 216 of file KDChartRulerAttributes.cpp.
References d.
void RulerAttributes::setMinorTickMarkPen | ( | const QPen & | pen | ) |
Sets the pen used to draw minor tick marks
Definition at line 111 of file KDChartRulerAttributes.cpp.
References d.
void RulerAttributes::setShowFirstTick | ( | bool | show | ) |
Shows or hides the first tick. This is usually where the axes cross. The tick itself may be obscured by the other axis, but the label will be visible.
Definition at line 232 of file KDChartRulerAttributes.cpp.
References d.
void RulerAttributes::setShowMajorTickMarks | ( | bool | show | ) |
Shows or hides major tick marks
Definition at line 170 of file KDChartRulerAttributes.cpp.
References d.
void RulerAttributes::setShowMinorTickMarks | ( | bool | show | ) |
Shows or hides minor tick marks
Definition at line 180 of file KDChartRulerAttributes.cpp.
References d.
void RulerAttributes::setShowRulerLine | ( | bool | show | ) |
Definition at line 274 of file KDChartRulerAttributes.cpp.
References d.
void RulerAttributes::setTickMarkColor | ( | const QColor & | color | ) |
Color setter method provided for convenience
Definition at line 160 of file KDChartRulerAttributes.cpp.
References d.
void RulerAttributes::setTickMarkPen | ( | const QPen & | pen | ) |
Sets the pen used to draw the tick marks
Definition at line 85 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 127 of file KDChartRulerAttributes.cpp.
References d.
bool RulerAttributes::showFirstTick | ( | ) | const |
Definition at line 237 of file KDChartRulerAttributes.cpp.
References d.
Referenced by operator==(), and KDChart::CartesianAxis::paintCtx().
bool RulerAttributes::showMajorTickMarks | ( | ) | const |
Definition at line 175 of file KDChartRulerAttributes.cpp.
References d.
Referenced by operator==().
bool RulerAttributes::showMinorTickMarks | ( | ) | const |
Definition at line 185 of file KDChartRulerAttributes.cpp.
References d.
Referenced by operator==().
bool RulerAttributes::showRulerLine | ( | ) | const |
Definition at line 279 of file KDChartRulerAttributes.cpp.
References d.
Referenced by operator==().
QColor RulerAttributes::tickMarkColor | ( | ) | const |
Definition at line 165 of file KDChartRulerAttributes.cpp.
References d.
QPen RulerAttributes::tickMarkPen | ( | ) | const |
Definition at line 90 of file KDChartRulerAttributes.cpp.
References d.
Referenced by operator<<(), operator==(), and KDChart::CartesianAxis::paintCtx().
QPen RulerAttributes::tickMarkPen | ( | qreal | value | ) | const |
Definition at line 133 of file KDChartRulerAttributes.cpp.
References d.
RulerAttributes::TickMarkerPensMap RulerAttributes::tickMarkPens | ( | ) | const |
Definition at line 144 of file KDChartRulerAttributes.cpp.
References d.
Referenced by operator<<().