Package org.odftoolkit.odfdom.changes
Class TextHyperlinkSelection
java.lang.Object
org.odftoolkit.odfdom.changes.TextSelection
org.odftoolkit.odfdom.changes.TextHyperlinkSelection
- All Implemented Interfaces:
Comparable
- Author:
- svante.schubertATgmail.com
-
Field Summary
Fields inherited from class org.odftoolkit.odfdom.changes.TextSelection
mEndPosition, mSelectionElement, mStartPosition, mUrl
-
Constructor Summary
ConstructorDescriptionTextHyperlinkSelection
(TextAElement anchorElement, List<Integer> startPosition) Constructor.TextHyperlinkSelection
(TextAElement anchorElement, List<Integer> startPosition, List<Integer> endPosition) Constructor. -
Method Summary
Methods inherited from class org.odftoolkit.odfdom.changes.TextSelection
compareTo, getEndPosition, getSelectionElement, getStartPosition, getURL, hasUrl, overLapping, setEndPosition, setURL
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
-
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
-