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


EZDQueue -- Graphical Representation of a Queue

SYNOPSIS

#include <CNCL/EZDQueue.h>

TYPE

CN_EZDQUEUE

BASE CLASSES

EZDObject

DERIVED CLASSES

None

RELATED CLASSES

EZDServer

DESCRIPTION:


EZDQueue is the graphical representation of a queue. This drawing is handled as an EZDObject, in which x is the most left and y the middle axis' coordinate. The bar, itself an EZDObject, is representing the amount of tasks waiting inside the queue.
Constructors:

EZDQueue();
EZDQueue(Param *param);
EZDQueue(int x, int y, int width = WIDTH, int heigth = HEIGTH, int tail = TAIL);
EZDQueue(const CNString &name, int x, int y, int width = WIDTH, int heigth = HEIGTH,
int tail = TAIL);
Initializes an EZDQueue as an EZDObject (default object name : "queue" ) inside the current drawing at the coordinates (x,y) ( default value (0,0) ). Width ( 100 pixels ) and heigth ( 20 pixels ) are the queue body's rectangle size measured in pixels, tail ( 20 pixels ) the tail's length.


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

int left() const;
int rigth() const;
int upper() const;
int lower() const;
Returns the left, right, upper or lower coordinate of the object queue inside the current drawing.
virtual void redraw();
Redraws this queue in the current drawing.
int length() const;
int get_length() const;
void length(int l);
void set_length(int l);
Get/set length of the queue-bar.
void color(const CNString &c);
Sets the color of the queue-bar to c and redraws the queue.


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