Go to the previous, next section.

EZDDiagWin -- Extra window with x-y diagram

SYNOPSIS

#include <CNCL/EZDDiagWin.h>

TYPE

CN_EZDDIAGWIN

BASE CLASSES

EZD

DERIVED CLASSES

None

RELATED CLASSES

None

DESCRIPTION


EZDDiagWin craetes a named window including a diagram. Actually there are three different styles (as an enum) implemeted in this class:
Constructors:

EZDDiagWin();
EZDDiagWin(CNParam *param);
EZDDiagWin(int w, int h, Style s=LINE);
EZDDiagWin(CNStringR n, int w, int h, Style s=LINE);
EZDDiagWin(CNStringR n, CNStringR title, int w, int h, Style s=LINE);
EZDDiagWin(CNStringR n, CNStringR title, int w, int h, int st, CNStringR cd, CNStringR cb,
Style s=LINE);
Initializes a named EZDDiagwin. title is the title of the window, w and h the window's width and height. st is the size of a step between two values (default: 1), cd is the color of the diagram, cb the color of the bar (out-of-range display), s the style of the diagram.

In addition to the member functions required by CNCL, CNEZDDiagWin provides:

void style(Style s);
Changes the style to s.

void add(int v);
Adds a new value v at the current x-position to the diagram.

void clear();
Clears the diagram window.

void set();
Sets current drawing to diagram window drawing.

Go to the previous, next section.