#include <CNCL/EZDDiag.h>
CN_EZDDIAG
EZDObject
None
EZDDiagWin
EZDDiag
creates a diagram as an ezd object. Actually
there are three different styles (as an enum) implemeted in this class:
Constructors:
EZDDiag();
EZDDiag(CNParam *param)
EZDDiag(int w, int h, Style s=LINE);
EZDDiag(int w, int h, int x, int y, Style s=LINE);
EZDDiag(const CNString &name, int w, int h, int x, int y, Style s=LINE);
EZDDiag(int w, int h, int x, int y, Style s, CNString cd, CNString cb);
EZDDiag(const CNString &name, int w, int h, int x, int y, Style s, CNString cd, CNString cb);
EZDDiag
at the position (x,y)
, default (0,0), of the
current drawing as a named ezd object. w
(default: 200) and h
(100) are the object`s width and heigth. cd
("black") and
cb
("red") are color-settings for the diagram and
the bar which is drawn if the value is out of the given range -
e.g. negative values or values > 100 at the default setting. The
possible styles s
are described above. The object is drawn
frameless, but a frame can be added, see the functions below.
In addition to the member functions required by CNCL, EZDDiag
provides:
void style(Style s);
s
.
void set_color_draw(CNString c);
c
.
void set_color_bar(CNString c);
c
.
void add(int v);
v
to the diagram.
void clear();
virtual void redraw();
void set_frame();
Go to the first, previous, next, last section, table of contents.