kchart
KDChartParams Class Reference
#include <KDChartParams.h>
Inheritance diagram for KDChartParams:

Detailed Description
Bundles the display parameters of a chart.Bundles all parameters of a chart including the type except the actual data displayed. Serializing an object of this type plus the data displayed is enough to be able to recreate the chart later.
Definition at line 139 of file KDChartParams.h.
General parameters. | |
These methods set general parameters that apply to several or all chart types. | |
typedef QIntDict< KDChartCustomBox > | CustomBoxDict |
enum | ChartType { NoType, Bar, Line, Area, Pie, HiLo, Ring, Polar, BoxWhisker } |
enum | SourceMode { UnknownMode = 0, DontUse = 1, DataEntry = 2, AxisLabel = 3, LegendText = 4, ExtraLinesAnchor = 5, Last_SourceMode = ExtraLinesAnchor } |
void | setOptimizeOutputForScreen (bool screenOutput) |
bool | optimizeOutputForScreen () const |
void | setGlobalLeading (int left, int top, int right, int bottom) |
void | setGlobalLeadingLeft (int leading) |
void | setGlobalLeadingTop (int leading) |
void | setGlobalLeadingRight (int leading) |
void | setGlobalLeadingBottom (int leading) |
int | globalLeadingLeft () const |
int | globalLeadingTop () const |
int | globalLeadingRight () const |
int | globalLeadingBottom () const |
int | registerProperties (KDChartPropertySet &rSet) |
void | setProperties (int id, KDChartPropertySet &rSet) |
bool | removeProperties (int id) |
bool | properties (int id, KDChartPropertySet &rSet) const |
KDChartPropertySet * | properties (int id) |
bool | calculateProperties (int startId, KDChartPropertySet &rSet) const |
void | setFrame (uint area, const KDFrame &frame, int outerGapX, int outerGapY, int innerGapX, int innerGapY, bool addFrameWidthToLayout=true, bool addFrameHeightToLayout=true) |
void | setSimpleFrame (uint area, int outerGapX=0, int outerGapY=0, int innerGapX=0, int innerGapY=0, bool addFrameWidthToLayout=true, bool addFrameHeightToLayout=true, KDFrame::SimpleFrame simpleFrame=KDFrame::FrameFlat, int lineWidth=1, int midLineWidth=0, QPen pen=QPen(), QBrush background=QBrush(Qt::NoBrush), const QPixmap *backPixmap=0, KDFrame::BackPixmapMode backPixmapMode=KDFrame::PixStretched, int shadowWidth=0, KDFrame::CornerName sunPos=KDFrame::CornerTopLeft) |
bool | moveDataRegionFrame (uint oldDataRow, uint oldDataCol, uint, uint newDataRow, uint newDataCol, uint) |
const KDChartFrameSettings * | frameSettings (uint area, bool &bFound, int *pIterIdx=0) const |
const KDChartFrameSettings * | nextFrameSettings (bool &bFound, int *pIterIdx) const |
uint | insertCustomBox (const KDChartCustomBox &box) |
bool | removeCustomBox (const uint &idx) |
void | removeAllCustomBoxes () |
KDChartCustomBox * | customBoxRef (uint box) |
const KDChartCustomBox * | customBox (uint box) const |
uint | maxCustomBoxIdx () const |
void | setChartType (ChartType chartType) |
ChartType | chartType () const |
void | setAdditionalChartType (ChartType chartType) |
ChartType | additionalChartType () const |
void | setChartSourceMode (SourceMode mode, uint dataset, uint dataset2=KDCHART_NO_DATASET, uint chart=0) |
bool | neverUsedSetChartSourceMode () const |
SourceMode | chartSourceMode (uint dataset, uint dataset2=KDCHART_NO_DATASET, uint *chart=0) const |
bool | findDataset (SourceMode mode, uint &dataset, uint &dataset2, uint chart=0) const |
bool | findDatasets (SourceMode mode1, SourceMode mode2, uint &dataset, uint &dataset2, uint chart=0) const |
uint | maxDatasetSourceMode () const |
void | setDefaultAxesTypes () |
void | activateDefaultAxes () |
void | setNumValues (uint numValues) |
int | numValues () const |
void | calculateShadowColors (QColor color, QColor &shadow1, QColor &shadow2) const |
void | setDataColor (uint dataset, QColor color) |
QColor | dataColor (uint dataset) const |
void | setDataDefaultColors () |
void | setDataRainbowColors () |
void | setDataSubduedColors (bool ordered=false) |
void | setShadowBrightnessFactor (double factor) |
double | shadowBrightnessFactor () const |
Qt::BrushStyle | shadowPattern () const |
void | setOutlineDataColor (QColor color) |
QColor | outlineDataColor () const |
void | setOutlineDataLineWidth (uint width) |
uint | outlineDataLineWidth () const |
void | setOutlineDataLineStyle (PenStyle style) |
PenStyle | outlineDataLineStyle () const |
uint | maxDataColor () const |
void | setThreeDShadowColors (bool shadow) |
bool | threeDShadowColors () const |
static int | roundVal (double d) |
void | setPrintDataValues (bool active, uint chart=KDCHART_ALL_CHARTS, int divPow10=0, int digitsBehindComma=KDCHART_DATA_VALUE_AUTO_DIGITS, QFont *font=0, uint size=UINT_MAX, const QColor *color=KDCHART_DATA_VALUE_AUTO_COLOR, KDChartEnums::PositionFlag negativePosition=KDChartEnums::PosCenter, uint negativeAlign=Qt::AlignCenter, int negativeDeltaX=0, int negativeDeltaY=0, int negativeRotation=0, KDChartEnums::PositionFlag positivePosition=KDChartEnums::PosCenter, uint positiveAlign=Qt::AlignCenter, int positiveDeltaX=0, int positiveDeltaY=0, int positiveRotation=0, KDChartEnums::TextLayoutPolicy policy=KDChartEnums::LayoutPolicyRotate) |
void | setDataValuesCalc (int divPow10=0, int digitsBehindComma=KDCHART_DATA_VALUE_AUTO_DIGITS, uint chart=KDCHART_ALL_CHARTS) |
void | setDataValuesFont (QFont *font, uint size=UINT_MAX, uint chart=KDCHART_ALL_CHARTS) |
void | setDataValuesPlacing (KDChartEnums::PositionFlag position, uint align, int deltaX, int deltaY, int rotation, bool specifyingPositiveValues=true, uint chart=KDCHART_ALL_CHARTS) |
void | setDataValuesColors (const QColor *color=KDCHART_DATA_VALUE_AUTO_COLOR, const QBrush &background=Qt::NoBrush, uint chart=KDCHART_ALL_CHARTS) |
void | setDataValuesPolicy (KDChartEnums::TextLayoutPolicy policy=KDChartEnums::LayoutPolicyRotate, uint chart=KDCHART_ALL_CHARTS) |
void | setDataValuesShowInfinite (bool dataValuesShowInfinite=true, uint chart=KDCHART_ALL_CHARTS) |
void | setPrintDataValuesWithDefaultFontParams (uint chart=KDCHART_ALL_CHARTS, bool callSetPrintDataValues=true) |
void | setAllowOverlappingDataValueTexts (bool allow) |
bool | allowOverlappingDataValueTexts () const |
bool | printDataValuesWithDefaultFontParams (uint chart) const |
bool | printDataValues (uint chart) const |
QFont | dataValuesFont (uint chart) const |
bool | dataValuesUseFontRelSize (uint chart) const |
int | dataValuesFontRelSize (uint chart) const |
QColor | dataValuesColor (uint chart) const |
bool | dataValuesAutoColor (uint chart) const |
KDChartEnums::PositionFlag | dataValuesAnchorPosition (uint chart, bool negative) const |
uint | dataValuesAnchorAlign (uint chart, bool negative) const |
int | dataValuesAnchorDeltaX (uint chart, bool negative) const |
int | dataValuesAnchorDeltaY (uint chart, bool negative) const |
int | dataValuesRotation (uint chart, bool negative) const |
KDChartEnums::TextLayoutPolicy | dataValuesLayoutPolicy (uint chart) const |
void | setPrintDataValuesColor (uint chart=KDCHART_ALL_CHARTS, const QColor *color=KDCHART_DATA_VALUE_AUTO_COLOR) |
void | setPrintDataValuesFontRelSize (uint chart, uint size) |
QColor | dataShadow1Color (uint dataset) const |
QColor | dataShadow2Color (uint dataset) const |
void | changed () |
Line and area chart-specific methods. | |
These methods query and set line and area chart-specific parameters. | |
typedef QMap< uint, LineMarkerStyle > | LineMarkerStyleMap |
enum | LineChartSubType { LineNormal, LineStacked, LinePercent } |
enum | LineMarkerStyle { LineMarkerCircle = 0, LineMarkerSquare = 1, LineMarkerDiamond = 2, LineMarker1Pixel = 3, LineMarker4Pixels = 4, LineMarkerRing = 5, LineMarkerCross = 6, LineMarkerFastCross = 7 } |
enum | AreaChartSubType { AreaNormal, AreaStacked, AreaPercent } |
enum | AreaLocation { AreaAbove, AreaBelow } |
void | setLineChartSubType (LineChartSubType lineChartSubType) |
LineChartSubType | lineChartSubType () const |
void | setLineMarker (bool marker) |
bool | lineMarker () const |
void | setLineMarkerStyle (uint dataset, LineMarkerStyle style) |
void | setLineMarkerStyles (LineMarkerStyleMap map) |
LineMarkerStyle | lineMarkerStyle (uint dataset) const |
LineMarkerStyleMap | lineMarkerStyles () const |
uint | maxDatasetLineMarkerStyle () const |
void | setLineMarkerSize (QSize size) |
QSize | lineMarkerSize () const |
void | setLineWidth (int width) |
int | lineWidth () const |
void | setLineColor (QColor color=QColor()) |
QColor | lineColor () const |
PenStyle | lineStyle (uint dataset=KDCHART_GLOBAL_LINE_STYLE) const |
void | setThreeDLines (bool threeD) |
bool | threeDLines () const |
void | setThreeDLineDepth (int depth) |
int | threeDLineDepth () const |
void | setThreeDLineXRotation (int degrees) |
int | threeDLineXRotation () const |
void | setThreeDLineYRotation (int degrees) |
int | threeDLineYRotation () const |
void | setAreaChartSubType (AreaChartSubType areaChartSubType) |
AreaChartSubType | areaChartSubType () const |
void | setAreaLocation (AreaLocation location) |
AreaLocation | areaLocation () const |
Polar chart-specific methods. | |
These methods query and set polar chart-specific parameters. | |
typedef QMap< uint, PolarMarkerStyle > | PolarMarkerStyleMap |
enum | PolarChartSubType { PolarNormal, PolarStacked, PolarPercent } |
enum | PolarMarkerStyle { PolarMarkerCircle = 0, PolarMarkerSquare = 1, PolarMarkerDiamond = 2, PolarMarker1Pixel = 3, PolarMarker4Pixels = 4, PolarMarkerRing = 5, PolarMarkerCross = 6 } |
void | setPolarChartSubType (PolarChartSubType polarChartSubType) |
PolarChartSubType | polarChartSubType () const |
void | setPolarMarker (bool marker) |
bool | polarMarker () const |
void | setPolarMarkerStyle (uint dataset, PolarMarkerStyle style) |
PolarMarkerStyle | polarMarkerStyle (uint dataset) const |
void | setPolarMarkerStyles (PolarMarkerStyleMap map) |
PolarMarkerStyleMap | polarMarkerStyles () const |
uint | maxDatasetPolarMarkerStyle () const |
void | setPolarMarkerSize (QSize size=QSize(-40,-40)) |
QSize | polarMarkerSize () const |
void | setPolarLineWidth (int width=-3) |
int | polarLineWidth () const |
void | setPolarZeroDegreePos (int degrees) |
int | polarZeroDegreePos () const |
void | setPolarRotateCircularLabels (bool rotateCircularLabels) |
bool | polarRotateCircularLabels () const |
void | setPolarDelimsAndLabelsAtPos (KDChartEnums::PositionFlag pos, bool showDelimiters, bool showLabels) |
bool | polarDelimAtPos (KDChartEnums::PositionFlag pos) const |
bool | polarLabelsAtPos (KDChartEnums::PositionFlag pos) const |
Bar chart-specific methods. | |
These methods query and set barchart-specific parameters. | |
enum | BarChartSubType { BarNormal, BarStacked, BarPercent, BarMultiRows } |
void | setBarChartSubType (BarChartSubType barChartSubType) |
BarChartSubType | barChartSubType () const |
void | setThreeDBars (bool threeDBars) |
bool | threeDBars () const |
void | setThreeDBarsShadowColors (bool shadow) |
bool | threeDBarsShadowColors () const |
void | setThreeDBarAngle (uint angle) |
uint | threeDBarAngle () const |
double | cosThreeDBarAngle () const |
void | setThreeDBarDepth (double depth) |
double | threeDBarDepth () const |
void | setDatasetGap (int gap) |
int | datasetGap () const |
void | setDatasetGapIsRelative (bool gapIsRelative) |
bool | datasetGapIsRelative () const |
void | setValueBlockGap (int gap) |
int | valueBlockGap () const |
void | setValueBlockGapIsRelative (bool gapIsRelative) |
bool | valueBlockGapIsRelative () const |
void | setBarWidth (int width=KDCHART_AUTO_SIZE) |
int | barWidth () const |
int | numBarsDisplayed () const |
int | numBarsLeft () const |
void | setDrawSolidExcessArrows (bool solidArrows) |
bool | drawSolidExcessArrows () const |
Hi-lo chart-specific methods. | |
These methods query and set hi-lo chart-specific parameters. | |
enum | HiLoChartSubType { HiLoNormal, HiLoSimple = HiLoNormal, HiLoClose, HiLoOpenClose } |
void | setHiLoChartSubType (HiLoChartSubType hiLoChartSubType) |
HiLoChartSubType | hiLoChartSubType () const |
void | setHiLoChartPrintLowValues (bool active, QFont *font=0, int size=14, QColor *color=0) |
bool | hiLoChartPrintLowValues () const |
QFont | hiLoChartLowValuesFont () const |
bool | hiLoChartLowValuesUseFontRelSize () const |
int | hiLoChartLowValuesFontRelSize () const |
QColor | hiLoChartLowValuesColor () const |
void | setHiLoChartPrintHighValues (bool active, QFont *font=0, int size=14, QColor *color=0) |
bool | hiLoChartPrintHighValues () const |
QFont | hiLoChartHighValuesFont () const |
bool | hiLoChartHighValuesUseFontRelSize () const |
int | hiLoChartHighValuesFontRelSize () const |
QColor | hiLoChartHighValuesColor () const |
void | setHiLoChartPrintOpenValues (bool active, QFont *font=0, uint size=14, QColor *color=0) |
bool | hiLoChartPrintOpenValues () const |
QFont | hiLoChartOpenValuesFont () const |
bool | hiLoChartOpenValuesUseFontRelSize () const |
int | hiLoChartOpenValuesFontRelSize () const |
QColor | hiLoChartOpenValuesColor () const |
void | setHiLoChartPrintCloseValues (bool active, QFont *font=0, int size=14, QColor *color=0) |
bool | hiLoChartPrintCloseValues () const |
QFont | hiLoChartCloseValuesFont () const |
bool | hiLoChartCloseValuesUseFontRelSize () const |
int | hiLoChartCloseValuesFontRelSize () const |
QColor | hiLoChartCloseValuesColor () const |
void | setHiLoChartPrintFirstValues (bool active, QFont *font=0, uint size=14, QColor *color=0) |
bool | hiLoChartPrintFirstValues () const |
QFont | hiLoChartFirstValuesFont () const |
bool | hiLoChartFirstValuesUseFontRelSize () const |
int | hiLoChartFirstValuesFontRelSize () const |
QColor | hiLoChartFirstValuesColor () const |
void | setHiLoChartPrintLastValues (bool active, QFont *font=0, int size=14, QColor *color=0) |
bool | hiLoChartPrintLastValues () const |
QFont | hiLoChartLastValuesFont () const |
bool | hiLoChartLastValuesUseFontRelSize () const |
int | hiLoChartLastValuesFontRelSize () const |
QColor | hiLoChartLastValuesColor () const |
Box-and-whisker chart-specific methods. | |
These methods query and set box-and-whisker chart-specific parameters. | |
enum | BWChartSubType { BWNormal, BWSimple = BWNormal } |
enum | BWStatVal { BWStatValSTART, UpperOuterFence = BWStatValSTART, UpperInnerFence, Quartile3, Median, Quartile1, LowerInnerFence, LowerOuterFence, MaxValue, MeanValue, MinValue, BWStatValEND = MinValue, BWStatValOffEndValue, BWStatValALL, BWStatValUNKNOWN } |
void | setBWChartSubType (BWChartSubType bWChartSubType) |
BWChartSubType | bWChartSubType () const |
void | setBWChartFences (double upperInner, double lowerInner, double upperOuter, double lowerOuter) |
void | bWChartFences (double &upperInner, double &lowerInner, double &upperOuter, double &lowerOuter) const |
void | setBWChartBrush (const QBrush &bWChartBrush) |
QBrush | bWChartBrush () const |
void | setBWChartOutValMarkerSize (int size) |
int | bWChartOutValMarkerSize () const |
void | setBWChartPrintStatistics (BWStatVal statValue, bool active, QFont *font=0, int size=24, QColor *color=0, QBrush *brush=0) |
bool | bWChartPrintStatistics (BWStatVal statValue) const |
QFont | bWChartStatisticsFont (BWStatVal statValue) const |
bool | bWChartStatisticsUseRelSize (BWStatVal statValue) const |
int | bWChartStatisticsFontRelSize (BWStatVal statValue) const |
QColor | bWChartStatisticsColor (BWStatVal statValue) const |
QBrush | bWChartStatisticsBrush (BWStatVal statValue) const |
Legend methods. | |
These methods query and set legend parameters. | |
enum | LegendPosition { NoLegend, LegendTop, LegendBottom, LegendLeft, LegendRight, LegendTopLeft, LegendTopLeftTop, LegendTopLeftLeft, LegendTopRight, LegendTopRightTop, LegendTopRightRight, LegendBottomLeft, LegendBottomLeftBottom, LegendBottomLeftLeft, LegendBottomRight, LegendBottomRightBottom, LegendBottomRightRight } |
enum | LegendSource { LegendManual, LegendFirstColumn, LegendAutomatic } |
void | setLegendPosition (LegendPosition position) |
LegendPosition | legendPosition () const |
Orientation | legendOrientation () const |
void | setLegendShowLines (bool legendShowLines) |
bool | legendShowLines () const |
void | setLegendSource (LegendSource source) |
LegendSource | legendSource () const |
void | setLegendText (uint dataset, const QString &text) |
QString | legendText (uint dataset) const |
void | setLegendTextColor (const QColor &color) |
QColor | legendTextColor () const |
void | setLegendFont (const QFont &font, bool useFontSize) |
QFont | legendFont () const |
void | setLegendFontUseRelSize (bool legendFontUseRelSize) |
bool | legendFontUseRelSize () const |
void | setLegendFontRelSize (int legendFontRelSize) |
int | legendFontRelSize () const |
void | setLegendTitleText (const QString &text) |
QString | legendTitleText () const |
void | setLegendTitleTextColor (const QColor &color) |
QColor | legendTitleTextColor () const |
void | setLegendTitleFont (const QFont &font, bool useFontSize) |
QFont | legendTitleFont () const |
void | setLegendTitleFontUseRelSize (bool legendTitleFontUseRelSize) |
bool | legendTitleFontUseRelSize () const |
void | setLegendTitleFontRelSize (int legendTitleFontRelSize) |
int | legendTitleFontRelSize () const |
void | setLegendSpacing (uint space) |
uint | legendSpacing () const |
Header and footer methods. | |
These methods query and set header and footer parameters. The names of the Header and Footer sections. You may use up to 9 header and/or up to 9 footer sections.
Usage: Please see example code at
| |
enum | HdFtPos { HdFtPosSTART = 0, HdFtPosHeadersSTART = 0, HdFtPosHeaders0START = 0, HdFtPosHeader0 = 0, HdFtPosHeader0L = 1, HdFtPosHeader0R = 2, HdFtPosHeaders0END = 2, HdFtPosHeaders1START = 3, HdFtPosHeader = 3, HdFtPosHeaderL = 4, HdFtPosHeaderR = 5, HdFtPosHeaders1END = 5, HdFtPosHeaders2START = 6, HdFtPosHeader2 = 6, HdFtPosHeader2L = 7, HdFtPosHeader2R = 8, HdFtPosHeaders2END = 8, HdFtPosHeadersEND = 8, HdFtPosFootersSTART = 9, HdFtPosFooters1START = 9, HdFtPosFooter = 9, HdFtPosFooterL = 10, HdFtPosFooterR = 11, HdFtPosFooters1END = 11, HdFtPosFooters2START = 12, HdFtPosFooter2 = 12, HdFtPosFooter2L = 13, HdFtPosFooter2R = 14, HdFtPosFooters2END = 14, HdFtPosFooters0START = 15, HdFtPosFooter0 = 15, HdFtPosFooter0L = 16, HdFtPosFooter0R = 17, HdFtPosFooters0END = 17, HdFtPosFootersEND = 17, HdFtPosEND = 17 } |
void | setHeaderFooterText (uint pos, const QString &text) |
QString | headerFooterText (uint pos) const |
const QRect & | headerFooterRect (uint pos) const |
void | setHeaderFooterColor (uint pos, const QColor color) |
QColor | headerFooterColor (uint pos) const |
void | setHeaderFooterFont (uint pos, const QFont &font, bool fontUseRelSize, int fontRelSize) |
QFont | headerFooterFont (uint pos) const |
bool | headerFooterFontUseRelSize (uint pos) const |
int | headerFooterFontRelSize (uint pos) const |
void | setHeader1Text (const QString &text) |
QString | header1Text () const |
void | setHeader1Font (const QFont &font) |
QFont | header1Font () const |
void | setHeader2Text (const QString &text) |
QString | header2Text () const |
void | setHeader2Font (const QFont &font) |
QFont | header2Font () const |
void | setFooterText (const QString &text) |
QString | footerText () const |
void | setFooterFont (const QFont &font) |
QFont | footerFont () const |
Public Types | |
typedef QMap< int, double > | ExplodeFactorsMap |
typedef QArray< uint > | AxesArray |
Public Slots | |
void | setDataRegionFrame (uint dataRow, uint dataCol, uint, int innerGapX=0, int innerGapY=0, bool addFrameWidthToLayout=true, bool addFrameHeightToLayout=true, KDFrame::SimpleFrame simpleFrame=KDFrame::FrameFlat, int lineWidth=1, int midLineWidth=0, QPen pen=QPen(), int shadowWidth=0, KDFrame::CornerName sunPos=KDFrame::CornerTopLeft) |
static QString | chartTypeToString (ChartType type) |
static ChartType | stringToChartType (const QString &string) |
static QString | chartSourceModeToString (const SourceMode &mode) |
static SourceMode | stringToChartSourceMode (const QString &string) |
void | setShadowPattern (BrushStyle style) |
int | dataValuesDivPow10 (uint chart) const |
int | dataValuesDigitsBehindComma (uint chart) const |
QBrush | dataValuesBackground (uint chart) const |
bool | dataValuesShowInfinite (uint chart) const |
static QString | markerStyleToString (int style) |
static QString | markerStyleToStringTr (int style) |
static int | stringToMarkerStyle (const QString &string) |
static int | stringToMarkerStyleTr (const QString &string) |
static QString | barChartSubTypeToString (BarChartSubType type) |
static BarChartSubType | stringToBarChartSubType (const QString &string) |
int | userWidth () const |
static LineChartSubType | stringToLineChartSubType (const QString &string) |
static QString | lineChartSubTypeToString (LineChartSubType type) |
static QString | lineMarkerStyleToString (LineMarkerStyle style) |
static QString | lineMarkerStyleToStringTr (LineMarkerStyle style) |
static LineMarkerStyle | stringToLineMarkerStyle (const QString &string) |
static LineMarkerStyle | stringToLineMarkerStyleTr (const QString &string) |
void | setLineStyle (PenStyle style, uint dataset=KDCHART_GLOBAL_LINE_STYLE) |
static QString | areaChartSubTypeToString (AreaChartSubType type) |
static AreaChartSubType | stringToAreaChartSubType (const QString &string) |
static QString | areaLocationToString (AreaLocation type) |
static AreaLocation | stringToAreaLocation (const QString &string) |
static PolarChartSubType | stringToPolarChartSubType (const QString &string) |
static QString | polarChartSubTypeToString (PolarChartSubType type) |
static QString | polarMarkerStyleToString (PolarMarkerStyle style) |
static QString | polarMarkerStyleToStringTr (PolarMarkerStyle style) |
static PolarMarkerStyle | stringToPolarMarkerStyle (const QString &string) |
static PolarMarkerStyle | stringToPolarMarkerStyleTr (const QString &string) |
static QString | hiLoChartSubTypeToString (HiLoChartSubType type) |
static HiLoChartSubType | stringToHiLoChartSubType (const QString &string) |
static QString | bWChartSubTypeToString (BWChartSubType type) |
static BWChartSubType | stringToBWChartSubType (const QString &string) |
static QString | bWChartStatValToString (BWStatVal type) |
static BWStatVal | stringToBWChartStatVal (const QString &string) |
void | setLegendOrientation (Orientation orientation) |
static QString | legendPositionToString (LegendPosition pos) |
static LegendPosition | stringToLegendPosition (const QString &string) |
static QString | legendSourceToString (LegendSource source) |
static LegendSource | stringToLegendSource (const QString &string) |
void | setAxisLabelTextParams (uint n, bool axisSteadyValueCalc=true, QVariant axisValueStart=KDCHART_AXIS_LABELS_AUTO_LIMIT, QVariant axisValueEnd=KDCHART_AXIS_LABELS_AUTO_LIMIT, double axisValueDelta=KDCHART_AXIS_LABELS_AUTO_DELTA, int axisDigitsBehindComma=KDCHART_AXIS_LABELS_AUTO_DIGITS, int axisMaxEmptyInnerSpan=67, KDChartAxisParams::LabelsFromDataRow takeLabelsFromDataRow=KDChartAxisParams::LabelsFromDataRowNo, int labelTextsDataRow=0, QStringList *axisLabelStringList=0, QStringList *axisShortLabelsStringList=0, int axisValueLeaveOut=KDCHART_AXIS_LABELS_AUTO_LEAVEOUT, KDChartAxisParams::ValueScale axisValueDeltaScale=KDChartAxisParams::ValueScaleNumerical) |
bool | findFirstAxisCustomBoxID (uint n, uint &boxID) const |
void | setAxisTitle (uint n, const QString &axisTitle) |
QString | axisTitle (uint n) const |
void | setAxisTitleColor (uint n, QColor axisTitleColor) |
QColor | axisTitleColor (uint n) const |
void | setAxisTitleFont (uint n, QFont axisTitleFont) |
void | setAxisTitleFont (uint n, QFont axisTitleFont, bool useFixedFontSize) |
QFont | axisTitleFont (uint n) const |
void | setAxisTitleFontUseRelSize (uint n, bool useRelSize) |
bool | axisTitleFontUseRelSize (uint n) const |
void | setAxisTitleFontRelSize (uint n, int axisTitleFontRelSize) |
int | axisTitleFontRelSize (uint n) const |
void | __internalStoreHdFtRect (int pos, QRect rect) |
void | loadAxesFormXML (int &curAxisSettings, QDomElement &element) |
bool | loadXML (const QDomDocument &doc) |
void | saveAxesToXML (QDomDocument &doc, QDomElement &docRoot) const |
QDomDocument | saveXML (bool withPI=true) const |
static void | createChartValueNode (QDomDocument &doc, QDomNode &parent, const QString &elementName, const QVariant &valY, const QVariant &valX, const int &propID) |
static void | createColorMapNode (QDomDocument &doc, QDomNode &parent, const QString &elementName, const QMap< uint, QColor > &map) |
static void | createDoubleMapNode (QDomDocument &doc, QDomNode &parent, const QString &elementName, const QMap< int, double > &map) |
static void | createChartFontNode (QDomDocument &doc, QDomNode &parent, const QString &elementName, const QFont &font, bool useRelFont, int relFont, int minFont=-1) |
static bool | readColorMapNode (const QDomElement &element, QMap< uint, QColor > *map) |
static bool | readDoubleMapNode (const QDomElement &element, QMap< int, double > *map) |
static bool | readChartFontNode (const QDomElement &element, QFont &font, bool &useRelFont, int &relFontSize, int *minFontSize=0) |
static bool | readChartValueNode (const QDomElement &element, QVariant &valY, QVariant &valX, int &propID) |
void | setDataArea (const QRect &areaRect) |
void | setLegendArea (const QRect &areaRect) |
Ring and pie chart-specific methods. | |
These methods query and set ring and pie chart-specific parameters. | |
void | setExplode (bool explode) |
bool | explode () const |
void | setExplodeValues (QValueList< int > explodeList) |
QValueList< int > | explodeValues () const |
void | setExplodeFactors (ExplodeFactorsMap factors) |
ExplodeFactorsMap | explodeFactors () const |
void | setExplodeFactor (double factor) |
double | explodeFactor () const |
void | setThreeDPies (bool threeDPies) |
bool | threeDPies () const |
void | setThreeDPieHeight (int pixels) |
int | threeDPieHeight () const |
void | setPieStart (int degrees) |
int | pieStart () const |
void | setRingStart (int degrees) |
int | ringStart () const |
void | setRelativeRingThickness (bool relativeThickness) |
bool | relativeRingThickness () const |
Axis methods. | |
These methods query and set axis parameters. | |
void | setAxisType (uint n, const KDChartAxisParams::AxisType axisType) |
void | setAxisVisible (uint n, const bool axisVisible) |
bool | axisVisible (uint n) const |
void | setAxisShowGrid (uint n, bool axisShowGrid) |
bool | showGrid () const |
void | setAxisDatasets (uint n, uint dataset, uint dataset2=KDCHART_NO_DATASET, uint chart=0) |
bool | axisDatasets (uint n, uint &dataset, uint &dataset2, uint &chart) const |
bool | chartAxes (uint chart, uint &cnt, AxesArray &axes) const |
void | setAxisArea (const uint n, const QRect &areaRect) |
void | setAxisLabelsTouchEdges (uint n, bool axisLabelsTouchEdges) |
void | setAxisLabelsVisible (uint n, bool axisLabelsVisible) |
void | setAxisLabelsFont (uint n, QFont axisLabelsFont, int axisLabelsFontSize=0, QColor axisLabelsColor=Qt::black) |
void | setAxisLabelStringParams (uint n, QStringList *axisLabelStringList, QStringList *axisShortLabelStringList, const QString &valueStart=QString::null, const QString &valueEnd=QString::null) |
void | setAxisParams (uint n, const KDChartAxisParams &axisParams) |
const KDChartAxisParams & | axisParams (uint n) const |
QRect | axisArea (const uint n) const |
QRect | dataArea () const |
QRect | legendArea () const |
Public Member Functions | |
KDChartParams () | |
virtual | ~KDChartParams () |
Protected Member Functions | |
void | setBarsDisplayed (int barsDisplayed) |
void | setBarsLeft (int barsLeft) |
Friends | |
QTextStream & | operator<< (QTextStream &s, const KDChartParams &p) |
QTextStream & | operator>> (QTextStream &s, KDChartParams &p) |
Classes | |
class | KDChartFrameSettings |
Stores the frame settings for one of the chart areas:. More... |
Member Typedef Documentation
|
The type that stores the custom boxes in a chart.
Definition at line 509 of file KDChartParams.h. |
|
The type of the storage structure for line marker styles. You should normally not need to use this. Definition at line 1095 of file KDChartParams.h. |
|
The type of the storage structure for polar marker styles. You should normally not need to use this. Definition at line 1306 of file KDChartParams.h. |
Member Enumeration Documentation
|
The area subtype. Only used when chartType == Area
Definition at line 1213 of file KDChartParams.h. |
|
Specifies whether the area above the value points or below the value points should be filled. The default is to fill below the value points.
Definition at line 1237 of file KDChartParams.h. |
|
The bar subtype. Only used when chartType() == Bar
Definition at line 882 of file KDChartParams.h. |
|
The BoxWhisker subtype. Only used when chartType == BoxWhisker
Definition at line 1732 of file KDChartParams.h. |
|
The different statistical values that can be printed into or asked from a Box and Whisker chart. Only used when chartType == BoxWhisker
Definition at line 1734 of file KDChartParams.h. |
|
The chart type. Covers only built-in chart types.
Reimplemented in KChart::KChartParams. Definition at line 528 of file KDChartParams.h. |
|
This enum lists the positions that headers and footers can take.
Definition at line 2237 of file KDChartParams.h. |
|
The HiLo subtype. Only used when chartType == HiLo
Definition at line 1503 of file KDChartParams.h. |
|
The possible positions for a legend. NoLegend turns legend display off.
Definition at line 1840 of file KDChartParams.h. |
|
The possible ways for getting the legend text. Available are:
Definition at line 1896 of file KDChartParams.h. |
|
The line subtype. Only used when chartType == Line
Definition at line 1054 of file KDChartParams.h. |
|
The available line marker styles.
Definition at line 1085 of file KDChartParams.h. |
|
The polar subtype. Only used when chartType == Polar
Definition at line 1259 of file KDChartParams.h. |
|
The available polar marker styles.
Definition at line 1289 of file KDChartParams.h. |
|
The chart source mode.
Use
Definition at line 548 of file KDChartParams.h. |
Constructor & Destructor Documentation
|
Constructor. Defines default values. Definition at line 94 of file KDChartParams.cpp. |
|
Destructor. Only defined to have it virtual. Definition at line 454 of file KDChartParams.cpp. |
Member Function Documentation
|
activate the default axis types for this chart:
Definition at line 2188 of file KDChartParams.cpp. |
|
Returns the additional chart type configured in this params object.
Definition at line 542 of file KDChartParams.h. |
|
Returns whether a data value text may be drawn even if it's region intersects with another data value text's region. By default this is FALSE to prevent ugly mutual overwriting of data value texts and to speed up drawing of cahrts containing thousands of data points. Definition at line 770 of file KDChartParams.h. |
|
Returns the area chart subtype. Only used if chartType() == Area.
Definition at line 1227 of file KDChartParams.h. |
|
Converts the specified area chart subtype enum to a string representation.
Definition at line 2839 of file KDChartParams_io.cpp. |
|
Returns whether the area above or below the value points is filled.
Definition at line 1246 of file KDChartParams.h. |
|
Converts the specified area location enum to a string representation.
Definition at line 2878 of file KDChartParams_io.cpp. |
|
Returns the true axis area rectangle as it was was calculate by KD Chart.
Definition at line 2195 of file KDChartParams.h. |
|
Returns which data are to be represented by a given axis.
( see explanation given with
Definition at line 7154 of file KDChartParams.cpp. |
|
Returns the parameters that are currently defined for axis n.
Definition at line 2173 of file KDChartParams.h. |
|
Returns the default axis title text.
Definition at line 9271 of file KDChartParams.cpp. |
|
Returns the color of the default axis title text.
Definition at line 9315 of file KDChartParams.cpp. |
|
Returns the font of the default axis title text.
Definition at line 9408 of file KDChartParams.cpp. |
|
Returns the relative size of the default axis title text, should be ignored if
Definition at line 9509 of file KDChartParams.cpp. |
|
Returns whether the fix font size is used for the default axis title text.
Definition at line 9461 of file KDChartParams.cpp. |
|
Returns if the axis will be drawn.
Definition at line 2075 of file KDChartParams.h. |
|
Returns the bar chart subtype. This setting only has an effect in bar charts.
Definition at line 891 of file KDChartParams.h. |
|
Converts the specified bar chart subtype enum to a string representation.
Definition at line 2705 of file KDChartParams_io.cpp. |
|
Returns the width of one bar as set by setBarWidth or KDCHART_AUTO_SIZE if setBarWidth was never called. This setting only has an effect in bar charts.
Definition at line 1020 of file KDChartParams.h. |
|
Returns the brush to be used to fill the BoxWhisker charts.
Definition at line 1779 of file KDChartParams.h. |
|
Retrievs the factors to be used to calculate the position of the inner (or outer, resp. ) fences.
Definition at line 6382 of file KDChartParams.cpp. |
|
Returns how big outlier markers (representing the values outside the inner fences) will be drawn.
Definition at line 1790 of file KDChartParams.h. |
|
Returns whether the respective statistical values will be printed near to the drawing.
Definition at line 1802 of file KDChartParams.h. |
|
Returns the brush used to fill the text's area before printing the respective statistical values.
Definition at line 1831 of file KDChartParams.h. |
|
Returns the colour of the font to be used for printing the respective statistical values.
Definition at line 1826 of file KDChartParams.h. |
|
Returns the font to be used for printing the respective statistical values.
Definition at line 1808 of file KDChartParams.h. |
|
Returns the relative size (in per mille of the chart width) of the font to be used for printing the respective statistical values.
Definition at line 1820 of file KDChartParams.h. |
|
Returns whether the font size to be used for printing the respective statistical values is calculated dynamically.
Definition at line 1814 of file KDChartParams.h. |
|
Converts the specified BWStatVal enum to a string representation.
Definition at line 3055 of file KDChartParams_io.cpp. |
|
Returns the BoxWhisker chart subtype. Only used if chartType() == BoxWhisker.
Definition at line 1758 of file KDChartParams.h. |
|
Converts the specified BoxWhisker chart subtype enum to a string representation.
Definition at line 3315 of file KDChartParams_io.cpp. |
|
Retrieves the values that correspond to a property set by reading this set's properties and obtaining other property set's values if necessary (according to ID numbers that might be stored in the property set). Use this function to retrieve the properties that are valid for a given data cell. Don't use this function to retrieve the exact specification of a property set but use KDChartParams::properties() instead.
Definition at line 624 of file KDChartParams.cpp. |
|
This signal is emitted when any of the chart parameters has changed.
|
|
Returns which ORDINATE axis(axes) is(are) representing a given chart. This will look for the following axes: AxisPosLeft, AxisPosRight, AxisPosLeft2, AxisPosRight2. It is allowed to specify the same variable as axis1, axis2, axis3, axis4 - when doing this you will get the last axis number that was found for this chart. In case you are sure there is only one axis per chart you may act that way.
Definition at line 7183 of file KDChartParams.cpp. |
|
Retrieves usage information of a given dataset or a range of datasets.
setChartSourceMode() was not used at all chartSourceMode() will return DataEntry no matter what dataset number is specified.
Definition at line 1494 of file KDChartParams.cpp. |
|
Converts the specified chart source mode enum value to a string.
Definition at line 3254 of file KDChartParams_io.cpp. |
|
Returns the chart type configured in this params object.
Reimplemented in KChart::KChartParams. Definition at line 532 of file KDChartParams.h. |
|
Converts the specified chart type enum to a string representation.
Definition at line 2547 of file KDChartParams_io.cpp. |
|
Returns the cosine in rad of the angle used for 3D bars. Only used if threeDBars() == true. This setting only has an effect in bar charts.
Definition at line 940 of file KDChartParams.h. |
|
Creates a DOM element node that represents a font used in a chart for use in a DOM document.
Definition at line 2348 of file KDChartParams_io.cpp. |
|
Creates a DOM element node that represents a chart value for use in a DOM document.
Definition at line 2319 of file KDChartParams_io.cpp. |
|
Creates a DOM element node that represents a map of QColor objects for use in a DOM document.
Definition at line 2245 of file KDChartParams_io.cpp. |
|
Creates a DOM element node that represents a map of doubles for use in a DOM document.
Definition at line 2275 of file KDChartParams_io.cpp. |
|
Retrieve a const pointer to a custom box from the list. You may fill in the index parameter with the value that was returned by insertCustomBox, or you may use a numerical value, e.g. when iterating from zero up to maxCustomBoxIdx().
Definition at line 2730 of file KDChartParams.cpp. |
|
Retrieve a non-const pointer to a custom box from the list. You may fill in the index parameter with the value that was returned by insertCustomBox, or you may use a numerical value, e.g. when iterating from zero up to maxCustomBoxIdx().
Definition at line 2748 of file KDChartParams.cpp. |
|
Returns the true data area rectangle as it was was calculate by KD Chart.
Definition at line 2208 of file KDChartParams.h. |
|
Returns the color for a dataset. If no color has been defined for this dataset and none for a higher dataset either, the number will be mapped to the range of defined colors. If no color has been defined for this dataset, but at least one for a higher dataset, the return value of this method is undefined.
Definition at line 1860 of file KDChartParams.cpp. |
|
Returns the number of pixels between two dataset values. This setting only has an effect in bar charts.
Definition at line 965 of file KDChartParams.h. |
|
Returns if the value set by This setting only has an effect in bar charts.
Definition at line 977 of file KDChartParams.h. |
|
Returns the first shadow color for a dataset. This is the color that is used to draw the top bars with 3D effects. It is somewhat darker than the original data color. If no color has been defined for this dataset and none for a higher dataset either, the number will be mapped to the range of defined colors. If no color has been defined for this dataset, but at least one for a higher dataset, the return value of this method is undefined.
Definition at line 1915 of file KDChartParams.cpp. |
|
Returns the second shadow color for a dataset. This is the color that is used to draw the sides of bars with 3D effects. It is darker than the original data color. If no color has been defined for this dataset and none for a higher dataset either, the number will be mapped to the range of defined colors. If no color has been defined for this dataset, but at least one for a higher dataset, the return value of this method is undefined.
Definition at line 1944 of file KDChartParams.cpp. |
|
Returns the way how the text is to be aligned to the anchor. This must be a reasonable combination of Qt::AlignmentFlags.
Definition at line 3671 of file KDChartParams.cpp. |
|
Returns the X distance between the text and its anchor.
Definition at line 3703 of file KDChartParams.cpp. |
|
Returns the Y distance between the text and its anchor.
Definition at line 3735 of file KDChartParams.cpp. |
|
Returns the anchor position which the text is to be aligned to.
Definition at line 3642 of file KDChartParams.cpp. |
|
Returns whether the font to be used for printing the data values texts shall have automatically calculated colors fitting to their respectivs data representations.
Definition at line 837 of file KDChartParams.h. |
|
Returns the colour of the font to be used for printing the data values.
Definition at line 823 of file KDChartParams.h. |
|
Returns the font to be used for printing the data values.
Definition at line 802 of file KDChartParams.h. |
|
Returns the relative size (in per mille of the chart width) of font size to be used for printing the data values.
Definition at line 816 of file KDChartParams.h. |
|
Returns the way to handle too narrow space conflicts: what to do if a data text covers a neighboring data text (or a neighboring data area, resp. ).
Definition at line 851 of file KDChartParams.h. |
|
Returns the amount of degrees (using a circle of 360 degrees) taken to rotate the text. Positive values rotate clockwise, negative values rotate counter-clockwise.
Definition at line 3763 of file KDChartParams.cpp. |
|
Returns whether the font size to be used for printing the data values is calculated dynamically.
Definition at line 809 of file KDChartParams.h. |
|
Returns whether arrows showing excess values in bar charts should be drawn solidly or split. This setting only has an effect in bar charts.
Definition at line 1045 of file KDChartParams.h. |
|
Returns whether the pie or ring chart should be exploding or not.
Definition at line 1387 of file KDChartParams.h. |
|
Returns the default explode factor, i.e., the explode factor used for those segments which should be exploded but for which no more specific explode factor has been set. See setExplodeFactor() for an explanation of the value.
Definition at line 1425 of file KDChartParams.h. |
|
Returns the list of explode factors. Each explode factor in the list corresponds to the segment at the same position.
Definition at line 1414 of file KDChartParams.h. |
|
Returns which values are exploded in a pie or ring chart. For a detailed explanation of this feature, please see setExplodeValues().
Definition at line 1400 of file KDChartParams.h. |
|
Retrieves the dataset number or a range of datasets being used with a given SourceMode for a given chart or KDCHART_NO_DATASET if no dataset was specified for that mode and that chart.
Definition at line 1570 of file KDChartParams.cpp. |
|
Retrieves the dataset number or a range of datasets being used with one of two given SourceModes for a given chart or KDCHART_NO_DATASET if no dataset was specified for that mode and that chart.
If
Definition at line 1640 of file KDChartParams.cpp. |
|
Retrieves the ID of the first KDChartCustomBox that is anchored at axis By default this box is used for the default axis title text: it is created (or modified, resp.) by calling one of the axis title convenience functions setAxisTitleColor or setAxisTitleFont or setAxisTitleFontUseRelSize or setAxisTitleFontRelSize.
Definition at line 9138 of file KDChartParams.cpp. |
|
Returns the font used for displaying the footer line.
Definition at line 2379 of file KDChartParams.h. |
|
Returns the text that is displayed as the footer line.
Definition at line 2367 of file KDChartParams.h. |
|
Return the frame settings of one of the chart areas.
Definition at line 2604 of file KDChartParams.cpp. |
|
Return the distance between the chart and the lower border of the painter area.
If
Definition at line 209 of file KDChartParams.h. |
|
Return the distance between the chart and the left border of the painter area.
If
Definition at line 197 of file KDChartParams.h. |
|
Return the distance between the chart and the right border of the painter area.
If
Definition at line 205 of file KDChartParams.h. |
|
Return the distance between the chart and the upper border of the painter area.
If
Definition at line 201 of file KDChartParams.h. |
|
Returns the font used for displaying the second header line.
Definition at line 2329 of file KDChartParams.h. |
|
Returns the text that is displayed as the first header line.
Definition at line 2317 of file KDChartParams.h. |
|
Returns the font used for displaying the second header line.
Definition at line 2353 of file KDChartParams.h. |
|
Returns the text that is displayed as the second header line.
Definition at line 2341 of file KDChartParams.h. |
|
Returns the colour used for the header text (or footer text, resp.
) of the header/footer section specified by
Definition at line 7799 of file KDChartParams.cpp. |
|
Returns the font used in the header (or footer, resp.
) section specified by
Definition at line 7862 of file KDChartParams.cpp. |
|
Returns the factor used for dynamical calculation of the font size of the text in the header (or footer, resp.
) section specified by
Definition at line 7921 of file KDChartParams.cpp. |
|
Returns is the font size used in the header (or footer, resp.
) section specified by
Definition at line 7891 of file KDChartParams.cpp. |
|
Definition at line 7746 of file KDChartParams.cpp. |
|
Returns the text that is displayed in the header (or footer, resp.
) section specified by
Definition at line 7731 of file KDChartParams.cpp. |
|
Returns the colour of the font size to be used for printing the close values.
Definition at line 1652 of file KDChartParams.h. |
|
Returns the font to be used for printing the close values.
Definition at line 1634 of file KDChartParams.h. |
|
Returns the relative size (in per mille of the chart width) of font size to be used for printing the close values.
Definition at line 1646 of file KDChartParams.h. |
|
Returns whether the font size to be used for printing the close values is calculated dynamically.
Definition at line 1640 of file KDChartParams.h. |
|
This method is obsolete; use hiLoChartOpenValuesColor() instead. Definition at line 1688 of file KDChartParams.h. |
|
This method is obsolete; use hiLoChartOpenValuesFont() instead. Definition at line 1672 of file KDChartParams.h. |
|
This method is obsolete; use hiLoChartOpenValuesFontRelSize() instead. Definition at line 1683 of file KDChartParams.h. |
|
This method is obsolete; use hiLoChartOpenValuesUseFontRelSize() instead. Definition at line 1678 of file KDChartParams.h. |
|
Returns the colour of the font size to be used for printing the high values.
Definition at line 1584 of file KDChartParams.h. |
|
Returns the font to be used for printing the high values.
Definition at line 1566 of file KDChartParams.h. |
|
Returns the relative size (in per mille of the chart width) of font size to be used for printing the high values.
Definition at line 1578 of file KDChartParams.h. |
|
Returns whether the font size to be used for printing the high values is calculated dynamically.
Definition at line 1572 of file KDChartParams.h. |
|
This method is obsolete; use hiLoChartCloseValuesColor() instead. Definition at line 1721 of file KDChartParams.h. |
|
This method is obsolete; use hiLoChartCloseValuesFont() instead. Definition at line 1706 of file KDChartParams.h. |
|
This method is obsolete; use hiLoChartCloseValuesFontRelSize() instead. Definition at line 1716 of file KDChartParams.h. |
|
This method is obsolete; use hiLoChartCloseValuesUseFontRelSize() instead. Definition at line 1711 of file KDChartParams.h. |
|
Returns the colour of the font size to be used for printing the low values.
Definition at line 1549 of file KDChartParams.h. |
|
Returns the font to be used for printing the low values.
Definition at line 1531 of file KDChartParams.h. |
|
Returns the relative size (in per mille of the chart width) of font size to be used for printing the low values.
Definition at line 1543 of file KDChartParams.h. |
|
Returns whether the font size to be used for printing the low values is calculated dynamically.
Definition at line 1537 of file KDChartParams.h. |
|
Returns the colour of the font size to be used for printing the open values.
Definition at line 1618 of file KDChartParams.h. |
|
Returns the font to be used for printing the open values.
Definition at line 1600 of file KDChartParams.h. |
|
Returns the relative size (in per mille of the chart width) of font size to be used for printing the open values.
Definition at line 1612 of file KDChartParams.h. |
|
Returns whether the font size to be used for printing the open values is calculated dynamically.
Definition at line 1606 of file KDChartParams.h. |
|
Returns whether the close values will be printed under their respective entries.
Definition at line 1628 of file KDChartParams.h. |
|
This method is obsolete; use hiLoChartPrintOpenValues() instead. Definition at line 1666 of file KDChartParams.h. |
|
Returns whether the high values will be printed under their respective entries.
Definition at line 1560 of file KDChartParams.h. |
|
This method is obsolete; use hiLoChartPrintCloseValues() instead. Definition at line 1701 of file KDChartParams.h. |
|
Returns whether the low values will be printed under their respective entries.
Definition at line 1525 of file KDChartParams.h. |
|
Returns whether the open values will be printed under their respective entries.
Definition at line 1594 of file KDChartParams.h. |
|
Returns the HiLo chart subtype. Only used if chartType() == HiLo.
Definition at line 1513 of file KDChartParams.h. |
|
Converts the specified HiLo chart subtype enum to a string representation.
Definition at line 3003 of file KDChartParams_io.cpp. |
|
Add a new custom box to the list of boxes. To remove this box from the list lateron just call removeCustomBox with the index that was returned by insertCustomBox.
Definition at line 2672 of file KDChartParams.cpp. |
|
Returns the true legend area rectangle as it was was calculate by KD Chart.
Definition at line 2209 of file KDChartParams.h. |
|
Returns the font in which the legend texts are drawn.
Definition at line 1948 of file KDChartParams.h. |
|
Returns the relative legend font size.
Definition at line 1971 of file KDChartParams.h. |
|
Returns whether the legend font size is used.
Definition at line 1960 of file KDChartParams.h. |
|
Returns how the legend will be printed.
Definition at line 1874 of file KDChartParams.h. |
|
Returns where the legend will be shown.
Definition at line 1863 of file KDChartParams.h. |
|
Converts the specified legend position enum to a string representation.
Definition at line 3121 of file KDChartParams_io.cpp. |
|
Returns whether the legend shows lines or just the markers (or squares, resp. ).
Definition at line 1886 of file KDChartParams.h. |
|
Returns where the legend text is coming from. See LegendSource for an explanation of the possible return values.
Definition at line 1905 of file KDChartParams.h. |
|
Converts the specified legend source enum to a string representation.
Definition at line 3215 of file KDChartParams_io.cpp. |
|
Returns how much space in pixels there is between the legend and the data display.
Definition at line 2046 of file KDChartParams.h. |
|
Returns the manually specified legend text for a given dataset.
Definition at line 1919 of file KDChartParams.h. |
|
Returns the color in which the legend texts are drawn. The default is black.
Definition at line 1935 of file KDChartParams.h. |
|
Returns the font in which the legend title (if any) is drawn.
Definition at line 2011 of file KDChartParams.h. |
|
Returns the relative legend title font size.
Definition at line 2034 of file KDChartParams.h. |
|
Returns whether the legend title font size is used.
Definition at line 2023 of file KDChartParams.h. |
|
Returns the text that is shown as the title of the legend.
Definition at line 1984 of file KDChartParams.h. |
|
Returns the color in which the legend title is drawn. The default is black.
Definition at line 1997 of file KDChartParams.h. |
|
Returns the line chart subtype. Only used if chartType() == Line.
Definition at line 1063 of file KDChartParams.h. |
|
Converts the specified line chart subtype enum to a string representation.
Definition at line 2768 of file KDChartParams_io.cpp. |
|
Returns the color of the lines in line charts.
Definition at line 1147 of file KDChartParams.h. |
|
Returns whether line markers should be drawn at each data point. Only used if chartType() == Line and if threeDLines() == false.
Definition at line 1079 of file KDChartParams.h. |
|
Returns the sizes of line markers. Only used if chartType() == Line and lineMarker() == true.
Definition at line 1124 of file KDChartParams.h. |
|
Returns the marker to be used for a dataset. Only used if chartType() == Line and lineMarker() == true.
Definition at line 4657 of file KDChartParams.cpp. |
|
Returns the whole map of line marker styles. You will typically not need this. You can query individual line marker styles by calling lineMarkerStyle().
Definition at line 1107 of file KDChartParams.h. |
|
Converts the specified line marker style enum to a string representation.
Definition at line 2790 of file KDChartParams_io.cpp. |
|
Converts the specified line marker style enum to a localized string representation that can be used for string output.
Definition at line 2803 of file KDChartParams_io.cpp. |
|
Returns the line style of one of the lines in a line chart or the global line style if no style was specified for the dataset or if the optional dataset parameter has its default value KDCHART_GLOBAL_LINE_STYLE. Warning: On Windows 95/98, the style setting (other than NoPen and SolidLine) has no effect for lines with width greater than 1, due to a bug in the operating system.
Definition at line 4860 of file KDChartParams.cpp. |
|
Returns the line width of the lines in line charts.
Definition at line 1135 of file KDChartParams.h. |
|
Helper method called by loadXML() only.
Definition at line 1055 of file KDChartParams_io.cpp. |
|
Reads the parameters from an XML document.
Definition at line 1349 of file KDChartParams_io.cpp. |
|
Retrieve the biggest custom boxes ID used.
Definition at line 2758 of file KDChartParams.cpp. |
|
Returns the number of the highest dataset for which a color has been defined.
Definition at line 682 of file KDChartParams.h. |
|
Returns the highest dataset for which a line marker style has been defined. Not all datasets with a lower number necessarily have a defined line marker.
Definition at line 1112 of file KDChartParams.h. |
|
Returns the highest dataset for which a polar marker style has been defined. Not all datasets with a lower number necessarily have a defined polar marker.
Definition at line 1315 of file KDChartParams.h. |
|
Returns the number of the highest dataset for which a SourceMode has been defined.
Definition at line 587 of file KDChartParams.h. |
|
Move a frame that was previously specified using setDataRegionFrame to another location: moves the frame from cell[ oldDataRow, oldDataCol ] to cell[ newDataRow, newDataCol ] without changing looking of the frame, or just removes the frame entirely.
Definition at line 2564 of file KDChartParams.cpp. |
|
Retrieves whether setChartSourceMode() was called or not.
Definition at line 567 of file KDChartParams.h. |
|
Return the next frame settings specified for the same area type as the frame that was retrieved by previous calls of
Definition at line 2637 of file KDChartParams.cpp. |
|
Returns the number of bars that were displayed last time your bar chart was drawn. This setting only has an effect in bar charts. This can be different from the number of bars you actually wanted to display: by specifying both the bar width and the value block gap width you may controll your chart very well but take the risk of not getting all bars drawn if there is not enough horizontal space to display them with the given width and gap width. To quickly determine if all bars were drawn just check if the numBarsLeft() function returns a zero value.
Definition at line 1030 of file KDChartParams.h. |
|
Returns the number of bars that could NOT be painted last time your bar chart was drawn. This setting only has an effect in bar charts. If this value is greater than zero, the bar chart shows less bars than you actually wanted to display: by specifying both the bar width and the value block gap width you may controll your chart very well but take the risk of not getting all bars drawn if there is not enough horizontal space to display them with the given width and gap width. You may call the numBarsDisplayed() function to see how many bars were drawn.
Definition at line 1035 of file KDChartParams.h. |
|
Returns how many of the values should be shown. -1 means all available values.
Definition at line 604 of file KDChartParams.h. |
|
Returns whether drawing is optimized for (low resolution) screen output (this is the default) or whether other routines are used to obtain best quality when using a printer.
Definition at line 170 of file KDChartParams.h. |
|
Returns the color for the outlines of data displays.
Definition at line 652 of file KDChartParams.h. |
|
Returns the style of the outlines of data displays.
Definition at line 676 of file KDChartParams.h. |
|
Returns the width of the outlines of data displays.
Definition at line 664 of file KDChartParams.h. |
|
Returns the starting point of the pie circle. See setPieStart() for the interpretation of these values. The return value is always in the interval [0;360[
Definition at line 1466 of file KDChartParams.h. |
|
Returns the polar chart subtype. Only used if chartType() == Polar.
Definition at line 1268 of file KDChartParams.h. |
|
Converts the specified polar chart subtype enum to a string representation.
Definition at line 2931 of file KDChartParams_io.cpp. |
|
Returns whether to show circular delimiters at a given position in polar charts.
Definition at line 5340 of file KDChartParams.cpp. |
|
Returns whether to show circular labels at a given position in polar charts.
Definition at line 5354 of file KDChartParams.cpp. |
|
Returns the line width of the lines in polar charts.
Definition at line 1337 of file KDChartParams.h. |
|
Returns whether polar markers should be drawn at each data point. Only used if chartType() == Polar.
Definition at line 1283 of file KDChartParams.h. |
|
Returns the sizes of polar markers. Only used if chartType() == Polar and polarMarker() == true.
Definition at line 1326 of file KDChartParams.h. |
|
Returns the marker to be used for a dataset. Only used if chartType() == Polar and polarMarker() == true.
Definition at line 5169 of file KDChartParams.cpp. |
|
Returns the whole map of polar marker styles. You will usually not need this. You can query individual polar marker styles by calling polarMarkerStyle().
Definition at line 1311 of file KDChartParams.h. |
|
Converts the specified polar marker style enum to a string representation.
Definition at line 2953 of file KDChartParams_io.cpp. |
|
Converts the specified polar marker style enum to a localized string representation that can be used for string output.
Definition at line 2966 of file KDChartParams_io.cpp. |
|
Returns whether circular labels will be rotated in polar charts.
Definition at line 1359 of file KDChartParams.h. |
|
Returns the zero degree position in polar charts.
Definition at line 1348 of file KDChartParams.h. |
|
Returns whether the data values will be printed near their respective entries.
Definition at line 781 of file KDChartParams.h. |
|
Retrieves whether data value texts are to be printed with non-default font parameters or not - when text printing is active.
Definition at line 775 of file KDChartParams.h. |
|
Retrieves the internal property set object that created when you called registerProperties(). Use this function to access a property set for modifying it directly. Don't use this function to retrieve the properties that are valid for a given data cell but use KDChartParams::calculateProperties() instead.
Definition at line 601 of file KDChartParams.cpp. |
|
Retrieves the values specified for a property set that was stored by registerProperties(). Use this function to retrieve the exact specification of a property set. Don't use this function to retrieve the properties that are valid for a given data cell but use KDChartParams::calculateProperties() instead.
Definition at line 569 of file KDChartParams.cpp. |
|
Reads data from a DOM element node that represents a font uses in a chart and fills the reference parameters with the data.
Definition at line 2449 of file KDChartParams_io.cpp. |
|
Reads data from a DOM element node that represents a chart value and fills a KDChartData object with the data.
Definition at line 2517 of file KDChartParams_io.cpp. |
|
Creates a DOM element node that represents a color map for use in a DOM document.
Definition at line 2377 of file KDChartParams_io.cpp. |
|
Reads data from a DOM element node that represents a double map and fills a double map with the data.
Definition at line 2411 of file KDChartParams_io.cpp. |
|
Stores a new property set: data are stored by value so you may use your ..
Definition at line 491 of file KDChartParams.cpp. |
|
Returns whether the ring thickness is relative to the sum of values in the dataset that the ring represents, or whether the ring thickness should be constant.
Definition at line 1495 of file KDChartParams.h. |
|
Remove all custom boxes from the list of boxes.
Definition at line 515 of file KDChartParams.h. |
|
Remove a custom box from the list of boxes. Please fill in the index parameter with the value that was returned by insertCustomBox.
Definition at line 2703 of file KDChartParams.cpp. |
|
Removes a property set from the registry that was registered via registerProperties().
Definition at line 538 of file KDChartParams.cpp. |
|
Returns the starting point of the ring circle. See setRingStart() for the interpretation of these values. The return value is always in the interval [0;360[
Definition at line 1483 of file KDChartParams.h. |
|
Returns the parameter
Definition at line 701 of file KDChartParams.h. |
|
Helper method saving the axis parameters to an XML file, this is called by saveXML() only.
Definition at line 54 of file KDChartParams_io.cpp. |
|
Saves the parameters to an XML document.
Definition at line 338 of file KDChartParams_io.cpp. |
|
Specifies the additional chart type.
The default is no additional chart (NoType). The additional chart will have no grid so either make sure you specify the chart that should have a grid via The additional chart uses the same abscissa axis as the main chart, but cannot change the abscissa settings: the abscissa range and step width is determined according to the main chart's values.
You may combine all different types of cartesian charts (== Bar, Line, HiLo, ..., but not Polar, Pie, ...) so e.g. the following combinations are possible:
setChartType( KDChartParams::Bar ); setAdditionalChartType( KDChartParams::Line ); setChartType( KDChartParams::Line ); setAdditionalChartType( KDChartParams::HiLo ); setChartType( KDChartParams::Bar ); setAdditionalChartType( KDChartParams::Bar ); ...
setChartType( KDChartParams::Bar ); setAdditionalChartType( KDChartParams::Line ); setChartSourceMode( KDChartParams::DataEntry, 0,2, 0 ); setChartSourceMode( KDChartParams::DataEntry, 3,4, 1 ); setAxisDatasets( KDChartAxisParams::AxisPosLeft, 0,2, 0 ); setAxisDatasets( KDChartAxisParams::AxisPosRight, 3,4, 1 );
setAxisDatasets( KDChartAxisParams::AxisPosLeft2, 3,4, 1 ); setAxisDatasets( KDChartAxisParams::AxisPosRight, KDCHART_NO_DATASET );
Often your additional chart will look better when not overlapping with the first chart, specifying different y-positions for the charts is possible by
// specify which amount of the available space // is to be used by the first y-axis: KDChartAxisParams pa( _p->axisParams( KDChartAxisParams::AxisPosLeft ) ); pa.setAxisUseAvailableSpace( 0, -499 ); _p->setAxisParams( KDChartAxisParams::AxisPosLeft, pa ); // specify which amount of the available space // is to be used by the second y-axis: pa = _p->axisParams( KDChartAxisParams::AxisPosLeft2 ); pa.setAxisUseAvailableSpace( -750, -1000 ); _p->setAxisParams( KDChartAxisParams::AxisPosLeft2, pa );
Definition at line 2961 of file KDChartParams.cpp. |
|
Specifies whether a data value text may be drawn even if it's region intersects with another data value text's region. By default this is FALSE to prevent ugly mutual overwriting of data value texts and to speed up drawing of cahrts containing thousands of data points. Definition at line 764 of file KDChartParams.h. |
|
Specifies the area chart subtype. Only used if chartType() == Area. The default is AreaNormal.
Definition at line 1216 of file KDChartParams.h. |
|
Specifies whether the area above or below the value points should be filled. The default is to fill below the value points. This setting is not used with percent areas (i.e. areaChartSubType() == AreaPercent), because these always cover the whole chart.
Definition at line 1240 of file KDChartParams.h. |
|
Specifies the true axis area rectangle.
Definition at line 2103 of file KDChartParams.h. |
|
Specifies which data are to be represented by a given axis.
Calling setAxisDataset() with a dataset number will automatically set the visability flag of the respective axis (or axes, resp.) while calling it with KDCHART_NO_DATASET will clear the visibility flag so there is no need to explicitely call
Definition at line 7118 of file KDChartParams.cpp. |
|
Specifies the axis labels font for one axis.
Definition at line 7326 of file KDChartParams.cpp. |
|
Specifies whether the axis labels start and end at the edges of the charts instead being positioned in the middle of the first data point (or the last one, resp. )
Definition at line 2111 of file KDChartParams.h. |
|
Specifies a
QStringList abscissaNames; abscissaNames << "Sunday" << "Monday" << "Tuesday" << "Wednesday" << "Thursday" << "Friday" << "Saturday"; QStringList abscissaShortNames; abscissaShortNames << "Sun" << "Mon" << "Tue" << "Wed" << "Thu" << "Fri" << "Sat"; setAxisLabelStringParams( KDChartAxisParams::AxisPosBottom, &names, &shortNames, "Monday", "Friday")
Definition at line 7399 of file KDChartParams.cpp. |
|
Specifies whether the axis labels of an axis are to be shown.
Definition at line 2118 of file KDChartParams.h. |
|
Specifies the parameters for one axis.
Definition at line 7421 of file KDChartParams.cpp. |
|
Specifies whether a grid should be drawn at the chart data area.
The grid will show a solid line for each delimiter. (or a line with a pattern defined by
Definition at line 7067 of file KDChartParams.cpp. |
|
Specifies the default axis title text.
Definition at line 9232 of file KDChartParams.cpp. |
|
Specifies the color of the default axis title text.
Definition at line 9289 of file KDChartParams.cpp. |
|
Specifies the font and the size of the default axis title text.
Definition at line 9368 of file KDChartParams.cpp. |
|
Specifies the font and the size of the default axis title text.
Definition at line 9335 of file KDChartParams.cpp. |
|
Specifies whether a relative size to be used for the default axis title text instead of the fixed size of the font.
Calling this function implicitely sets this axis's
Definition at line 9481 of file KDChartParams.cpp. |
|
Specifies whether the fixed size of the the default axis title text's font.
Definition at line 9426 of file KDChartParams.cpp. |
|
Specifies the axis type.
Definition at line 2058 of file KDChartParams.h. |
|
Specifies if the axis will be drawn. The default is false.
Definition at line 2066 of file KDChartParams.h. |
|
Specifies the bar chart subtype. This setting only has an effect in bar charts.
Definition at line 885 of file KDChartParams.h. |
|
Specifies the width of one bar: makes sure that all of the bars have exactly the same width. This setting only has an effect in bar charts.
Definition at line 1007 of file KDChartParams.h. |
|
Specifies the brush to be used to fill the BoxWhisker charts.
Definition at line 1773 of file KDChartParams.h. |
|
Specifies the factors to be used to calculate the position of the inner (or outer, resp. ) fences. Default values for both inner fences are 1.5 times the interquartile range from the corresponding quartile, for both outer fences default is 3.0 times the IQR.
Definition at line 6365 of file KDChartParams.cpp. |
|
Specifies how big outlier markers (representing the values outside the inner fences) will be drawn. When specifying a value different from 0 the chart will show the outlier markers in the respective size, use zero to disable showing the outliers, use negative values to have the marker size calculated dynamically (in percent of the current boxes' width). Thus marker sizes will be recalculated after modification of either the number of boxes or the size of the entire chart.
Definition at line 1784 of file KDChartParams.h. |
|
Specifies if and how a BoxWhisker chart will print the respective statistical values near to the drawing. Only used if chartType() == BoxWhisker
Definition at line 6482 of file KDChartParams.cpp. |
|
Specifies the BoxWhisker chart subtype. Only used if chartType() == BoxWhisker
Definition at line 1752 of file KDChartParams.h. |
|
Specifies the chart source mode of one or more datasets.
Use this to specify if and how any data should be taken into account for a given chart. You may call this function multiple times to specify how the different datasets are to be used. Number of datasets is only limited by the data that you actually provide to the chart widget. Usage of this method is mandatory when specifying combinations of more than one chart (e.g. via
Whenever you use setChartSourceMode() make sure not to forget any of the datasets which you want to define: not specifying a dataset would result in it being ignored.So the rule is: either don't call setChartSourceMode() at all or call it for each dataset!
To quickly clear all such settings just might want to call setChartSourceMode( UnknownMode, KDCHART_ALL_DATASETS ); without specifying a dataset number and without specifying a chart number. Examples:
setChartSourceMode( DataEntry, 2 );
setChartSourceMode( DataEntry, 0, 0, 0 ); setChartSourceMode( DataEntry, 3, 3, 1 );
setChartSourceMode( LegendText, 1, 1, 0 ); setChartSourceMode( AxisLabel, 2, 2, 0 ); setChartSourceMode( DataEntry, 3, 6, 0 ); setChartSourceMode( ExtraLinesAnchor, 7, 7, 0 ); setChartSourceMode( LegendText, 8, 8, 1 ); setChartSourceMode( AxisLabel, 9, 9, 1 ); setChartSourceMode( DataEntry, 10, 13, 1 );
ExtraLinesAnchor for more than one dataset of the same chart make sure they form a contiguous row together with the DataEntry dataset(s): e.g you may use datasets 3..8 for DataEntry cells and datasets 9..10 for ExtraLinesAnchor cells. All datasets with mode DataEntry or ExtraLinesAnchor are taken into account for calculation of the axes ranges and delimiters.
Definition at line 1440 of file KDChartParams.cpp. |
|
Specifies the chart type. The default is bar charts (Bar).
Definition at line 2818 of file KDChartParams.cpp. |
|
Specifies a color for a dataset.
Note that if you define a color for a dataset but not for a dataset with a lower number (and there is neither a default value), the color for that dataset with the lower number will be undefined. If you do not want any color, pass an invalid color (i.e. a default-constructed QColor object). This is only useful for chart types that have an outline (like bars or pies), because you would not see anything otherwise.
Definition at line 1694 of file KDChartParams.cpp. |
|
Specifies KD Chart's default colors for the datasets 0. .11. This method may be usefull to re-set the colors after changing the colors of the datasets.
Definition at line 1716 of file KDChartParams.cpp. |
|
Specifies a set of eight rainbow-like colors for the datasets 0. .7 and sets the lighter versions of this colors to datasets 8..15. This is a convenience method setting colors that look best on a dark gray or black background.
Definition at line 1742 of file KDChartParams.cpp. |
|
Specifies the number of pixels between two dataset values.
In addition you might want to use
Also the method This setting only has an effect in bar charts: if there is more than one dataset shown by your chart.
Definition at line 959 of file KDChartParams.h. |
|
Specifies if the value set by This setting only has an effect in bar charts.
Definition at line 971 of file KDChartParams.h. |
|
Specifies a set of eighteen subdued colors for the datasets 0. .17. This is a convenience method setting colors that is ideal for area charts since the dark data value texts can be easily read when printed onto such background colors.
Definition at line 1772 of file KDChartParams.cpp. |
|
Specifies how the data value text figures are modified before printing. This methode is provided for your convenience, to learn how to set the other text parameters please have a look at setPrintDataValues.
Definition at line 3234 of file KDChartParams.cpp. |
|
Specifies the text color and background brush to be used for printing the data value texts.
To have the color calculated automatically - useful when printing inside the bars (or pie slices, areas, ... resp.) - please use Setting the background is normally not needed since reasonable settings are done by default: Area charts have a white background behind the data value texts while all other chart types use no special background (the value is Qt::NoBrush then).
In case you want to use it to remove the extra background from your Area chart's data value texts you should consider changing the dataset colors as well: an idea might be trying the subdued colorset by calling
Definition at line 3350 of file KDChartParams.cpp. |
|
Specifies the font to be used for printing the data value texts. This methode is provided for your convenience, to learn how to set the other text parameters please have a look at setPrintDataValues.
Definition at line 3261 of file KDChartParams.cpp. |
|
Specifies the position and rotation of the data value texts to be printed. This methode is provided for your convenience, to learn how to set the other text parameters please have a look at setPrintDataValues.
Definition at line 3293 of file KDChartParams.cpp. |
|
Specifies whether data value texts should be printed even if the value is KDCHART_POS_INFINITE (or KDCHART_NEG_INFINITE). Printing of an infinite symbol (lemniskate) is done by default, ou may use this function to disable it.
Definition at line 3401 of file KDChartParams.cpp. |
|
Set the default axis types for all the axes the user might activate for this chart:.
Definition at line 1971 of file KDChartParams.cpp. |
|
Specifies whether arrows showing excess values in bar charts should be drawn solidly or split. This setting only has an effect in bar charts. If solidArrows is true, the bars with excess values (like infinity, or any other value that exceeds the y-axis labelling) will have an integrated arrow head. If solidArrows is false, they will still have an integrated arrow head at a lower position, but also two flat arrows on top of them to better indicate that there could be a large gap. It is recommended to set this value to false (this is also the default), as this makes the excess value situation much more obvious. This setting only has an effect in bar charts.
Definition at line 1040 of file KDChartParams.h. |
|
Specifies whether the pie chart or ring chart should be exploding (all pies or ring segments are slightly displaced from the center) or not. The default is not to explode. Only used if chartType() == Pie or chartType() == Ring. Note that calling this method by passing true turns on exploding for all segments. You can turn exploding on and off for individual segments by calling setExplodeValues() and also change the explode factors by calling setExplodeFactor() or setExplodeFactors(). Note that in ring charts, only the outermost ring is exploded. Also note that exploding rings are only useful if none of the values in the outermost dataset covers more than 1/4 of the ring, otherwise the exploded ring will look funny.
Definition at line 1381 of file KDChartParams.h. |
|
Specifies the explode factor in percent, i.e. how much an exploded pie or ring segment is displaced from the center. The factor is given as a double value between 0 and 1; 0.1 means 10% and is the default. Only used if chartType() == Pie or chartType() == Ring and explode() == true. Note that this method sets the explode factor for all segments that are exploded but for which no more specific explode factor has been set with setExplodeFactors(). Thus, to make the value specified here the default value, you can pass an empty list to setExplodeFactors() (which also is the default).
Definition at line 1419 of file KDChartParams.h. |
|
Specifies the explode factors for each segment in percent, i.e. how much an exploded pie or ring segment is displaced from the center. The factor is given as a double value between 0 and 1; 0.1 means 10%. Only used if chartType() == Pie or chartType() == Ring and explode() == true. Segments that are not contained in the map specified here will have the default explode factor of 10%, if exploding is turned on for them at all. This also means that passing an empty list to this method does not turn off exploding in general; use setExplode( false ) for that. Note: This method has no immediate effect if setExplode( true ) has not been called. It is, however, possible to preset explode factors and then turn on exploding later. Note: Besides giving a segment an explode factor and turning on exploding in general, you also need to specify to explode a certain segment by calling setExplodeValues(). This gives maximum flexibility as it allows you to preset explode factors and then explode or not not explode a segment at leisure - at the expense of one more method call.
Definition at line 1408 of file KDChartParams.h. |
|
Specifies which values to explode. Explosion of values only happens if setExplode( true ) has been called. Normally, all values are exploded (all values on the outer ring in the case of a ring chart). With this function, you have a finer control about the explosion. You can specify the values that should be exploded by their position. Passing an empty list here turns on explosion for all pies or ring segments (but only if explosion is turned on in general). To repeat: Setting anything here has no effect if setExplode( true ) is not called. You can, however, set any values here even if explosion is not turned on; they will be saved in case explosion will be turned on in the future and then be valid automatically. The explode factor, i.e., the amount with which a segment is moved from the center can either be set for all segments with setExplodeFactor() or for individual segments with setExplodeFactors(). The default is 10%.
Definition at line 1393 of file KDChartParams.h. |
|
Specifies the font to be used for displaying the footer line. The default is a 12pt Helvetica font.
Definition at line 2372 of file KDChartParams.h. |
|
Specifies the text to be displayed as the footer line. The default is not to display any footer text.
Definition at line 2360 of file KDChartParams.h. |
|
Definition at line 382 of file KDChartParams.h. |
|
Specifies the distance between the chart and the left border of the painter area.
If
Definition at line 2296 of file KDChartParams.cpp. |
|
Specifies the distance between the chart and the lower border of the painter area.
If
Definition at line 192 of file KDChartParams.h. |
|
Specifies the distance between the chart and the left border of the painter area.
If
Definition at line 177 of file KDChartParams.h. |
|
Specifies the distance between the chart and the right border of the painter area.
If
Definition at line 187 of file KDChartParams.h. |
|
Specifies the distance between the chart and the upper border of the painter area.
If
Definition at line 182 of file KDChartParams.h. |
|
Specifies the font to be used for displaying the first header line. The default is a 14pt Helvetica font.
Definition at line 2322 of file KDChartParams.h. |
|
Specifies the text to be displayed as the first header line. The default is not to display any header text.
Definition at line 2310 of file KDChartParams.h. |
|
Specifies the font to be used for displaying the second header line. The default is a 12pt Helvetica font.
Definition at line 2346 of file KDChartParams.h. |
|
Specifies the text to be displayed as the second header line. The default is not to display any header text.
Definition at line 2334 of file KDChartParams.h. |
|
Specifies the colour to be used for the header text (or footer text, resp.
) of the header/footer section specified by
Definition at line 7773 of file KDChartParams.cpp. |
|
Specifies the font to be used in the header (or footer, resp.
) section specified by
Definition at line 7829 of file KDChartParams.cpp. |
|
Specifies the text to be displayed in the header (or footer, resp.
) section specified by
Definition at line 7705 of file KDChartParams.cpp. |
|
Specifies if and how a HiLo chart will print the Close values next to their respective entries. Only used if chartType() == HiLo and the HiLo chart sub type contains Close values.
Definition at line 6091 of file KDChartParams.cpp. |
|
This method is obsolete; use setHiLoChartPrintOpenValues(). Definition at line 1658 of file KDChartParams.h. |
|
Specifies if and how a HiLo chart will print the High values below their respective entries. Only used if chartType() == HiLo
Definition at line 5849 of file KDChartParams.cpp. |
|
This method is obsolete; use setHiLoChartPrintCloseValues() instead. Definition at line 1693 of file KDChartParams.h. |
|
Specifies if and how a HiLo chart will print the Low values below their respective entries. Only used if chartType() == HiLo
Definition at line 5726 of file KDChartParams.cpp. |
|
Specifies if and how a HiLo chart will print the Open values below their respective entries. Only used if chartType() == HiLo and if the HiLo chart sub type shows open values.
Definition at line 5971 of file KDChartParams.cpp. |
|
Specifies the HiLo chart subtype. Only used if chartType() == HiLo
Definition at line 1507 of file KDChartParams.h. |
|
Specifies the font in which the legend texts are drawn. The default is a 10pt helvetica font.
Definition at line 1941 of file KDChartParams.h. |
|
Specifies the legend relative font size.
Definition at line 1965 of file KDChartParams.h. |
|
Specifies whether the legend shall be drawn using relative font size.
Definition at line 1954 of file KDChartParams.h. |
|
Specifies where the legend should be shown. NoLegend turns legend display off. The default is LegendRight which positions the legend right to the data display.
Definition at line 1857 of file KDChartParams.h. |
|
Specifies whether the legend shall show lines or just show the markers (or squares, resp. ).
Definition at line 1880 of file KDChartParams.h. |
|
Specifies where the legend text is coming from. See LegendSource for an explanation of the possible values.
Definition at line 1899 of file KDChartParams.h. |
|
Specifies how much space in pixels there should be between the legend and the data display. The default is 20 pixels.
Definition at line 2040 of file KDChartParams.h. |
|
Manually specifies a legend text for a certain dataset. This is only used if legendSource() == Manual or if legendSource() == Automatic and it is not possible to retrieve values from the first column.
Definition at line 1913 of file KDChartParams.h. |
|
Specifies the color to be used for the legend texts. The default is black.
Definition at line 1928 of file KDChartParams.h. |
|
Specifies the font in which the legend title (if any) is drawn. The default is a 12pt helvetica font.
Definition at line 2004 of file KDChartParams.h. |
|
Specifies the legend title relative font size.
Definition at line 2028 of file KDChartParams.h. |
|
Specifies whether the legend title (if any) shall be drawn using relative font size.
Definition at line 2017 of file KDChartParams.h. |
|
Specifies a text to be shown as the title of the legend. The default is "Legend" (possibly localized). To turn off the legend title completely, pass an empty string.
Definition at line 1977 of file KDChartParams.h. |
|
Specifies the color to be used for the legend title. The default is black. Note that this color is only the default when rich text is used; tags in the rich text might change the color.
Definition at line 1990 of file KDChartParams.h. |
|
Specifies the line chart subtype. Only used if chartType() == Line. The default is LineNormal.
Definition at line 1057 of file KDChartParams.h. |
|
Specifies the color of the lines in line charts. By default line chart lines are drawn in the color specified by the respective setDataColor function, to reset your chart to this default just call setLineColor() without specifying a parameter.
Definition at line 1141 of file KDChartParams.h. |
|
Specifies whether there should be a marker at each data point. Only used if chartType() == Line and if threeDLines() == false. The default is not to draw markers.
Definition at line 1073 of file KDChartParams.h. |
|
Specifies the sizes of line markers. Only used if chartType() == Line and lineMarker() == true. The default is 6x6.
Negative values of
Definition at line 1118 of file KDChartParams.h. |
|
Specifies the line marker to be used for a dataset. Only used if chartType() == Line and lineMarker() == true. If you specify a marker for a dataset, but not for a dataset with a lower value, then the marker for the dataset with the lower value will be undefined unless it was previously defined. The default is a circle for the first dataset, a square for the second, a diamond for the third and undefined for all subsequent datasets.
Definition at line 4641 of file KDChartParams.cpp. |
|
Sets a whole map of line marker styles. You can use this for assigning many line marker styles at the same time, but typically it is better to set them individually with setLineMarkerStyle().
Definition at line 4686 of file KDChartParams.cpp. |
|
Specifies the width for lines in line charts. Default is 1. Only used if threeDLines() == false.
If
Definition at line 1129 of file KDChartParams.h. |
|
Specifies how many of the values should be shown. -1 means all available values.
Definition at line 597 of file KDChartParams.h. |
|
Specify whether drawing should be optimized for (low resolution) screen output or whether other routines should be used to obtain best quality when using a printer.
Definition at line 164 of file KDChartParams.h. |
|
Specifies a color for the outlines of data displays. The default is black.
Definition at line 645 of file KDChartParams.h. |
|
Specifies the line style of the outlines of data displays. The default is a solid line. Warning: On Windows 95/98, the style setting (other than NoPen and SolidLine) has no effect for lines with width greater than 1, due to a bug in the operating system.
Definition at line 670 of file KDChartParams.h. |
|
Specifies the width of the outlines of data displays. The default is 1 pixel.
Definition at line 658 of file KDChartParams.h. |
|
Specifies the starting point of the pie circle. The default is the 3 o' clock position which equals to 0. Positive values are angles in degrees counterclockwise, negative values are angles in degrees clockwise. All values will be normalized to [0;360[.
Definition at line 1454 of file KDChartParams.h. |
|
Specifies the polar chart subtype. Only used if chartType() == Polar. The default is PolarNormal.
Definition at line 1262 of file KDChartParams.h. |
|
Specifies whether to show circular delimiters and labels at a given position in polar charts.
Definition at line 5324 of file KDChartParams.cpp. |
|
Specifies the width for lines in polar charts. Default is -3.
Definition at line 1331 of file KDChartParams.h. |
|
Specifies whether there should be a marker at each data point. Only used if chartType() == Polar. The default is not to draw markers.
Definition at line 1277 of file KDChartParams.h. |
|
Specifies the sizes of polar markers. Only used if chartType() == Polar and polarMarker() == true. The default is -40 x -40.
Definition at line 1320 of file KDChartParams.h. |
|
Specifies the polar marker to be used for a dataset. Only used if chartType() == Polar and polarMarker() == true. If you specify a marker for a dataset, but not for a dataset with a lower value, then the marker for the dataset with the lower value will be undefined unless it was previously defined. The default is a circle for the first dataset, a square for the second, a diamond for the third and undefined for all subsequent datasets.
Definition at line 5153 of file KDChartParams.cpp. |
|
Sets a whole map of polar marker styles. You can use this for assigning many polar marker styles at the same time, but typically it is better to set them individually with setPolarMarkerStyle().
Definition at line 5196 of file KDChartParams.cpp. |
|
Specifies whether to rotate circular labels in polar charts.
Definition at line 1354 of file KDChartParams.h. |
|
Specifies the zero degree position in polar charts. Use this function to have the zero degree point on a position different from the right side of the circle. Valid parameters are -359..359.
Definition at line 1343 of file KDChartParams.h. |
|
Specifies if and how a chart will print the data value texts near their respective entries. Data value texts will be printed immediately after drawing all of the chart data points (or bars, lines,...) but before drawing the legend and before drawing any custom boxes. If more than one chart ist to be drawn (sharing the same data area) printing of the data text values will take place after drawing all of the last charts data points, this enables us to see the texts even if their respective data representations are covered by the second charts drawings. The same covering/colliding problem might occur with Area charts if one area is (partially) covering another area. In such cases you might either want to specify an appropriate TextLayoutPolicy for getting a better looking result or specify an other text color for data value texts of the second chart since by default the first chart has black texts while the second chart shows its data value texts in dark blue color.
Calling setPrintDataValuesWithDefaultFontParams( chart ) will reset the respective font size and colour and position parameters (but not the QFont itself) and activate printing of the values for the
Definition at line 1063 of file KDChartParams.cpp. |
|
Specifies the dynamic font size to be used for printing the data value texts.
To change settings for all charts specify This methode is provided for your convenience, to learn how to set the other text parameters please have a look at setPrintDataValues.
Definition at line 3455 of file KDChartParams.cpp. |
|
Specifies that data value texts are to be printed with default font parameters.
Calling this methode results in resetting the respective font size and colour and position parameters but not the QFont itself. By setting
Definition at line 3490 of file KDChartParams.cpp. |
|
Overwrites a property set with a new property set.
Definition at line 517 of file KDChartParams.cpp. |
|
Specifies whether the ring thickness should be relative to the sum of the values in the dataset that the ring represents. The default is to have all the rings with the same thickness which itself depends on the size of the chart and the number of rings.
Definition at line 1488 of file KDChartParams.h. |
|
Specifies the starting point of the ring circle. The default is the 3 o' clock position which equals to 0. Positive values are angles in degrees counterclockwise, negative values are angles in degrees clockwise. All values will be normalized to [0;360[.
Definition at line 1471 of file KDChartParams.h. |
|
Specifies a factor to be used to adjust the built-in brightness of shadow colors in 3-dimensional drawings like e.g. 3D Bar charts.
Definition at line 622 of file KDChartParams.h. |
|
Select a pre-defined frame setting to be used for one of the chart areas.
Definition at line 406 of file KDChartParams.h. |
|
Specifies the angle used for 3D bars. Only used if threeDBars() == true. This setting only has an effect in bar charts.
Definition at line 4171 of file KDChartParams.cpp. |
|
Specifies the depth of the 3D Effect used for 3D bars. Only used if threeDBars() == true. This setting only has an effect in bar charts.
Definition at line 946 of file KDChartParams.h. |
|
Specifies whether the engine should draw the bars in 3D. This setting only has an effect in bar charts.
Definition at line 904 of file KDChartParams.h. |
|
This method is obsolete; use setThreeDShadowColors instead
Definition at line 916 of file KDChartParams.h. |
|
Specifies the depth of 3D lines (the "width" in Z direction). Only used if chartType() == Line and threeDLines() == true. The default is 20 pixels.
Definition at line 1168 of file KDChartParams.h. |
|
Specifies whether lines should be drawn three-dimensionally or not. The default is to draw two-dimensionally. Only used if chartType() == Line.
Definition at line 1157 of file KDChartParams.h. |
|
Definition at line 1182 of file KDChartParams.h. |
|
Definition at line 1199 of file KDChartParams.h. |
|
Specifies the height of the 3D effect for pies in pixels. Only used if chartType() == Pie and threeDPies() == true. Negative values are interpreted relative to the height of the pie where -100 means that the 3D effect has the same height as the pie itself; values smaller than -25 are hardly useful. Positive values are interpreted as absolute sizes in pixels. The default is an absolute value of 20 pixels.
Definition at line 1443 of file KDChartParams.h. |
|
Specifies whether the engine should draw the pies in 3D. Only used if chartType() == Pie.
Definition at line 1431 of file KDChartParams.h. |
|
Specifies whether the engine should draw the sides and tops of 3D effects in shadowed versions of the data colors (the default) or in the data colors themselves. Only used with 3D effects in charts that support these.
Definition at line 688 of file KDChartParams.h. |
|
Specifies the number of pixels between each value block.
If there is only one dataset shown this gap is appearing between each of the bars, otherwise it is appearing between each of the bar blocks. In addition you might want to use
Also the method This setting only has an effect in bar charts.
Use negative values for overlaps (which might look strange), use The default is 15 per mille of the data area of the chart.
Definition at line 983 of file KDChartParams.h. |
|
Specifies if the value set by This setting only has an effect in bar charts.
Definition at line 995 of file KDChartParams.h. |
|
Returns a factor to be used to adjust the built-in brightness of shadow colors in 3-dimensional drawings like e.g. 3D Bar charts.
Definition at line 629 of file KDChartParams.h. |
|
Returns the filling style used for filling the shadow areas in 3-dimensional drawings like 3D bar charts. The default is to fill with a solid color, the fill color can be queried with threeDShadowColors().
Definition at line 640 of file KDChartParams.h. |
|
Returns if any grid will be drawn at the data area.
Definition at line 7081 of file KDChartParams.cpp. |
|
Converts the specified string to a area chart subtype enum value.
Definition at line 2860 of file KDChartParams_io.cpp. |
|
Converts the specified string to an area location enum value.
Definition at line 2897 of file KDChartParams_io.cpp. |
|
Converts the specified string to a bar chart subtype enum value.
Definition at line 2728 of file KDChartParams_io.cpp. |
|
Converts the specified string to a BWStatVal enum value.
Definition at line 3089 of file KDChartParams_io.cpp. |
|
Converts the specified string to a BoxWhisker chart subtype enum value.
Definition at line 3042 of file KDChartParams_io.cpp. |
|
Converts the specified string to a chart source mode enum value.
Definition at line 3281 of file KDChartParams_io.cpp. |
|
Converts the specified string to a chart type enum value.
Reimplemented in KChart::KChartParams. Definition at line 2580 of file KDChartParams_io.cpp. |
|
Converts the specified string to a HiLo chart subtype enum value.
Definition at line 3024 of file KDChartParams_io.cpp. |
|
Converts the specified string to a legend position enum value.
Definition at line 3170 of file KDChartParams_io.cpp. |
|
Converts the specified string to a legend source enum value.
Definition at line 3236 of file KDChartParams_io.cpp. |
|
Converts the specified string to a line chart subtype enum value.
Definition at line 2749 of file KDChartParams_io.cpp. |
|
Converts the specified string to a line marker style value.
Definition at line 2815 of file KDChartParams_io.cpp. |
|
Converts the specified localized string to a line marker style value.
Definition at line 2827 of file KDChartParams_io.cpp. |
|
Converts the specified string to a polar chart subtype enum value.
Definition at line 2913 of file KDChartParams_io.cpp. |
|
Converts the specified string to a polar marker style value.
Definition at line 2978 of file KDChartParams_io.cpp. |
|
Converts the specified localized string to a polar marker style value.
Definition at line 2991 of file KDChartParams_io.cpp. |
|
Returns the angle in degrees used for 3D bars. Only used if threeDBars() == true. This setting only has an effect in bar charts.
Definition at line 934 of file KDChartParams.h. |
|
Returns the depth of the 3D Effect used for 3D bars. Only used if threeDBars() == true. This setting only has an effect in bar charts.
Definition at line 953 of file KDChartParams.h. |
|
Returns whether the engine should draw any bars in 3D. This setting only has an effect in bar charts.
Definition at line 910 of file KDChartParams.h. |
|
This method is obsolete; use threeDShadowColors instead
Definition at line 923 of file KDChartParams.h. |
|
Returns the depth of 3D lines (the "width" in Z direction). Only used if chartType() == Line and threeDLines() == true. The default is 20 pixels.
Definition at line 1174 of file KDChartParams.h. |
|
Returns whether lines are drawn three-dimensionally or not. The default is to draw two-dimensionally. Only used if chartType() == Line.
Definition at line 1163 of file KDChartParams.h. |
|
Definition at line 1191 of file KDChartParams.h. |
|
Definition at line 1208 of file KDChartParams.h. |
|
Returns the height of the 3D effect for pies in pixels. See setThreeDPieHeight for the interpretation of the value.
Definition at line 1449 of file KDChartParams.h. |
|
Returns whether the engine should draw any pies in 3D. Only used if chartType() == Pie.
Definition at line 1437 of file KDChartParams.h. |
|
Returns whether the engine should draw the sides and tops of 3D effects in shadowed versions of the data colors or in the data colors themselves. Only used with 3D effects in charts that support these. The default is true.
Definition at line 695 of file KDChartParams.h. |
|
Returns the number of pixels between each value block. This setting only has an effect in bar charts.
Definition at line 989 of file KDChartParams.h. |
|
Returns if the value set by This setting only has an effect in bar charts.
Definition at line 1001 of file KDChartParams.h. |
The documentation for this class was generated from the following files: