Class TextHyperlinkSelection

    • Constructor Detail

      • TextHyperlinkSelection

        public TextHyperlinkSelection​(TextAElement anchorElement,
                                      List<Integer> startPosition)
        Constructor.
        Parameters:
        AnchorElement - the AnchorElement of the Anchor element.
        startPosition - the startPosition of the Anchor element.
      • TextHyperlinkSelection

        public TextHyperlinkSelection​(TextAElement anchorElement,
                                      List<Integer> startPosition,
                                      List<Integer> endPosition)
        Constructor.
        Parameters:
        AnchorElement - the AnchorElement of the Anchor element.
        startPosition - the startPosition of the Anchor element.
    • Method Detail

      • getAElement

        public TextAElement getAElement()
        Returns the AnchorElement of the Anchor element.
        Returns:
        the AnchorElement of the Anchor element.
      • getOverLappingHyperlinkSelection

        public TextHyperlinkSelection getOverLappingHyperlinkSelection​(TreeSet<TextSelection> set)
        Parameters:
        TreeSet - of TextSelections, it is assumed there is only one anchor in such set.
        Returns:
        the first overlapping text Element in the given set (ascending searched).