#include <KDChartTextAttributes.h>
TextAttributes encapsulates settings that have to do with text. This includes font, fontsize, color, whether the text is rotated, etc
Definition at line 50 of file KDChartTextAttributes.h.
Public Member Functions | |
bool | autoRotate () const |
bool | autoShrink () const |
const QFont | calculatedFont (const QObject *autoReferenceArea, KDChartEnums::MeasureOrientation autoReferenceOrientation) const |
Returns the font in the size that is used at drawing time. | |
const qreal | calculatedFontSize (const QObject *autoReferenceArea, KDChartEnums::MeasureOrientation autoReferenceOrientation) const |
Returns the font size that is used at drawing time. | |
QFont | font () const |
Measure | fontSize () const |
bool | hasAbsoluteFontSize () const |
bool | isVisible () const |
Measure | minimalFontSize () const |
bool | operator!= (const TextAttributes &other) const |
TextAttributes & | operator= (const TextAttributes &) |
bool | operator== (const TextAttributes &) const |
QPen | pen () const |
int | rotation () const |
void | setAutoRotate (bool autoRotate) |
Set whether the text should be automatically rotated as needed when space is constraint. | |
void | setAutoShrink (bool autoShrink) |
Set whether the text should automatically be shrunk, if space is constraint. | |
void | setFont (const QFont &font) |
Set the font to be used for rendering the text. | |
void | setFontSize (const Measure &measure) |
Set the size of the font used for rendering text. | |
void | setMinimalFontSize (const Measure &measure) |
Set the minimal size of the font used for rendering text. | |
void | setPen (const QPen &pen) |
Set the pen to use for rendering the text. | |
void | setRotation (int rotation) |
Set the rotation angle to use for the text. | |
void | setVisible (bool visible) |
Set whether the text is to be rendered at all. | |
TextAttributes (const TextAttributes &) | |
TextAttributes () | |
~TextAttributes () |
|
|
|
|
|
|
|
Referenced by operator<<(). |
|
Referenced by operator<<(). |
|
Returns the font in the size that is used at drawing time. This method is called at drawing time. It returns the font as it is used for rendering text, taking into account any measures that were set via setFontSize and/or setMinimalFontSize. Referenced by KDChart::AbstractDiagram::paintDataValueText(). |
|
Returns the font size that is used at drawing time. This method is called at drawing time. It returns the font size as it is used for rendering text, taking into account any measures that were set via setFontSize and/or setMinimalFontSize. Referenced by KDChart::Legend::buildLegend(), and KDChart::TextLayoutItem::realFontSize(). |
|
Referenced by operator<<(). |
|
Referenced by KDChart::Chart::addLegend(), operator<<(), and KDChart::CartesianAxis::titleTextAttributes(). |
|
|
|
Referenced by KDChart::Legend::buildLegend(), KDChart::CartesianAxis::maximumSize(), operator<<(), KDChart::CartesianAxis::paintCtx(), and KDChart::AbstractDiagram::paintDataValueText(). |
|
Referenced by operator<<(). |
|
Definition at line 57 of file KDChartTextAttributes.h.
00058 { return !operator==(other); } |
|
|
|
|
|
Referenced by operator<<(), KDChart::TextLayoutItem::paint(), and KDChart::AbstractDiagram::paintDataValueText(). |
|
Referenced by KDChart::TextLayoutItem::intersects(), operator<<(), KDChart::TextLayoutItem::paint(), and KDChart::AbstractDiagram::paintDataValueText(). |
|
Set whether the text should be automatically rotated as needed when space is constraint.
|
|
Set whether the text should automatically be shrunk, if space is constraint.
|
|
Set the font to be used for rendering the text.
|
|
Set the size of the font used for rendering text.
Referenced by KDChart::Chart::addLegend(), and KDChart::CartesianAxis::titleTextAttributes(). |
|
Set the minimal size of the font used for rendering text.
|
|
Set the pen to use for rendering the text.
|
|
Set the rotation angle to use for the text.
|
|
Set whether the text is to be rendered at all.
|