|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kiml.grana.analyses.NodeSizeAnalysis
public class NodeSizeAnalysis
A drawing analysis that computes the minimum, maximum and average node size of nodes
that are not compound nodes. (that is, that don't contain other nodes) Returns a
four-component result (int min, float avg, int max, int nodes)
, where
nodes
denotes the number of nodes that were actually included in the
analysis.
Field Summary | |
---|---|
static String |
ANALYSIS_ID
ID of this analysis. |
static int |
INDEX_AVG
Index of the average node size in the result array. |
static int |
INDEX_MAX
Index of the maximum node size in the result array. |
static int |
INDEX_MIN
Index of the minimum node size in the result array. |
static int |
INDEX_NODES
Index of the number of analyzed nodes in the result array. |
Constructor Summary | |
---|---|
NodeSizeAnalysis()
|
Method Summary | |
---|---|
static Rectangle2D.Float |
computeNodeRect(KNode node,
boolean includeLabel,
boolean includePorts,
boolean includePortLabels)
Computes the bounding box of the given node. |
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 |
---|
public static final String ANALYSIS_ID
public static final int INDEX_MIN
public static final int INDEX_AVG
public static final int INDEX_MAX
public static final int INDEX_NODES
Constructor Detail |
---|
public NodeSizeAnalysis()
Method Detail |
---|
public Object doAnalysis(KNode parentNode, Map<String,Object> results, IKielerProgressMonitor progressMonitor)
doAnalysis
in interface IAnalysis
parentNode
- the parent node which the analysis is performed onresults
- 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
public static Rectangle2D.Float computeNodeRect(KNode node, boolean includeLabel, boolean includePorts, boolean includePortLabels)
node
- the node whose bounding box to compute.includeLabel
- true
if the node's label should be included in the bounding box.includePorts
- true
if the node's ports should be included in the bounding box.includePortLabels
- true
if the labels of ports should be included in the
bounding box.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |