Universitaet Bremen
FB3->Group BKB

->Main->Tutorial->Views->Multi-View
Home
uDraw(Graph)
Download
Service & Support
Legal



Multi-View

Tutorial Exercise 4.1: Multi-View: Using many Views to one Graph

First of all you have to load a graph. This time we do it by using a command-line argument when uDraw(Graph) is started. If you have already started uDraw(Graph) then quit it now with menu File/Exit uDraw(Graph). Start the system again by appending the file name of a graph or status file in the command-line. (Using the command-line may be unusual for users familiar with Microsoft® Windows®. Refer to your Windows® documentation on how to get access to the command-line. Otherwise you can skip this and load a graph with the ordinary user interface operations.) As you have already guessed, we suggest to use file "graph_example.udg" in the "samples/graphs" directory of the uDraw(Graph) distribution again. So for example, when you are in the topmost directory of the distribution, you can enter the following in the command-line (use the ".exe" suffix only on the Windows® platform):

bin/uDrawGraph(.exe) samples/graphs/graph_example.udg

After you have got a base window with a graph visualization, open a second view to this graph by selecting menu View/Open New View. This will give you an additional base window showing the same graph. In fact the two views (base windows) are connected with each other, so interactions in one view are also applied to the other view (except for scrolling and setting the scale). Make some fine-tuning steps by moving nodes to new positions. You can see that both views will be updated when interactions take place in any of the two windows.

Open even more views to this graph from any existing window to get a total number of, say, five windows. The maximal number of open base windows in uDraw(Graph) is 64. You can now close each individual view with menu File/Close without quitting uDraw(Graph). The last base window cannot be closed.

End of Exercise 4.1. Go back to the Section 4 Overview.