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
.
DynamicGraph-class
.
NULL,
or frameModels
of list(...)$Arguments
. DynamicGraphModel-class
.
NULL,
or frameViews
of list(...)$Arguments
.
If frameViews
is set to NULL
,
the default value, then a new model frame will be created
by drawModel
. DynamicGraphView-class
.
If graphWindow
is set to the value of
list(...)$Arguments$graphWindow
then
the calling graph window will be redrawn.
If graphWindow
is set to NULL
,
the default value,
then a new slave graph window will be drawn. dynamicGraphMain
.
If dg
is given (set to a value different from NULL)
then this value is used, else the value extracted from
list(...)$Arguments
is used. dynamicGraphMain
.
If object
is given then this value is used,
else the value extracted from list(...)$Arguments
is used. frameModelsEnv
is then environment
for storing hidden values of the frameModels
.
Extracted from frameModels
by default. initialWindow
is TRUE
then the labels of the edges are updated. returnNewMaster
is TRUE
then .... redraw
is TRUE
then .... setUpdateCountModelMain
is TRUE then
views of the same model will be updated. returnFrameModel
is TRUE
then .... dynamicGraphMain
,
see dg.control
. list(...)$Arguments
. dynamicGraphMain
.
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.
dynamicGraphMain
,
DynamicGraph
DynamicGraph-class
, and
DynamicGraphModel-class
.