Interface TextIntersectionChecker

  • All Known Implementing Classes:
    TextIntersectionCheckerTree


    public interface TextIntersectionChecker
    An interface defining the methods necessary to implement a intersection based rendering of text.
    • 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.
    • Method Detail

      • add

        void add(float[][] boxes)
        Add the specified boxes to the set of boxes maintained as occupied by text.
        Parameters:
        boxes - the boxes to mark as occupied.
      • isValid

        boolean isValid(float[][] boxes)
        Test whether is would be valid to paint something that covers the specified boxes.
        Parameters:
        boxes - the boxes an object would occupy.
        Returns:
        whether the checker would allow to paint this.