#include <KDChartCustomBox.h>
Inheritance diagram for KDChartCustomBox:


Public Slots | |
| float | trueFontSize (double areaWidthP1000, double areaHeightP1000, int rectHeight) const |
| int | trueFontLineSpacing (double areaWidthP1000, double areaHeightP1000, int rectHeight) const |
| int | trueRectAlignX (const QRect &rect) const |
| int | trueRectAlignY (const QRect &rect) const |
| void | getTrueShift (double areaWidthP1000, double areaHeightP1000, int rectHeight, int &dX, int &dY) const |
| QRect | trueRect (QPainter *painter, QPoint anchor, double areaWidthP1000, double areaHeightP1000) const |
| virtual QRect | trueRect (QPoint anchor, double areaWidthP1000, double areaHeightP1000) const |
| virtual void | paint (QPainter *painter, QPoint anchor, double areaWidthP1000, double areaHeightP1000, const KDFrame *frame=0, const QRect &frameRect=QRect(), const QColor *color=0, const QBrush *paper=0) const |
| void | setRotation (int rotation) |
| void | setContent (const KDChartTextPiece &content) |
| void | setFontSize (int fontSize, bool fontScaleGlobal) |
| void | setAnchorArea (uint area) |
| void | setAnchorPosition (KDChartEnums::PositionFlag position) |
| void | setAnchorAlign (uint align) |
| void | setDataRow (uint dataRow) |
| void | setDataCol (uint dataCol) |
| void | setData3rd (uint data3rd) |
| void | setDistanceAndSize (int deltaX, int deltaY, int width, int height, uint deltaAlign=KDCHART_AlignAuto, bool deltaScaleGlobal=true) |
| void | setDistance (int deltaX, int deltaY, uint align=KDCHART_AlignAuto, bool deltaScaleGlobal=true) |
| void | setDeltaAlign (uint align, bool deltaScaleGlobal=true) |
| void | setDeltaScale (bool deltaScaleGlobal) |
| void | setSize (int width, int height) |
| void | setColor (QColor color) |
| void | setPaper (const QBrush &paper) |
| int | rotation () const |
| const KDChartTextPiece & | content () const |
| int | fontSize () const |
| bool | fontScaleGlobal () const |
| uint | anchorArea () const |
| KDChartEnums::PositionFlag | anchorPosition () const |
| uint | anchorAlign () const |
| uint | dataRow () const |
| uint | dataCol () const |
| uint | data3rd () const |
| int | deltaX () const |
| int | deltaY () const |
| uint | deltaAlign () const |
| bool | deltaScaleGlobal () const |
| int | width () const |
| int | height () const |
| QColor | color () const |
| const QBrush & | paper () const |
Public Member Functions | |
| KDChartCustomBox () | |
| KDChartCustomBox (const KDChartTextPiece &content, int fontSize, bool fontScaleGlobal=true) | |
| KDChartCustomBox (const KDChartTextPiece &content, int fontSize, bool fontScaleGlobal, int deltaX, int deltaY, int width, int height, const QColor &color=QColor(Qt::black), const QBrush &paper=QBrush(Qt::NoBrush), uint area=KDChartEnums::AreaInnermost, KDChartEnums::PositionFlag position=KDChartEnums::PosTopLeft, uint align=Qt::AlignTop+Qt::AlignLeft, uint dataRow=0, uint dataCol=0, uint data3rd=0, uint deltaAlign=KDCHART_AlignAuto, bool deltaScaleGlobal=true, int parentAxis=-1) | |
| KDChartCustomBox (int rotation, const KDChartTextPiece &content, int fontSize, bool fontScaleGlobal, int deltaX, int deltaY, int width, int height, const QColor &color=QColor(Qt::black), const QBrush &paper=QBrush(Qt::NoBrush), uint area=KDChartEnums::AreaInnermost, KDChartEnums::PositionFlag position=KDChartEnums::PosTopLeft, uint align=Qt::AlignTop+Qt::AlignLeft, uint dataRow=0, uint dataCol=0, uint data3rd=0, uint deltaAlign=KDCHART_AlignAuto, bool deltaScaleGlobal=true, int parentAxis=-1) | |
| virtual | ~KDChartCustomBox () |
| void | deepCopy (const KDChartCustomBox *source) |
| const KDChartCustomBox * | clone () const |
Static Public Member Functions | |
| static void | createCustomBoxNode (QDomDocument &document, QDomNode &parent, const QString &elementName, const KDChartCustomBox *custombox) |
| static bool | readCustomBoxNode (const QDomElement &element, KDChartCustomBox &custombox) |
Protected Member Functions | |
| void | setInternalFlagAnchorBeingCalculated (bool flag) const |
| bool | anchorBeingCalculated () const |
| void | setParentAxisArea (int parentAxis) const |
| int | parentAxisArea () const |
Private Member Functions | |
| KDChartCustomBox (const KDChartCustomBox &) | |
Private Attributes | |
| int | _rotation |
| KDChartTextPiece | _content |
| int | _fontSize |
| bool | _fontScaleGlobal |
| int | _deltaX |
| int | _deltaY |
| int | _width |
| int | _height |
| QColor | _color |
| QBrush | _paper |
| uint | _anchorArea |
| KDChartEnums::PositionFlag | _anchorPos |
| uint | _anchorAlign |
| uint | _dataRow |
| uint | _dataCol |
| uint | _data3rd |
| uint | _deltaAlign |
| bool | _deltaScaleGlobal |
| bool | _anchorBeingCalculated |
| int | _parentAxisArea |
Friends | |
| class | KDChartPainter |
| class | KDChartParams |
|
|
Constructor. Set default values. |
|
||||||||||||||||
|
Constructor. Set content and font size but no position/size parameters.
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Constructor. Set content and position/size parameters and the color and brush to be used.
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Constructor. Use this special constructor to specify a rotated box, reference point of the rotation is the anchor specified by the
|
|
|
Destructor. Only defined to have it virtual. |
|
|
|
|
|
Returns the way how the box is to be aligned to its anchor. |
|
|
Returns the area to which the box is to be aligned. |
|
|
Internal routine for recursion handling. |
|
|
Returns the anchor position. This is the edge (or the corner, resp.) of the area to which the box is to be aligned. |
|
|
Create a new box on the heap, copy the settings stored by this box into the newly created box and return the pointer to the new box.
|
|
|
Returns the text color. |
|
|
Returns the text piece content that is to be drawn. |
|
||||||||||||||||||||
|
Creates a DOM element node that represents a custom box for use in a DOM document.
|
|
|
Returns the third dimensions number of the KDChart data region that is to be used as anchor area. You should use this if anchorArea is |
|
|
Returns the column number of the KDChart data region that is to be used as anchor area. You should use this if anchorArea is |
|
|
Returns the row number of the KDChart data region that is to be used as anchor area. You should use this if anchorArea is |
|
|
Copy the settings of box
|
|
|
Returns the way how the values specified for deltaX and/or deltaY affect the position of the box.
|
|
|
Returns the way how the distance between the box and its anchor is calculated.
|
|
|
Returns the X distance between the box and its anchor. Note: If greater 0, the value is taken as exact offset, if less than 0, it is interpreted as being a per-mille value of the size of the drawing area (or as percent value of the actual font size (as returned by QFontMetrics::lineSpacing() ) if deltaScaleGlobal is FALSE, resp.). Actual drawing position/size is calculated dynamically in methode trueRect.
|
|
|
Returns the Y distance between the box and its anchor. Note: If greater 0, the value is taken as exact offset, if less than 0, it is interpreted as being a per-mille value of the size of the drawing area (or as percent value of the actual font size (as returned by QFontMetrics::lineSpacing() ) if deltaScaleGlobal is FALSE, resp.). Actual drawing position/size is calculated dynamically in methode trueRect.
|
|
|
Returns the way how the font size is calculated if fontSize() is negative. If true the font size will be calculated based upon the the size of the drawing area, otherwise it will be calculated based upon the height of the box. |
|
|
Returns the font size to be used.
|
|
||||||||||||||||||||||||
|
|
|
|
Returns the height of the region where to draw the box. Note: If greater 0, the value is the exact offset, if less than 0, it is interpreted as being a per-mille value of the logical height (or width, resp.) of the area to be used for drawing. Actual drawing position/size is calculated dynamically in methode trueRect. |
|
||||||||||||||||||||||||||||||||||||
|
Paints the box.
|
|
|
Returns the background brush. |
|
|
|
|
||||||||||||
|
Reads data from a DOM element node that represents a custom box object and fills a KDChartCustomBox object with the data.
|
|
|
Returns the rotation angle of the box in degrees (0..360). |
|
|
Specifies the way how the box is to be aligned to its anchor. |
|
|
Specifies the area to which the box is to be aligned. |
|
|
Specifies the anchor position. This is the edge (or the corner, resp.) of the area to which the box is to be aligned. |
|
|
Specifies the text color to be used.
|
|
|
Specifies the text piece content to be drawn. |
|
|
Specifies the third dimensions number of the KDChart data region that is to be used as anchor area. This value is ignored if anchorArea is not |
|
|
Specifies the column number of the KDChart data region that is to be used as anchor area. This value is ignored if anchorArea is not |
|
|
Specifies the row number of the KDChart data region that is to be used as anchor area. This value is ignored if anchorArea is not |
|
||||||||||||
|
Specifies the way how the values specified for deltaX and/or deltaY affect the position of the box.
Set this to KDHART_KDCHART_AlignAuto to have the delta values used according to the box's main
|
|
|
Specifies the way how the distance between the box and its anchor will be calculated.
|
|
||||||||||||||||||||
|
Specifies the distance between the box and the anchor point.
|
|
||||||||||||||||||||||||||||
|
Specifies the distance between the box and the anchor point and specifies the size of the box.
|
|
||||||||||||
|
Specifies the font size to be used.
|
|
|
Internal routine for recursion handling. Note: This is a const methode changing NO VITAL information of the box but setting an internal, temporary flag. |
|
|
Specifies the brush to be used for the background.
|
|
|
|
|
|
Specifies the rotation angle of the box in degrees (0..360). |
|
||||||||||||
|
Specifies the size of the box.
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
Return the actual rectangle which to draw box into.
|
|
||||||||||||||||||||
|
Return the actual rectangle which to draw box into.
|
|
|
|
|
|
|
|
|
Returns the width of the region where to draw the box. Note: If greater 0, the value is the exact offset, if less than 0, it is interpreted as being a per-mille value of the logical height (or width, resp.) of the area to be used for drawing. Actual drawing position/size is calculated dynamically in methode trueRect. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|