Class TextHyperlinkSelection
java.lang.Object
org.odftoolkit.odfdom.changes.TextSelection
org.odftoolkit.odfdom.changes.TextHyperlinkSelection
- All Implemented Interfaces:
Comparable<TextSelection>
- Author:
- svante.schubertATgmail.com
-
Field Summary
Fields inherited from class TextSelection
mEndPosition, mSelectionElement, mStartPosition, mUrl -
Constructor Summary
ConstructorsConstructorDescriptionTextHyperlinkSelection(TextAElement anchorElement, List<Integer> startPosition) Constructor.TextHyperlinkSelection(TextAElement anchorElement, List<Integer> startPosition, List<Integer> endPosition) Constructor. -
Method Summary
Methods inherited from class TextSelection
compareTo, getEndPosition, getSelectionElement, getStartPosition, getURL, hasUrl, overLapping, setEndPosition, setURL
-
Constructor Details
-
TextHyperlinkSelection
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
Returns the AnchorElement of the Anchor element.- Returns:
- the AnchorElement of the Anchor element.
-
getOverLappingHyperlinkSelection
- 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
-