|
CGraphic
CGraphic is a base class for creating custom charts.
Description
The CGraphic class provides numerous aspects of working with custom charts.
The class stores the main chart elements, sets their parameters and performs plotting.
Also, the class stores the curves for the chart and provides various display options.
Declaration
class CGraphic |
Title
#include <Graphics\Graphic.mqh> |
Class methods
Method |
Description |
---|---|
Create a graphical resource bound to a chart object |
|
Remove a chart and destroy a graphical resource |
|
Display implemented changes |
|
Get the name of an object bound to a chart |
|
Get the graphical resource name |
|
Get the pointer to the X axis |
|
Get the pointer to the Y axis |
|
Get/set the size of indents between the chart elements |
|
Get/set a background color |
|
Get/set a chart header |
|
Get/set a sub-header font size |
|
Get/set a chart header color |
|
Get/set a sub-header |
|
Get/set a sub-header font size |
|
Get/set a chart sub-header color |
|
Get/set a grid line color |
|
Get/set a grid background color |
|
Get/set the dot radius in the grid nodes |
|
Get/set the dot color in the grid nodes |
|
Get/set the dot plotting flag in the grid nodes |
|
Get the value of a real chart axes color. |
|
Get/set the maximum allowed length for displaying a curve name |
|
Get/set the font size of a curve name |
|
Get/set a size of notational convention symbols |
|
Add a text to the chart |
|
Add a line to the chart |
|
Create and add a curve to the chart |
|
Plot a previously created curve by index |
|
Plot all previously created curves |
|
Get a curve by a specified index |
|
Get a curve by a specified name |
|
Remove a curve by a specified index. |
|
Remove a curve by a specified name. |
|
Get the number of curves for the given chart. |
|
Add a scale mark to the chart axis |
|
Get/set the size of the scale's ticks on the chart axis |
|
Set the current font parameters |
|
Get the current font parameters |
|
Get/set a graphical resource and bind it to the CGraphic class instance |
|
Calculate (re-calculate) minimum and maximum chart values on both axes. |
|
Get a chart height in pixels. |
|
Get/set a chart indent from the lower border. |
|
Get/set a chart indent from the left border. |
|
Get/set a chart indent from the right border. |
|
Get/set a chart indent from the upper border. |
|
Redraw the chart. |
|
Reset the chart redrawing parameters. |
|
Scale the value by X axis. |
|
Scale the value by Y axis. |
|
Set the chart parameters to default values. |
|
Get the chart width in pixels. |