KD Chart API Documentation 3.1
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
KDChart::RulerAttributes Class Reference

A set of attributes controlling the appearance of axis rulers. More...

#include <KDChartRulerAttributes.h>

Public Types

typedef QMap< qreal, QPenTickMarkerPensMap
 

Public Member Functions

 RulerAttributes ()
 
 RulerAttributes (const RulerAttributes &)
 
 ~RulerAttributes ()
 
bool hasTickMarkPenAt (qreal value) const
 
int labelMargin () const
 
int majorTickMarkLength () const
 
bool majorTickMarkLengthIsSet () const
 
QPen majorTickMarkPen () const
 
bool majorTickMarkPenIsSet () const
 
int minorTickMarkLength () const
 
bool minorTickMarkLengthIsSet () const
 
QPen minorTickMarkPen () const
 
bool minorTickMarkPenIsSet () const
 
bool operator!= (const RulerAttributes &other) const
 
RulerAttributesoperator= (const RulerAttributes &)
 
bool operator== (const RulerAttributes &) const
 
void setLabelMargin (int margin)
 
void setMajorTickMarkLength (int length)
 
void setMajorTickMarkPen (const QPen &pen)
 
void setMinorTickMarkLength (int length)
 
void setMinorTickMarkPen (const QPen &pen)
 
void setShowFirstTick (bool show)
 
void setShowMajorTickMarks (bool show)
 
void setShowMinorTickMarks (bool show)
 
void setShowRulerLine (bool show)
 
void setTickMarkColor (const QColor &color)
 
void setTickMarkPen (const QPen &pen)
 
void setTickMarkPen (qreal value, const QPen &pen)
 
bool showFirstTick () const
 
bool showMajorTickMarks () const
 
bool showMinorTickMarks () const
 
bool showRulerLine () const
 
QColor tickMarkColor () const
 
QPen tickMarkPen () const
 
QPen tickMarkPen (qreal value) const
 
TickMarkerPensMap tickMarkPens () const
 

Detailed Description

A set of attributes controlling the appearance of axis rulers.

Definition at line 27 of file KDChartRulerAttributes.h.

Member Typedef Documentation

◆ TickMarkerPensMap

Definition at line 64 of file KDChartRulerAttributes.h.

Constructor & Destructor Documentation

◆ RulerAttributes() [1/2]

RulerAttributes::RulerAttributes ( )

Definition at line 74 of file KDChartRulerAttributes.cpp.

◆ RulerAttributes() [2/2]

RulerAttributes::RulerAttributes ( const RulerAttributes r)

Definition at line 80 of file KDChartRulerAttributes.cpp.

◆ ~RulerAttributes()

RulerAttributes::~RulerAttributes ( )

Definition at line 252 of file KDChartRulerAttributes.cpp.

Member Function Documentation

◆ hasTickMarkPenAt()

bool RulerAttributes::hasTickMarkPenAt ( qreal  value) const

◆ labelMargin()

int RulerAttributes::labelMargin ( ) const

Definition at line 195 of file KDChartRulerAttributes.cpp.

References d.

◆ majorTickMarkLength()

int RulerAttributes::majorTickMarkLength ( ) const

Definition at line 206 of file KDChartRulerAttributes.cpp.

References d.

◆ majorTickMarkLengthIsSet()

bool RulerAttributes::majorTickMarkLengthIsSet ( ) const

Definition at line 211 of file KDChartRulerAttributes.cpp.

References d.

Referenced by operator==().

◆ majorTickMarkPen()

QPen RulerAttributes::majorTickMarkPen ( ) const

Definition at line 106 of file KDChartRulerAttributes.cpp.

References d.

Referenced by operator<<(), and operator==().

◆ majorTickMarkPenIsSet()

bool RulerAttributes::majorTickMarkPenIsSet ( ) const

Definition at line 101 of file KDChartRulerAttributes.cpp.

References d.

Referenced by operator==().

◆ minorTickMarkLength()

int RulerAttributes::minorTickMarkLength ( ) const

Definition at line 222 of file KDChartRulerAttributes.cpp.

References d.

◆ minorTickMarkLengthIsSet()

bool RulerAttributes::minorTickMarkLengthIsSet ( ) const

Definition at line 227 of file KDChartRulerAttributes.cpp.

References d.

Referenced by operator==().

◆ minorTickMarkPen()

QPen RulerAttributes::minorTickMarkPen ( ) const

Definition at line 122 of file KDChartRulerAttributes.cpp.

References d.

Referenced by operator<<(), and operator==().

◆ minorTickMarkPenIsSet()

bool RulerAttributes::minorTickMarkPenIsSet ( ) const

Definition at line 117 of file KDChartRulerAttributes.cpp.

References d.

Referenced by operator==().

◆ operator!=()

bool KDChart::RulerAttributes::operator!= ( const RulerAttributes other) const
inline

Definition at line 120 of file KDChartRulerAttributes.h.

References KDChart::operator==().

◆ operator=()

RulerAttributes & RulerAttributes::operator= ( const RulerAttributes r)

Definition at line 242 of file KDChartRulerAttributes.cpp.

References d.

◆ operator==()

bool RulerAttributes::operator== ( const RulerAttributes r) const

◆ setLabelMargin()

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.

◆ setMajorTickMarkLength()

void RulerAttributes::setMajorTickMarkLength ( int  length)

Sets the length of major tick marks

Definition at line 200 of file KDChartRulerAttributes.cpp.

References d.

◆ setMajorTickMarkPen()

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.

◆ setMinorTickMarkLength()

void RulerAttributes::setMinorTickMarkLength ( int  length)

Sets the length of minor tick marks

Definition at line 216 of file KDChartRulerAttributes.cpp.

References d.

◆ setMinorTickMarkPen()

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.

◆ setShowFirstTick()

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.

◆ setShowMajorTickMarks()

void RulerAttributes::setShowMajorTickMarks ( bool  show)

Shows or hides major tick marks

Definition at line 170 of file KDChartRulerAttributes.cpp.

References d.

◆ setShowMinorTickMarks()

void RulerAttributes::setShowMinorTickMarks ( bool  show)

Shows or hides minor tick marks

Definition at line 180 of file KDChartRulerAttributes.cpp.

References d.

◆ setShowRulerLine()

void RulerAttributes::setShowRulerLine ( bool  show)

Definition at line 274 of file KDChartRulerAttributes.cpp.

References d, and showRulerLine().

◆ setTickMarkColor()

void RulerAttributes::setTickMarkColor ( const QColor color)

Color setter method provided for convenience

Definition at line 160 of file KDChartRulerAttributes.cpp.

References d.

◆ setTickMarkPen() [1/2]

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.

◆ setTickMarkPen() [2/2]

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.

◆ showFirstTick()

bool RulerAttributes::showFirstTick ( ) const

Definition at line 237 of file KDChartRulerAttributes.cpp.

References d.

Referenced by operator==().

◆ showMajorTickMarks()

bool RulerAttributes::showMajorTickMarks ( ) const

Definition at line 175 of file KDChartRulerAttributes.cpp.

References d.

Referenced by operator==().

◆ showMinorTickMarks()

bool RulerAttributes::showMinorTickMarks ( ) const

Definition at line 185 of file KDChartRulerAttributes.cpp.

References d.

Referenced by operator==().

◆ showRulerLine()

bool RulerAttributes::showRulerLine ( ) const

Definition at line 279 of file KDChartRulerAttributes.cpp.

References d.

Referenced by operator==(), and setShowRulerLine().

◆ tickMarkColor()

QColor RulerAttributes::tickMarkColor ( ) const

Definition at line 165 of file KDChartRulerAttributes.cpp.

References d.

◆ tickMarkPen() [1/2]

QPen RulerAttributes::tickMarkPen ( ) const

Definition at line 90 of file KDChartRulerAttributes.cpp.

References d.

Referenced by operator<<(), and operator==().

◆ tickMarkPen() [2/2]

QPen RulerAttributes::tickMarkPen ( qreal  value) const

◆ tickMarkPens()

RulerAttributes::TickMarkerPensMap RulerAttributes::tickMarkPens ( ) const

Definition at line 144 of file KDChartRulerAttributes.cpp.

References d.

Referenced by operator<<().


The documentation for this class was generated from the following files:

© 2001 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-chart/
Generated on Fri Apr 26 2024 00:04:57 for KD Chart API Documentation by doxygen 1.9.8