View Javadoc

1   package org.glassbox.graphview;
2   
3   import org.glassbox.executor.Executor;
4   
5   import de.fzi.wim.guibase.graphview.graph.*;
6   
7   /***
8      Not implemented yet.
9    */
10  public class OffScreenLayouter {
11      private Executor _executor;
12      private OffScreenLayoutStrategy _layout;
13  
14      /***
15         Constructor.
16         @param executor The executor to run the layout tasks.
17         @param layout The layout strategy to be used.
18       */
19      public OffScreenLayouter(Executor executor, Graph onscreengraph, OffScreenLayoutStrategy layout) {
20  	_executor = executor;
21  	_layout = layout;
22  	// _layout.getGraph().addGraphListener(new GraphHandler());
23      }
24  
25      /***
26         Do the layouting if necessary and notify the specified instance.
27         @param notify The object to be notified when the layouting is finished.
28       */
29      public void doLayout(OffScreenLayoutNotify notify) {
30  	// call shouldExecuteLayout() at strategy
31  	// if layout is unchanged: 
32  	//   if no layout task is running in the background: call notify.notifyLayoutUnchanged() 
33  	//   else do nothing
34  	// else
35  	//   cancel running layout task if one is running
36  	//   start new layout task
37      }
38  
39      /***
40      private class GraphHandler implements GraphListener {
41      }
42      */
43  
44      /***
45      private class LayoutTask implements VisibleExecutor.VisibleTask, StatusBarExecutor.Task {
46      }
47      */
48  }