kchart

KChart::KChartParams Class Reference

Inheritance diagram for KChart::KChartParams:

KDChartParams List of all members.

Detailed Description

Definition at line 41 of file kchart_params.h.


Public Types

enum  ChartType {
  NoType = KDChartParams::NoType, Bar = KDChartParams::Bar, Line = KDChartParams::Line, Area = KDChartParams::Area,
  Pie = KDChartParams::Pie, HiLo = KDChartParams::HiLo, Ring = KDChartParams::Ring, Polar = KDChartParams::Polar,
  BoxWhisker = KDChartParams::BoxWhisker
}
enum  DataDirection { DataRows = 0, DataColumns = 1 }

Public Slots

void setBarNumLines (int _numLines)
int barNumLines () const

Public Member Functions

 KChartParams (KChartPart *_part)
 ~KChartParams ()
KChartPartpart () const
ChartType chartType () const
void setChartType (ChartType _type)
DataDirection dataDirection () const
void setDataDirection (DataDirection _dir)
QString chartTypeToString (ChartType _type) const
ChartType stringToChartType (const QString &string)
bool firstRowAsLabel () const
void setFirstRowAsLabel (bool _val)
bool firstColAsLabel () const
void setFirstColAsLabel (bool _val)
QString dataArea () const
void setDataArea (QString dataArea)
DCOPObject * dcopObject ()
bool loadOasis (const QDomElement &chartElem, KoOasisLoadingContext &loadingContext, QString &errorMessage, KoStore *store)
void saveOasis (KoXmlWriter *bodyWriter, KoGenStyles &mainStyles) const

Member Enumeration Documentation

The chart type.

Covers only built-in chart types.

See also:
setChartType, chartType

setAdditionalChartType, additionalChartType,

setChartSourceMode

Reimplemented from KDChartParams.

Definition at line 44 of file kchart_params.h.


Member Function Documentation

ChartType KChart::KChartParams::chartType (  )  const [inline]

Returns the chart type configured in this params object.

Returns:
the chart type configured in this params object.
See also:
setChartType, ChartType

setAdditionalChartType, additionalChartType,

setBarChartSubType, barChartSubType

setLineChartSubType, lineChartSubType

setPolarChartSubType, polarChartSubType

setChartSourceMode, chartSourceMode

Reimplemented from KDChartParams.

Definition at line 72 of file kchart_params.h.

KChartParams::ChartType KChart::KChartParams::stringToChartType ( const QString &  string  ) 

Converts the specified string to a chart type enum value.

Parameters:
string the string to convert
Returns:
the chart type enum value

Reimplemented from KDChartParams.

Definition at line 88 of file kchart_params.cc.

QString KChart::KChartParams::dataArea (  )  const [inline]

Returns the true data area rectangle as it was was calculate by KD Chart.

Note:
This special function may be called *after* calling KDChart::setupGeometry(). Normally you don't need to call it at all, its only purpose is to provide you with a way to retrieve the true position and size of the data area.
See also:
axisArea

Reimplemented from KDChartParams.

Definition at line 94 of file kchart_params.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys