KDChart::MarkerAttributes Class Reference

A set of ottributes controlling the appearance of data set markers. More...

#include <KDChartMarkerAttributes.h>

List of all members.

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, MarkerStyleMarkerStylesMap

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
MarkerAttributesoperator= (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 ()

Detailed Description

A set of ottributes controlling the appearance of data set markers.

Definition at line 40 of file KDChartMarkerAttributes.h.


Member Typedef Documentation

Definition at line 62 of file KDChartMarkerAttributes.h.


Member Enumeration Documentation

Enumerator:
MarkerCircle 
MarkerSquare 
MarkerDiamond 
Marker1Pixel 
Marker4Pixels 
MarkerRing 
MarkerCross 
MarkerFastCross 
NoMarker 

Definition at line 49 of file KDChartMarkerAttributes.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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
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
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().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products
http://www.kdab.com/
http://www.kdab.com/products/kd-chart/