public static class TextSelection.RangeList extends AbstractList<TextSelection.Range>
RangeList
is a read-only list of Range
objects.
The range may cover more than one page.modCount
Constructor and Description |
---|
RangeList(List<? extends TextSelection.Range> list,
Comparator<PageExtractor.Text> order)
Create a RangeList containing a list of
TextSelection.Range objects |
RangeList(TextSelection.Range range,
Comparator<PageExtractor.Text> order)
Create a RangeList containing a single
TextSelection.Range |
Modifier and Type | Method and Description |
---|---|
TextSelection.Range |
get(int index) |
float[] |
getCorners(PDFPage page)
Get the Corners of the area marked by this highlight.
|
Set<PDFPage> |
getPages()
Return the list of Pages included with this Range
|
AttributedString |
getStyledText()
Return the text included in this RangeList
|
StringBuffer |
getText()
Return the text included in this RangeList
|
boolean |
isValid()
Return true if this list is not empty and every Range it contains is valid,
false otherwise
|
int |
size() |
String |
toString() |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public RangeList(TextSelection.Range range, Comparator<PageExtractor.Text> order)
TextSelection.Range
public RangeList(List<? extends TextSelection.Range> list, Comparator<PageExtractor.Text> order)
TextSelection.Range
objectslist
- the list of TextSelection.Range
objectspublic TextSelection.Range get(int index)
get
in interface List<TextSelection.Range>
get
in class AbstractList<TextSelection.Range>
public int size()
size
in interface Collection<TextSelection.Range>
size
in interface List<TextSelection.Range>
size
in class AbstractCollection<TextSelection.Range>
public boolean isValid()
public Set<PDFPage> getPages()
public float[] getCorners(PDFPage page)
PageExtractor.Text.getCorners()
page
- the PDFPage that we want the corners for.public StringBuffer getText()
public AttributedString getStyledText()
public String toString()
toString
in class AbstractCollection<TextSelection.Range>
Copyright © 2001-2017 Big Faceless Organization