Class TextIntersectionCheckerTree

    • Method Summary

      Modifier and Type Method and Description
      void add(float[][] boxes)
      Add the specified boxes to the set of boxes maintained as occupied by text.
      boolean isValid(float[][] boxes)
      Test whether is would be valid to paint something that covers the specified boxes.
    • Constructor Detail

      • TextIntersectionCheckerTree

        public TextIntersectionCheckerTree()
    • Method Detail

      • add

        public void add(float[][] boxes)
        Description copied from interface: TextIntersectionChecker
        Add the specified boxes to the set of boxes maintained as occupied by text.
        Specified by:
        add in interface  TextIntersectionChecker
        Parameters:
        boxes - the boxes to mark as occupied.
      • isValid

        public boolean isValid(float[][] boxes)
        Description copied from interface: TextIntersectionChecker
        Test whether is would be valid to paint something that covers the specified boxes.
        Specified by:
        isValid in interface  TextIntersectionChecker
        Parameters:
        boxes - the boxes an object would occupy.
        Returns:
        whether the checker would allow to paint this.