de.cau.cs.kieler.kiml.grana.analyses
Class AreaAnalysis

java.lang.Object
  extended by de.cau.cs.kieler.kiml.grana.analyses.AreaAnalysis
All Implemented Interfaces:
IAnalysis

public class AreaAnalysis
extends Object
implements IAnalysis

A drawing analysis that computes the size of the area a graph drawing occupies. Returns a two-component result (int width, int height).

Rating red

Field Summary
static String ANALYSIS_ID
          ID of this analysis.
static int INDEX_HEIGHT
          Index of the area height in the result array.
static int INDEX_WIDTH
          Index of the area width in the result array.
 
Constructor Summary
AreaAnalysis()
           
 
Method Summary
 Object doAnalysis(KNode parentNode, Map<String,Object> results, IKielerProgressMonitor progressMonitor)
          Performs the actual analysis process and returns the results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANALYSIS_ID

public static final String ANALYSIS_ID
ID of this analysis.

See Also:
Constant Field Values

INDEX_WIDTH

public static final int INDEX_WIDTH
Index of the area width in the result array.

See Also:
Constant Field Values

INDEX_HEIGHT

public static final int INDEX_HEIGHT
Index of the area height in the result array.

See Also:
Constant Field Values
Constructor Detail

AreaAnalysis

public AreaAnalysis()
Method Detail

doAnalysis

public Object doAnalysis(KNode parentNode,
                         Map<String,Object> results,
                         IKielerProgressMonitor progressMonitor)
Performs the actual analysis process and returns the results. If more than one component have been specified for the analysis in the extension the method is expected to return an array.

Specified by:
doAnalysis in interface IAnalysis
Parameters:
parentNode - the parent node which the analysis is performed on
results - the result of analyses that were performed before this one (it should include the results of all dependency analyses)
progressMonitor - progress monitor used to keep track of progress
Returns:
the analysis results