Go to the first, previous, next, last section, table of contents.


EZDDiag -- x-y diagram as an EZDObject

SYNOPSIS

#include <CNCL/EZDDiag.h>

TYPE

CN_EZDDIAG

BASE CLASSES

EZDObject

DERIVED CLASSES

None

RELATED CLASSES

EZDDiagWin

DESCRIPTION


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);
Initializes 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);
Sets the style of the diagram to s.
void set_color_draw(CNString c);
Sets the drawing color to c.
void set_color_bar(CNString c);
Sets the color of the bar (out-of-range display) to c.
void add(int v);
Adds the value v to the diagram.
void clear();
Clears the diagram.
virtual void redraw();
Redraws the diagram.
void set_frame();
Sets a frame to the diagram.


Go to the first, previous, next, last section, table of contents.