com.tensegrity.gui.swing.dialog.graphtools
Interface GraphCreationListener


public interface GraphCreationListener

The listener interface for receiving notification from the GraphLayoutDialog. This may be used by caller applications to create the graphs after user intended to create.

Version:
$Id: GraphCreationListener.java,v 1.7 2006/01/25 19:53:50 SharokhKhani Exp $
Author:
Sharokh Khani

Method Summary
 VisualGraph onCreateVisualGraph(Graph graph, boolean newwindow)
          This method will be called to notification listener that a visual graph is to create.
 void onPostCreateGraph(boolean applyLayout, boolean animation, int graphType)
          This method will be called after creating graph to allow the Listener-class to do post-initialization work.
 

Method Detail

onCreateVisualGraph

public VisualGraph onCreateVisualGraph(Graph graph,
                                       boolean newwindow)
This method will be called to notification listener that a visual graph is to create. The listener class has to create a viusal graph from the given graph und return it to the caller.

Parameters:
graph - the specified graph.
newwindow - indicates whether the graph should create in a new document
Returns:
the visual graph

onPostCreateGraph

public void onPostCreateGraph(boolean applyLayout,
                              boolean animation,
                              int graphType)
This method will be called after creating graph to allow the Listener-class to do post-initialization work.

Parameters:
applyLayout - indicates whether the layout should be applied by caller.
animation - indicates the animation state.
graphType - indicates the graph type.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.