Class GroupAnalyzerByDOM


  • public class GroupAnalyzerByDOM
    extends GroupAnalyzer
    A group analyzer that groups together the areas that are created by the same DOM element.
    Author:
    burgetr
    • Constructor Detail

      • GroupAnalyzerByDOM

        public GroupAnalyzerByDOM​(Area parent)
    • Method Detail

      • findSuperArea

        public Area findSuperArea​(Area sub,
                                  List<Area> selected)
        Description copied from class: GroupAnalyzer
        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.
        Overrides:
        findSuperArea in class GroupAnalyzer
        Parameters:
        sub - the subnode to start with
        selected - a vector that will be filled with the selected subnodes that should be contained in the new area
        Returns:
        the new empty area