Inheritance diagram for FXPlotBase:
Public Member Functions
|FXPlotBase (FXComposite *parent, FXString Name)|
|Create a new FXPlotBase, must be called by classes inheriting from this class. |
|Virtual destructor, releases the double buffer data. |
|void||setGridPen (const FXPlotPen &pen)|
|Set the grid pen. |
|void||setCommonPen (const FXPlotPen &pen)|
|Set the common pen. |
|FXbool||saveImage (const FXString &file)|
|Save the image drawed by drawSelf() to the file named file. |
|virtual void||drawSelf (FXDC *p, FXint rootx=0, FXint rooty=0)|
|Function called to draw the contents of this plot. |
|long||onPaint (FXObject *, FXSelector, void *ptr)|
|long||onSave (FXObject *, FXSelector, void *ptr)|
Protected Member Functions
|Double buffering image. |
|Plot title. |
|The grid pen. |
|The commom pen. |
|Background color. |
The FXFXPlotBase class provides some base functionalities like: exporting or printing the plot to file, double buffering mechanism, etc. Furthermore, this class try to wrap the graphical library functions being used (FOX-toolkit) making this library easy to port to other libraries with not much effort.
To create a plot widget, simply subclass FXPlotBase and provide a implementation for the virtual function drawSelf();
Definition at line 188 of file FXPlotBase.h.
Function called to draw the contents of this plot.
All classes inheriting from FXPlotBase should provide a implementation for this function. The default implementation does nothing.