A set of ottributes controlling the appearance of data set markers. More...
#include <KDChartMarkerAttributes.h>
Public Types | |
enum | MarkerStyle { MarkerCircle = 0, MarkerSquare = 1, MarkerDiamond = 2, Marker1Pixel = 3, Marker4Pixels = 4, MarkerRing = 5, MarkerCross = 6, MarkerFastCross = 7, NoMarker = 8 } |
typedef QMap< uint, MarkerStyle > | MarkerStylesMap |
Public Member Functions | |
bool | isVisible () const |
MarkerAttributes (const MarkerAttributes &) | |
MarkerAttributes () | |
QColor | markerColor () const |
QSizeF | markerSize () const |
MarkerStyle | markerStyle () const |
MarkerStylesMap | markerStylesMap () const |
bool | operator!= (const MarkerAttributes &) const |
MarkerAttributes & | operator= (const MarkerAttributes &) |
bool | operator== (const MarkerAttributes &) const |
QPen | pen () const |
void | setMarkerColor (const QColor &color) |
void | setMarkerSize (const QSizeF &size) |
Normally you need to specify a valid QSizeF here, but for Legends you can use the invalid size QSizeF(), to enable automatic marker size calculation: | |
void | setMarkerStyle (MarkerStyle style) |
void | setMarkerStylesMap (const MarkerStylesMap &map) |
void | setPen (const QPen &pen) |
void | setVisible (bool visible) |
~MarkerAttributes () |
A set of ottributes controlling the appearance of data set markers.
Definition at line 40 of file KDChartMarkerAttributes.h.
typedef QMap<uint, MarkerStyle> KDChart::MarkerAttributes::MarkerStylesMap |
Definition at line 62 of file KDChartMarkerAttributes.h.
MarkerCircle | |
MarkerSquare | |
MarkerDiamond | |
Marker1Pixel | |
Marker4Pixels | |
MarkerRing | |
MarkerCross | |
MarkerFastCross | |
NoMarker |
Definition at line 49 of file KDChartMarkerAttributes.h.
MarkerAttributes::MarkerAttributes | ( | ) |
Definition at line 58 of file KDChartMarkerAttributes.cpp.
MarkerAttributes::MarkerAttributes | ( | const MarkerAttributes & | r | ) |
Definition at line 64 of file KDChartMarkerAttributes.cpp.
MarkerAttributes::~MarkerAttributes | ( | ) |
Definition at line 77 of file KDChartMarkerAttributes.cpp.
bool MarkerAttributes::isVisible | ( | ) | const |
Definition at line 111 of file KDChartMarkerAttributes.cpp.
References d.
Referenced by operator<<(), operator==(), and KDChart::AbstractDiagram::paintMarker().
QColor MarkerAttributes::markerColor | ( | ) | const |
Definition at line 151 of file KDChartMarkerAttributes.cpp.
References d.
Referenced by operator<<(), operator==(), and KDChart::AbstractDiagram::paintMarker().
QSizeF MarkerAttributes::markerSize | ( | ) | const |
Definition at line 141 of file KDChartMarkerAttributes.cpp.
References d.
Referenced by operator==(), KDChart::LineWithMarkerLayoutItem::paint(), KDChart::MarkerLayoutItem::paintIntoRect(), KDChart::AbstractDiagram::paintMarker(), KDChart::LineWithMarkerLayoutItem::sizeHint(), and KDChart::MarkerLayoutItem::sizeHint().
MarkerAttributes::MarkerStyle MarkerAttributes::markerStyle | ( | ) | const |
Definition at line 131 of file KDChartMarkerAttributes.cpp.
References d.
Referenced by operator<<(), operator==(), and KDChart::AbstractDiagram::paintMarker().
MarkerAttributes::MarkerStylesMap MarkerAttributes::markerStylesMap | ( | ) | const |
Definition at line 121 of file KDChartMarkerAttributes.cpp.
References d.
Referenced by operator<<(), and operator==().
bool KDChart::MarkerAttributes::operator!= | ( | const MarkerAttributes & | other | ) | const |
Definition at line 92 of file KDChartMarkerAttributes.h.
References operator==().
MarkerAttributes & MarkerAttributes::operator= | ( | const MarkerAttributes & | r | ) |
Definition at line 70 of file KDChartMarkerAttributes.cpp.
bool MarkerAttributes::operator== | ( | const MarkerAttributes & | r | ) | const |
Definition at line 84 of file KDChartMarkerAttributes.cpp.
References isVisible(), markerColor(), markerSize(), markerStyle(), markerStylesMap(), and pen().
Referenced by operator!=().
QPen MarkerAttributes::pen | ( | ) | const |
Definition at line 161 of file KDChartMarkerAttributes.cpp.
References d.
Referenced by operator<<(), operator==(), and KDChart::AbstractDiagram::paintMarker().
void MarkerAttributes::setMarkerColor | ( | const QColor & | color | ) |
Definition at line 146 of file KDChartMarkerAttributes.cpp.
References d.
void MarkerAttributes::setMarkerSize | ( | const QSizeF & | size | ) |
Normally you need to specify a valid QSizeF here, but for Legends you can use the invalid size QSizeF(), to enable automatic marker size calculation:
For Markers shown in a Legend this means the marker size will be equal to the font height used for the labels that are shown next to the markers.
Definition at line 136 of file KDChartMarkerAttributes.cpp.
References d.
void MarkerAttributes::setMarkerStyle | ( | MarkerStyle | style | ) |
Definition at line 126 of file KDChartMarkerAttributes.cpp.
References d.
Referenced by KDChart::TernaryLineDiagram::TernaryLineDiagram().
void MarkerAttributes::setMarkerStylesMap | ( | const MarkerStylesMap & | map | ) |
Definition at line 116 of file KDChartMarkerAttributes.cpp.
References d.
void MarkerAttributes::setPen | ( | const QPen & | pen | ) |
Definition at line 156 of file KDChartMarkerAttributes.cpp.
References d.
void MarkerAttributes::setVisible | ( | bool | visible | ) |
Definition at line 106 of file KDChartMarkerAttributes.cpp.
References d.
Referenced by KDChart::TernaryLineDiagram::TernaryLineDiagram().