Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

VDKChart Class Reference

Provides a char base class. More...

#include <chart.h>

Inheritance diagram for VDKChart:

VDKCanvas VDKObject VDKNotCopyAble VDKBarChart VDKLineChart VDKScatteredChart List of all members.

Public Member Functions

Public Attributes


Detailed Description

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:


Constructor & Destructor Documentation

VDKChart::VDKChart VDKForm owner,
int  w = 100,
int  h = 100
 

Constructor

Parameters:
owner 
w width
h height

VDKChart::~VDKChart  )  [virtual]
 

Destructor


Member Function Documentation

void VDKChart::AddSeries Series s  ) 
 

Adds a series to chart

Parameters:
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 VDKLineChart, VDKScatteredChart, and VDKBarChart.

virtual void VDKChart::Plot VDKPoint p,
int  i,
Series s
[inline, virtual]
 

Plots data,placeholder for subclasses.

Parameters:
p point to be plotted
i i-th point of the series
s series address
Programming tips
Items p contains coordinates ready to be plotted, scaled or resized to chart size and data domain.

Reimplemented in VDKLineChart, VDKScatteredChart, and VDKBarChart.

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


Member Data Documentation

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


The documentation for this class was generated from the following files:
Generated on Wed Jul 28 17:23:53 2004 for vdk 2.0.3 by doxygen 1.3.7