de.cau.cs.kieler.kiml.grana.batch
Class DiagramKGraphProvider

java.lang.Object
  extended by de.cau.cs.kieler.kiml.grana.batch.DiagramKGraphProvider
All Implemented Interfaces:
IKGraphProvider<IPath>

public class DiagramKGraphProvider
extends Object
implements IKGraphProvider<IPath>

The KGraph provider that retrieves a KGraph by opening a diagram file in an editor and using KIML to build the graph structure.

Rating red

Constructor Summary
DiagramKGraphProvider()
           
 
Method Summary
 KNode getKGraph(IPath parameter, IKielerProgressMonitor monitor)
          Returns a KGraph instance from a specific source using the parameter.
 boolean getLayoutBeforeAnalysis()
          Returns the option which specifies whether layout should be performed before the KGraph is built.
 void setLayoutBeforeAnalysis(boolean layoutBeforeAnalysisOption)
          Sets the option which specifies whether layout should be performed before the KGraph is built.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiagramKGraphProvider

public DiagramKGraphProvider()
Method Detail

getKGraph

public KNode getKGraph(IPath parameter,
                       IKielerProgressMonitor monitor)
Returns a KGraph instance from a specific source using the parameter.

Specified by:
getKGraph in interface IKGraphProvider<IPath>
Parameters:
parameter - the parameter
monitor - the progress monitor
Returns:
the KGraph instance

setLayoutBeforeAnalysis

public void setLayoutBeforeAnalysis(boolean layoutBeforeAnalysisOption)
Sets the option which specifies whether layout should be performed before the KGraph is built.

Parameters:
layoutBeforeAnalysisOption - true if layout should be performed before the kgraph generation

getLayoutBeforeAnalysis

public boolean getLayoutBeforeAnalysis()
Returns the option which specifies whether layout should be performed before the KGraph is built.

Returns:
true if layout should be performed before the kgraph generation