DEPRECATED: Draw the dynamicGraph window and slaves
The functions drawModel
and redrawView
within
dynamicGraph
is for adding models to dynamicGraph
,
for adding new views of a model, and for overwriting an existing
view with an other model.
The functions can not be found at top level.
The functions are called by the methods
addModel
, addView
,
replaceModel
, and replaceView
.
frameModels |
An object of class |
frameViews |
An object of class |
graphWindow |
An object of class |
dg |
As for |
object |
As for |
frameModelsEnv |
|
initialWindow |
Logical, if |
returnNewMaster |
Logical, if |
redraw |
Logical, if |
setUpdateCountModelMain |
Logical. If
|
returnFrameModel |
Logical, if |
control |
Options for |
... |
Used to porting |
The drawModel
and redrawView
functions can be called
from the functions of menus (main menu and pop up menus) of
dynamicGraphMain
, from .GlobalEnv in
DynamicGraph
) via returned values from
dynamicGraphMain
(and from the methods of the model
object in the scope of the function dynamicGraphMain
).
As a result the graph window will be redrawn with an other view of the model,
possible with, e.g., other edges, an other model is drawn,
or a new slave graph window will appear.
If the value of a argument to drawModel
or redrawView
is set,
then this value is used, else the value from the calling window is used.
The value of the calling window is given in the argument
Arguments
in the call of the function of the menu item.
Below is an example, where items for labeling all the edges of the graph are added to the menu. The edges are visited, a test is computed for each edge, the label and width of the edge is updated, and the graph is drawn with the updated edge list.
The returned value from dynamicGraphMain
.
The functions can not be called from top level, that is,
the functions does not exists at .GlobalEnv, but only
in returned values from dynamicGraphMain
.
It is recommended that the functions not are called, but that
DynamicGraph
is used with the arguments
frameModels
, frameViews
, graphWindow
,
addModel
, addView
, and/or overwrite
to call the functions.
Jens Henrik Badsberg
See also dynamicGraphMain
,
DynamicGraph
DynamicGraph-class
, and
DynamicGraphModel-class
.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.