de.postfuse.ui
Interface RootGraph

All Superinterfaces:
Graph

public interface RootGraph
extends Graph

Every graph and subgraph strcuture needs a root. This root is represented by the RootGraph. It gives access to some methods which are not supported by nested graphs.

Author:
Peter

Method Summary
 void clearPreLayoutFilter()
          Reset the pre-layout-filter function.
 String getName()
           
 List<Filter> getPostLayoutFilterList()
          Here you can add some post-layout-filters which are later selectable in the graphical user interface.
 List<Filter> getPreLayoutFilterList()
          Here you can add some pre-layout-filters which are later selectable in the graphical user interface.
 void loadGraph(org.eclipse.core.resources.IFile file, org.eclipse.core.runtime.IProgressMonitor monitor)
          Loads the graph from an eclipse file.
 void loadGraph(InputStream in)
          Loads the graph from an stream
 void loadGraph(String file)
          Loads the graph from an GraphML-File
 void saveGraph(org.eclipse.core.resources.IFile file, org.eclipse.core.runtime.IProgressMonitor monitor)
          Saves the graph to an eclipse file The method is needed for the eclipse integration.
 void saveGraph(OutputStream out)
          Saves the graph to an output stream
 void saveGraph(String file)
          Saves the graph to an GraphML-File
 void setName(String name)
          Here you can give the graph a name.
 void setPreLayoutFilter(Filter filter)
          Set filter function which is applied before the layouter runs.
 
Methods inherited from interface de.postfuse.ui.Graph
addEdge, addEdge, addNode, addNode, addSubgraph, addSubgraph, getDefaultEdgeDesign, getDefaultNodeDesign, getDefaultSubgraphDesign, setDefaultEdgeDesign, setDefaultNodeDesign, setDefaultSubgraphDesign
 

Method Detail

setPreLayoutFilter

void setPreLayoutFilter(Filter filter)
Set filter function which is applied before the layouter runs.

Parameters:
filter - the new filter

clearPreLayoutFilter

void clearPreLayoutFilter()
Reset the pre-layout-filter function. This is only a convenience method.


getPostLayoutFilterList

List<Filter> getPostLayoutFilterList()
Here you can add some post-layout-filters which are later selectable in the graphical user interface.

Returns:
a list of filters

getPreLayoutFilterList

List<Filter> getPreLayoutFilterList()
Here you can add some pre-layout-filters which are later selectable in the graphical user interface.

Returns:
a list of filters

getName

String getName()
Returns:
the name of the graph

setName

void setName(String name)
Here you can give the graph a name. This name is shown if the graph is loaded in the view.

Parameters:
name -

loadGraph

void loadGraph(String file)
               throws prefuse.data.io.DataIOException
Loads the graph from an GraphML-File

Parameters:
file - an absolute file path
Throws:
prefuse.data.io.DataIOException

loadGraph

void loadGraph(InputStream in)
               throws prefuse.data.io.DataIOException
Loads the graph from an stream

Parameters:
in - an open input stream
Throws:
prefuse.data.io.DataIOException

loadGraph

void loadGraph(org.eclipse.core.resources.IFile file,
               org.eclipse.core.runtime.IProgressMonitor monitor)
               throws prefuse.data.io.DataIOException
Loads the graph from an eclipse file. The method is needed for the eclipse integration.

Parameters:
file - an eclipse file container.
monitor - an eclipse progress monitor
Throws:
prefuse.data.io.DataIOException

saveGraph

void saveGraph(String file)
               throws prefuse.data.io.DataIOException
Saves the graph to an GraphML-File

Parameters:
file - an absolute file path
Throws:
prefuse.data.io.DataIOException

saveGraph

void saveGraph(OutputStream out)
               throws prefuse.data.io.DataIOException
Saves the graph to an output stream

Parameters:
out -
Throws:
prefuse.data.io.DataIOException

saveGraph

void saveGraph(org.eclipse.core.resources.IFile file,
               org.eclipse.core.runtime.IProgressMonitor monitor)
               throws prefuse.data.io.DataIOException
Saves the graph to an eclipse file The method is needed for the eclipse integration.

Parameters:
file - an eclipse file container
monitor - an eclipse progress monitor
Throws:
prefuse.data.io.DataIOException