Class MultiLineOperator

    • Field Detail

      • useConsistentStyle

        protected boolean useConsistentStyle
        Should the lines have a consistent visual style?
      • maxLineEmSpace

        protected float maxLineEmSpace
        The maximal distance of two areas allowed within a single line (in 'em' units)
    • Constructor Detail

      • MultiLineOperator

        public MultiLineOperator()
      • MultiLineOperator

        public MultiLineOperator​(boolean useConsistentStyle,
                                 float maxLineEmSpace)
    • Method Detail

      • getId

        public String getId()
        Description copied from interface: Service
        Obtains a unique ID of the service
      • getName

        public String getName()
        Description copied from interface: Service
        Obtains a descriptive name of the service that may be presented to the user.
        Returns:
        the operator name
      • getDescription

        public String getDescription()
        Description copied from interface: Service
        Obtains a longer description of the service.
        Returns:
        the description
      • getCategory

        public String getCategory()
        Description copied from interface: Service
        A category that allows to group similar services.
        Returns:
        Category name or null when no category is assigned.
      • getUseConsistentStyle

        public boolean getUseConsistentStyle()
      • setUseConsistentStyle

        public void setUseConsistentStyle​(boolean useConsistentStyle)
      • getMaxLineEmSpace

        public float getMaxLineEmSpace()
      • setMaxLineEmSpace

        public void setMaxLineEmSpace​(float maxLineEmSpace)
      • apply

        public void apply​(AreaTree atree)
        Description copied from interface: AreaTreeOperator
        Applies the operation to the given tree.
        Parameters:
        atree - the area tree to be modified.
      • apply

        public void apply​(AreaTree atree,
                          Area root)
        Description copied from interface: AreaTreeOperator
        Applies the operation to the given subtree of the tree.
        Parameters:
        atree - the area tree to be modified.
        root - the root node of the affected subtree.
      • recursiveJoinAreas

        protected void recursiveJoinAreas​(Area root)
        Goes through all the areas in the tree and tries to join their sub-areas into single areas.
      • joinAreas

        protected void joinAreas​(Area a)
        Goes through the grid of areas and joins the adjacent visual areas that are not separated by anything