|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList
org.faceless.pdf2.viewer2.feature.TextSelection.RangeList
public static class TextSelection.RangeList
A RangeList is a read-only list of Range objects.
The range may cover more than one page.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
TextSelection.RangeList(List list)
Create a RangeList containing a list of TextSelection.Range objects |
|
TextSelection.RangeList(TextSelection.Range range)
Create a RangeList containing a single TextSelection.Range |
|
| Method Summary | |
|---|---|
Object |
get(int index)
|
float[] |
getCorners(PDFPage page)
Get the Corners of the area marked by this highlight. |
Set |
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()
|
| Methods inherited from class java.util.AbstractList |
|---|
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
|---|
public TextSelection.RangeList(TextSelection.Range range)
TextSelection.Range
public TextSelection.RangeList(List list)
TextSelection.Range objects
list - the list of TextSelection.Range objects| Method Detail |
|---|
public Object get(int index)
get in interface Listget in class AbstractListpublic int size()
size in interface Collectionsize in interface Listsize in class AbstractCollectionpublic boolean isValid()
public Set 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||