Class TextHyperlinkSelection

java.lang.Object
org.odftoolkit.odfdom.changes.TextSelection
org.odftoolkit.odfdom.changes.TextHyperlinkSelection
All Implemented Interfaces:
Comparable

public class TextHyperlinkSelection extends TextSelection implements Comparable
Author:
svante.schubertATgmail.com
  • Constructor Details

    • 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 Details

    • 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:
      set - 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).
    • toString

      public String toString()
      Overrides:
      toString in class Object