GobChartsWidget
1.0
|
Factory class responsible for the creation of charts at run-time. More...
#include <gobchartsfactory.h>
Public Member Functions | |
GobChartsView * | createChart (GobChartsType type, QWidget *parent) |
Creates a chart view of type "type". | |
Static Public Member Functions | |
static GobChartsFactory * | getInstance () |
Returns the singleton instance. | |
Factory class responsible for the creation of charts at run-time.
This factory is implemented as a singleton and is responsible for the creation of the user-selected chart types at run-time. Care must be taken when using this factory as it does not maintain ownership of the chart views it creates and clean-up becomes the responsibility of the calling object when no parent is specified.
Definition at line 39 of file gobchartsfactory.h.
GobChartsView * GobChartsFactory::createChart | ( | GobChartsType | type, |
QWidget * | parent | ||
) |
Creates a chart view of type "type".
If no parent is provided, clean-up becomes the responsibility of the calling object.
Definition at line 54 of file gobchartsfactory.cpp.
|
static |
Returns the singleton instance.
Definition at line 35 of file gobchartsfactory.cpp.