Package cz.vutbr.fit.layout.segm.op
Class GroupAnalyzer
- java.lang.Object
-
- cz.vutbr.fit.layout.segm.op.GroupAnalyzer
-
- Direct Known Subclasses:
GroupAnalyzerByDOM
,GroupAnalyzerByStyles
public class GroupAnalyzer extends Object
A general analyzer to find area groups- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description GroupAnalyzer(Area parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Area
findSuperArea(Area sub, List<Area> selected)
Starts with a specified subarea and finds all the subareas that may be joined with the first one.Area
getParent()
AreaTopology
getTopology()
-
-
-
Field Detail
-
parent
protected Area parent
-
-
Constructor Detail
-
GroupAnalyzer
public GroupAnalyzer(Area parent)
-
-
Method Detail
-
getParent
public Area getParent()
-
getTopology
public AreaTopology getTopology()
-
findSuperArea
public Area findSuperArea(Area sub, List<Area> selected)
Starts with a specified subarea and finds all the subareas that may be joined with the first one. Returns an empty area and the vector of the areas inside. The subareas are not automatically added to the new area because this would cause their removal from the parent area.- Parameters:
sub
- the subnode to start withselected
- a vector that will be filled with the selected subnodes that should be contained in the new area- Returns:
- the new empty area
-
-