wxFreeChart
Public Member Functions | List of all members
GanttSimpleDataset Class Reference

Gantt simple dataset. More...

#include <ganttsimpledataset.h>

Inheritance diagram for GanttSimpleDataset:
Inheritance graph
[legend]
Collaboration diagram for GanttSimpleDataset:
Collaboration graph
[legend]

Public Member Functions

 GanttSimpleDataset (size_t dateCount, const wxChar **taskNames, size_t taskNamesCount)
 Construct new gantt demo dataset. More...
 
void AddSerie (GanttSerie *serie)
 Add new serie to dataset. More...
 
virtual wxString GetName (size_t index)
 Returns category name at index. More...
 
virtual double GetValue (size_t index, size_t serie)
 Returns value associated with category at index. More...
 
virtual size_t GetSerieCount ()
 Returns serie count in this dataset. More...
 
virtual wxString GetSerieName (size_t serie)
 Returns serie name. More...
 
virtual size_t GetCount ()
 Returns task count. More...
 
virtual time_t GetStart (size_t index, size_t serie)
 Returns task start time. More...
 
virtual time_t GetEnd (size_t index, size_t serie)
 Returns task end time. More...
 
- Public Member Functions inherited from GanttDataset
 GanttDataset (size_t dateCount)
 Constructs new gantt dataset. More...
 
virtual DateTimeDatasetAsDateTimeDataset ()
 
virtual size_t GetCount (size_t serie)
 Returns task count in specified serie. More...
 
virtual time_t GetMinStart ()
 
virtual time_t GetMaxEnd ()
 
time_t GetDateInterval ()
 
size_t GetDateCount ()
 
GanttRendererGetRenderer ()
 
- Public Member Functions inherited from CategoryDataset
virtual bool HasValue (size_t index, size_t serie)
 
virtual double GetMinValue (bool verticalAxis)
 Returns minimal value. More...
 
virtual double GetMaxValue (bool verticalAxis)
 Returns maximal value. More...
 
virtual double GetX (size_t index, size_t serie)
 Returns x value at index. More...
 
virtual double GetY (size_t index, size_t serie)
 Returns y value at index. More...
 
BarRendererGetRenderer ()
 
- Public Member Functions inherited from XYDataset
XYRendererGetRenderer ()
 
virtual double GetMaxY ()
 Returns maximal y value. More...
 
virtual double GetMinY ()
 Returns minimal y value. More...
 
virtual double GetMaxX ()
 Returns maximal x value. More...
 
virtual double GetMinX ()
 Returns minimal x value. More...
 
- Public Member Functions inherited from Dataset
void SetRenderer (Renderer *renderer)
 Sets renderer for this dataset. More...
 
RendererGetBaseRenderer ()
 
void BeginUpdate ()
 Called to begin dataset update. More...
 
void EndUpdate ()
 Called to end dataset update. More...
 
void AddMarker (Marker *marker)
 Adds marker to plot. More...
 
size_t GetMarkersCount ()
 Returns marker count. More...
 
MarkerGetMarker (size_t index)
 Returns marker at specified index. More...
 
virtual void NeedRedraw (DrawObject *obj)
 
void DatasetChanged ()
 Called to indicate, that dataset is changed. More...
 
- Public Member Functions inherited from RefObject
void AddRef ()
 
void Unref ()
 
int RefCount ()
 

Additional Inherited Members

- Protected Member Functions inherited from CategoryDataset
virtual bool AcceptRenderer (Renderer *r)
 Checks whether renderer is acceptable by this dataset. More...
 
- Protected Attributes inherited from Dataset
Rendererm_renderer
 

Detailed Description

Gantt simple dataset.

Definition at line 47 of file ganttsimpledataset.h.

Constructor & Destructor Documentation

GanttSimpleDataset::GanttSimpleDataset ( size_t  dateCount,
const wxChar **  taskNames,
size_t  taskNamesCount 
)

Construct new gantt demo dataset.

Parameters
dateCount
taskNamesnames for tasks
taskNamesCountcount of names

Member Function Documentation

void GanttSimpleDataset::AddSerie ( GanttSerie serie)

Add new serie to dataset.

Parameters
serienew serie
virtual size_t GanttSimpleDataset::GetCount ( )
virtual

Returns task count.

Returns
task count

Implements GanttDataset.

virtual time_t GanttSimpleDataset::GetEnd ( size_t  index,
size_t  serie 
)
virtual

Returns task end time.

Parameters
indextask index
serieserie index
Returns
task end time

Implements GanttDataset.

virtual wxString GanttSimpleDataset::GetName ( size_t  index)
virtual

Returns category name at index.

Parameters
indexindex of category name
Returns
category name

Implements CategoryDataset.

virtual size_t GanttSimpleDataset::GetSerieCount ( )
virtual

Returns serie count in this dataset.

Returns
serie count

Implements Dataset.

virtual wxString GanttSimpleDataset::GetSerieName ( size_t  serie)
virtual

Returns serie name.

Parameters
serieindex
Returns
serie name

Implements Dataset.

virtual time_t GanttSimpleDataset::GetStart ( size_t  index,
size_t  serie 
)
virtual

Returns task start time.

Parameters
indextask index
serieserie index
Returns
task start time

Implements GanttDataset.

virtual double GanttSimpleDataset::GetValue ( size_t  index,
size_t  serie 
)
virtual

Returns value associated with category at index.

Parameters
indexvalue associated with category
Returns
value associated with category

Implements CategoryDataset.


The documentation for this class was generated from the following file: