|
vdk 2.4.0
|
Provides a char base class. More...
#include <chart.h>
Provides a char base class.
VDKChart is a component that allows to plot 2D data in various format, is a base class that implements common functionalities to all subclasses actually supported:
| VDKChart::VDKChart | ( | VDKForm * | owner, |
| int | w = 100, |
||
| int | h = 100 |
||
| ) |
Constructor
| owner | |
| w | width |
| h | height |
| VDKChart::~VDKChart | ( | ) | [virtual] |
Destructor
| void VDKChart::AddSeries | ( | Series * | s | ) |
Adds a series to chart
| s | series to be added. Series name is checked for unicity, if a match is found <s> will substitute the old series that will be destroyed. So series to be added should be always constructed in the heap with new operator. |
| void VDKChart::Clear | ( | ) |
Clears chart destroying all series
Reimplemented from VDKCanvas.
| GdkGC* VDKChart::GC | ( | ) | [inline] |
Returns chart gc
| virtual int VDKChart::isA | ( | ) | [inline, virtual] |
Returns chart_class
Reimplemented from VDKObject.
Reimplemented in VDKBarChart, VDKScatteredChart, and VDKLineChart.
| virtual void VDKChart::Plot | ( | VDKPoint & | p, |
| int | i, | ||
| Series * | s | ||
| ) | [inline, virtual] |
Plots data,placeholder for subclasses.
| p | point to be plotted |
| i | i-th point of the series |
| s | series address |
Reimplemented in VDKBarChart, VDKScatteredChart, and VDKLineChart.
| void VDKChart::SetColor | ( | VDKRgb | rgb | ) |
Sets drawing color, this affects plottin area only, to change axiz, titles and labels color use Foreground property
| void VDKChart::SetLineAttributes | ( | gint | lineWidth, |
| GdkLineStyle | lineStyle, | ||
| GdkCapStyle | capStyle, | ||
| GdkJoinStyle | joinStyle | ||
| ) |
Sets line attributes
| VDKReadWriteValueProp<VDKChart, int> VDKChart::ChartBorder |
Sets/gets char border, this area is left to draw axis, title and labels. Defaults to 20 but a larger border is often better.
| VDKReadWriteValueProp<VDKChart, VDKString> VDKChart::LabelX |
Sets/gets x axis label
| VDKReadWriteValueProp<VDKChart, int> VDKChart::LabelXDigits |
Sets get how many decimal digits are displayed int x labels
| VDKReadWriteValueProp<VDKChart, VDKString> VDKChart::LabelY |
Sets/gets y axis label
| VDKReadWriteValueProp<VDKChart, int> VDKChart::LabelYDigits |
Sets get how many decimal digits are displayed int y labels
| VDKReadWriteValueProp<VDKChart, VDKString> VDKChart::Title |
Sets/gets chart title
1.7.6.1