de.cau.cs.kieler.kiml.grana.util
Class DiagramAnalyzer

java.lang.Object
  extended by de.cau.cs.kieler.kiml.grana.util.DiagramAnalyzer

public final class DiagramAnalyzer
extends Object

This class provides static methods to start an analysis of a given diagram. Most of the defined methods provide a convinience API.

Rating red

Method Summary
static Object analyse(IEditorPart editorPart, EditPart editPart, AbstractInfoAnalysis analysis, boolean progressBar)
          Starts the given analysis on a diagram.
static Object analyse(IEditorPart editorPart, EditPart editPart, AbstractInfoAnalysis analysis, Map<String,Object> options, boolean progressBar)
          Starts the given analysis on a diagram with predefined options.
static Map<String,Object> analyse(IEditorPart editorPart, EditPart editPart, List<AbstractInfoAnalysis> analyses, boolean progressBar)
          Starts the given analyses on the diagram.
static Map<String,Object> analyse(IEditorPart editorPart, EditPart editPart, List<AbstractInfoAnalysis> analyses, Map<String,Object> options, boolean progressBar)
          Starts the given analyses on the diagram with predefined options.
static Object analyse(KNode parentNode, AbstractInfoAnalysis analysis, boolean progressBar)
          Starts the given analysis on a diagram.
static Object analyse(KNode parentNode, AbstractInfoAnalysis analysis, IKielerProgressMonitor monitor)
          Starts the given analysis on a diagram using a progress monitor.
static Object analyse(KNode parentNode, AbstractInfoAnalysis analysis, Map<String,Object> options, boolean progressBar)
          Starts the given analysis on a diagram with predefined options.
static Object analyse(KNode parentNode, AbstractInfoAnalysis analysis, Map<String,Object> options, IKielerProgressMonitor monitor)
          Starts the given analysis on a diagram with predefined options and using a progress monitor.
static Map<String,Object> analyse(KNode parentNode, List<AbstractInfoAnalysis> analyses, boolean progressBar)
          Starts the given analyses on the kgraph.
static Map<String,Object> analyse(KNode parentNode, List<AbstractInfoAnalysis> analyses, IKielerProgressMonitor monitor)
          Starts the given analyses on the kgraph using a progress monitor.
static Map<String,Object> analyse(KNode parentNode, List<AbstractInfoAnalysis> analyses, Map<String,Object> options, boolean progressBar)
          Starts the given analyses on the kgraph with predefined options.
static Map<String,Object> analyse(KNode parentNode, List<AbstractInfoAnalysis> analyses, Map<String,Object> options, IKielerProgressMonitor monitor)
          Starts the given analyses on the kgraph with predefined options and using a progress monitor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

analyse

public static Object analyse(IEditorPart editorPart,
                             EditPart editPart,
                             AbstractInfoAnalysis analysis,
                             boolean progressBar)
Starts the given analysis on a diagram.

Parameters:
editorPart - the editor the analysis is performed on, or null if the diagram is not part of an editor
editPart - the edit part the analysis is performed on, or null if the whole diagram shall be analysed
analysis - the analysis to perform
progressBar - if true, a progress bar is displayed
Returns:
the analysis result

analyse

public static Object analyse(IEditorPart editorPart,
                             EditPart editPart,
                             AbstractInfoAnalysis analysis,
                             Map<String,Object> options,
                             boolean progressBar)
Starts the given analysis on a diagram with predefined options.

Parameters:
editorPart - the editor the analysis is performed on, or null if the diagram is not part of an editor
editPart - the edit part the analysis is performed on, or null if the whole diagram shall be analysed
analysis - the analysis to perform
options - the options
progressBar - if true, a progress bar is displayed
Returns:
the analysis result

analyse

public static Map<String,Object> analyse(IEditorPart editorPart,
                                         EditPart editPart,
                                         List<AbstractInfoAnalysis> analyses,
                                         boolean progressBar)
Starts the given analyses on the diagram.

Parameters:
editorPart - the editor the analysis is performed on, or null if the diagram is not part of an editor
editPart - the edit part the analysis is performed on, or null if the whole diagram shall be analysed
analyses - the analyses to perform
progressBar - if true, a progress bar is displayed
Returns:
the analyses results

analyse

public static Map<String,Object> analyse(IEditorPart editorPart,
                                         EditPart editPart,
                                         List<AbstractInfoAnalysis> analyses,
                                         Map<String,Object> options,
                                         boolean progressBar)
Starts the given analyses on the diagram with predefined options.

Parameters:
editorPart - the editor the analysis is performed on, or null if the diagram is not part of an editor
editPart - the edit part the analysis is performed on, or null if the whole diagram shall be analysed
analyses - the analyses to perform
options - the options
progressBar - if true, a progress bar is displayed
Returns:
the analyses results

analyse

public static Object analyse(KNode parentNode,
                             AbstractInfoAnalysis analysis,
                             boolean progressBar)
Starts the given analysis on a diagram.

Parameters:
parentNode - the graph the analyses shall be performed on
analysis - the analysis to perform
progressBar - if true, a progress bar is displayed
Returns:
the analysis result

analyse

public static Object analyse(KNode parentNode,
                             AbstractInfoAnalysis analysis,
                             Map<String,Object> options,
                             boolean progressBar)
Starts the given analysis on a diagram with predefined options.

Parameters:
parentNode - the graph the analyses shall be performed on
analysis - the analysis to perform
options - the options
progressBar - if true, a progress bar is displayed
Returns:
the analysis result

analyse

public static Map<String,Object> analyse(KNode parentNode,
                                         List<AbstractInfoAnalysis> analyses,
                                         boolean progressBar)
Starts the given analyses on the kgraph.

Parameters:
parentNode - the graph the analyses shall be performed on
analyses - the analyses to perform
progressBar - if true, a progress bar is displayed
Returns:
the analyses results

analyse

public static Map<String,Object> analyse(KNode parentNode,
                                         List<AbstractInfoAnalysis> analyses,
                                         Map<String,Object> options,
                                         boolean progressBar)
Starts the given analyses on the kgraph with predefined options.

Parameters:
parentNode - the graph the analyses shall be performed on
analyses - the analyses to perform
options - the options
progressBar - if true, a progress bar is displayed
Returns:
the analyses results

analyse

public static Object analyse(KNode parentNode,
                             AbstractInfoAnalysis analysis,
                             IKielerProgressMonitor monitor)
Starts the given analysis on a diagram using a progress monitor.

Parameters:
parentNode - the graph the analyses shall be performed on
analysis - the analysis to perform
monitor - the progress monitor
Returns:
the analysis result

analyse

public static Object analyse(KNode parentNode,
                             AbstractInfoAnalysis analysis,
                             Map<String,Object> options,
                             IKielerProgressMonitor monitor)
Starts the given analysis on a diagram with predefined options and using a progress monitor.

Parameters:
parentNode - the graph the analyses shall be performed on
analysis - the analysis to perform
options - the options
monitor - the progress monitor
Returns:
the analysis result

analyse

public static Map<String,Object> analyse(KNode parentNode,
                                         List<AbstractInfoAnalysis> analyses,
                                         IKielerProgressMonitor monitor)
Starts the given analyses on the kgraph using a progress monitor.

Parameters:
parentNode - the graph the analyses shall be performed on
analyses - the analyses to perform
monitor - the progress monitor
Returns:
the analyses results

analyse

public static Map<String,Object> analyse(KNode parentNode,
                                         List<AbstractInfoAnalysis> analyses,
                                         Map<String,Object> options,
                                         IKielerProgressMonitor monitor)
Starts the given analyses on the kgraph with predefined options and using a progress monitor.

Parameters:
parentNode - the graph the analyses shall be performed on
analyses - the analyses to perform
options - the options
monitor - the progress monitor
Returns:
the analyses results