31.01.2014 Views

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

void gw.display(int x, int y) displays gw with upper left corner at (x, y). <strong>The</strong><br />

predefined constant window :: center can be used<br />

to center the window horizontally (if passed as x)<br />

or vertically (if passed as y).<br />

void gw.display( ) displays gw at default position.<br />

bool gw.edit( ) enters the edit mode of GraphWin that allows to<br />

change the graph interactively by operations associated<br />

with certain mouse events or by choosing<br />

operations from the windows menu bar (see<br />

section about edit-mode) for a description of the<br />

available commands and operations). Edit mode<br />

is terminated by either pressing the done button<br />

or by selecting exit from the file menu. In the first<br />

case the result of the edit operation is true and in<br />

the latter case the result is false.<br />

bool gw.open(int x, int y) displays the window at position (x, y), enters edit<br />

mode and return the corresponding result.<br />

bool gw.open( ) as above, but displays the window at default position.<br />

void gw.close( ) closes the window.<br />

void<br />

gw.message(const char ∗ msg)<br />

displays the message msg at the top of the window.<br />

string gw.get message( ) returns the current messsage string.<br />

void gw.del message( ) deletes a previously written message.<br />

double gw.get xmin( ) returns the minimal x-coordinate of the window.<br />

double gw.get ymin( ) returns the minimal y-coordinate of the window.<br />

double gw.get xmax( ) returns the maximal x-coordinate of the window.<br />

double gw.get ymax( ) returns the maximal y-coordinate of the window.<br />

void<br />

gw.win init(double xmin, double xmax, double ymin)<br />

sets the coordinates of the window to<br />

(xmin, xmax, ymin).<br />

void gw.redraw( ) redraws the graph. If the flush parameter of gw<br />

is set to false (see set flush) this operation can be<br />

used to display the current state of the graph after<br />

a number of update operations.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!