Class Text
- java.lang.Object
-
- com.pdf_tools.fourheights.pdftoolbox.internal.NativeBase
-
- com.pdf_tools.fourheights.pdftoolbox.internal.NativeObject
-
- com.pdf_tools.fourheights.pdftoolbox.pdf.content.Text
-
- All Implemented Interfaces:
java.lang.Iterable<TextFragment>
,java.util.Collection<TextFragment>
,java.util.List<TextFragment>
public class Text extends NativeObject implements java.util.List<TextFragment>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, TextFragment element)
Not supported.boolean
add(TextFragment element)
Not supported.boolean
addAll(int index, java.util.Collection<? extends TextFragment> elements)
Not supported.boolean
addAll(java.util.Collection<? extends TextFragment> elements)
Not supported.void
clear()
boolean
contains(java.lang.Object object)
boolean
containsAll(java.util.Collection<?> objects)
static Text
create(Document targetDocument)
Create a textTextFragment
get(int index)
int
indexOf(java.lang.Object obj)
boolean
isEmpty()
java.util.Iterator<TextFragment>
iterator()
int
lastIndexOf(java.lang.Object obj)
java.util.ListIterator<TextFragment>
listIterator()
java.util.ListIterator<TextFragment>
listIterator(int index)
TextFragment
remove(int index)
boolean
remove(java.lang.Object object)
boolean
removeAll(java.util.Collection<?> objects)
boolean
retainAll(java.util.Collection<?> objects)
TextFragment
set(int index, TextFragment element)
Not supported.int
size()
java.util.List<TextFragment>
subList(int fromIndex, int toIndex)
java.lang.Object[]
toArray()
<T> T[]
toArray(T[] array)
-
Methods inherited from class com.pdf_tools.fourheights.pdftoolbox.internal.NativeObject
equals, hashCode
-
-
-
-
Method Detail
-
create
public static Text create(Document targetDocument)
Create a text
The returned text object is not yet used on any page, but it is associated with the given target document.- Parameters:
targetDocument
- the output document with which the returned object is associated- Returns:
- the newly created text object
- Throws:
java.lang.IllegalArgumentException
- if thetargetDocument
argument has already been closedjava.lang.IllegalArgumentException
- if thetargetDocument
argument is read-onlyjava.lang.IllegalArgumentException
- iftargetDocument
isnull
-
addAll
public boolean addAll(java.util.Collection<? extends TextFragment> elements)
Not supported.- Specified by:
addAll
in interfacejava.util.Collection<TextFragment>
- Specified by:
addAll
in interfacejava.util.List<TextFragment>
-
addAll
public boolean addAll(int index, java.util.Collection<? extends TextFragment> elements)
Not supported.- Specified by:
addAll
in interfacejava.util.List<TextFragment>
-
contains
public boolean contains(java.lang.Object object)
- Specified by:
contains
in interfacejava.util.Collection<TextFragment>
- Specified by:
contains
in interfacejava.util.List<TextFragment>
-
containsAll
public boolean containsAll(java.util.Collection<?> objects)
- Specified by:
containsAll
in interfacejava.util.Collection<TextFragment>
- Specified by:
containsAll
in interfacejava.util.List<TextFragment>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Collection<TextFragment>
- Specified by:
isEmpty
in interfacejava.util.List<TextFragment>
-
iterator
public java.util.Iterator<TextFragment> iterator()
- Specified by:
iterator
in interfacejava.util.Collection<TextFragment>
- Specified by:
iterator
in interfacejava.lang.Iterable<TextFragment>
- Specified by:
iterator
in interfacejava.util.List<TextFragment>
-
listIterator
public java.util.ListIterator<TextFragment> listIterator()
- Specified by:
listIterator
in interfacejava.util.List<TextFragment>
-
listIterator
public java.util.ListIterator<TextFragment> listIterator(int index)
- Specified by:
listIterator
in interfacejava.util.List<TextFragment>
-
remove
public boolean remove(java.lang.Object object)
- Specified by:
remove
in interfacejava.util.Collection<TextFragment>
- Specified by:
remove
in interfacejava.util.List<TextFragment>
-
removeAll
public boolean removeAll(java.util.Collection<?> objects)
- Specified by:
removeAll
in interfacejava.util.Collection<TextFragment>
- Specified by:
removeAll
in interfacejava.util.List<TextFragment>
-
retainAll
public boolean retainAll(java.util.Collection<?> objects)
- Specified by:
retainAll
in interfacejava.util.Collection<TextFragment>
- Specified by:
retainAll
in interfacejava.util.List<TextFragment>
-
subList
public java.util.List<TextFragment> subList(int fromIndex, int toIndex)
- Specified by:
subList
in interfacejava.util.List<TextFragment>
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interfacejava.util.Collection<TextFragment>
- Specified by:
toArray
in interfacejava.util.List<TextFragment>
-
toArray
public <T> T[] toArray(T[] array)
- Specified by:
toArray
in interfacejava.util.Collection<TextFragment>
- Specified by:
toArray
in interfacejava.util.List<TextFragment>
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection<TextFragment>
- Specified by:
size
in interfacejava.util.List<TextFragment>
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Collection<TextFragment>
- Specified by:
clear
in interfacejava.util.List<TextFragment>
-
indexOf
public int indexOf(java.lang.Object obj)
- Specified by:
indexOf
in interfacejava.util.List<TextFragment>
-
lastIndexOf
public int lastIndexOf(java.lang.Object obj)
- Specified by:
lastIndexOf
in interfacejava.util.List<TextFragment>
-
add
public boolean add(TextFragment element)
Not supported.- Specified by:
add
in interfacejava.util.Collection<TextFragment>
- Specified by:
add
in interfacejava.util.List<TextFragment>
-
add
public void add(int index, TextFragment element)
Not supported.- Specified by:
add
in interfacejava.util.List<TextFragment>
-
get
public TextFragment get(int index)
- Specified by:
get
in interfacejava.util.List<TextFragment>
-
remove
public TextFragment remove(int index)
- Specified by:
remove
in interfacejava.util.List<TextFragment>
-
set
public TextFragment set(int index, TextFragment element)
Not supported.- Specified by:
set
in interfacejava.util.List<TextFragment>
-
-