Interface SearchHitComponentFactory

  • All Known Implementing Classes:
    SearchHitComponentFactoryImpl

    public interface SearchHitComponentFactory
    Class managing the creation of SearchHitComponents
    • Method Detail

      • createComponent

        SearchHitComponent createComponent​(String text,
                                           Rectangle2D.Double bounds,
                                           Page page,
                                           Controller controller)
        Creates a component with the given parameters
        Parameters:
        text - The text highlighted
        bounds - The bounds of the highlight
        page - The page
        controller - The document controller
        Returns:
        The created component
      • createComponent

        SearchHitComponent createComponent​(WordText wordText,
                                           Page page,
                                           Controller controller)
        Creates a component with the given parameters
        Parameters:
        wordText - The WordText object
        page - The page
        controller - The document controller
        Returns:
        The created component