public class GroupAnalyzerByStyles extends GroupAnalyzer
grid, parent
Constructor and Description |
---|
GroupAnalyzerByStyles(AreaImpl parent,
int maxlevel,
boolean matchstyles)
Creates a new area analyzer.
|
Modifier and Type | Method and Description |
---|---|
AreaImpl |
findSuperArea(AreaImpl sub,
java.util.Vector<AreaImpl> selected)
Starts with a specified subarea and finds all the subareas that
may be joined with the first one.
|
getParent
public GroupAnalyzerByStyles(AreaImpl parent, int maxlevel, boolean matchstyles)
parent
- the area processed by the analyzermaxlevel
- maximal level of the areas that can be joined into a super areamatchstyles
- defines whether to compare the element styles while expandingpublic AreaImpl findSuperArea(AreaImpl sub, java.util.Vector<AreaImpl> selected)
GroupAnalyzer
findSuperArea
in class GroupAnalyzer
sub
- the subnode to start withselected
- a vector that will be filled with the selected subnodes
that should be contained in the new area