Class Text

    • 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 the targetDocument argument has already been closed
        java.lang.IllegalArgumentException - if the targetDocument argument is read-only
        java.lang.IllegalArgumentException - if targetDocument is null
      • addAll

        public boolean addAll​(java.util.Collection<? extends TextFragment> elements)
        Not supported.
        Specified by:
        addAll in interface java.util.Collection<TextFragment>
        Specified by:
        addAll in interface java.util.List<TextFragment>
      • addAll

        public boolean addAll​(int index,
                              java.util.Collection<? extends TextFragment> elements)
        Not supported.
        Specified by:
        addAll in interface java.util.List<TextFragment>
      • contains

        public boolean contains​(java.lang.Object object)
        Specified by:
        contains in interface java.util.Collection<TextFragment>
        Specified by:
        contains in interface java.util.List<TextFragment>
      • containsAll

        public boolean containsAll​(java.util.Collection<?> objects)
        Specified by:
        containsAll in interface java.util.Collection<TextFragment>
        Specified by:
        containsAll in interface java.util.List<TextFragment>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<TextFragment>
        Specified by:
        isEmpty in interface java.util.List<TextFragment>
      • iterator

        public java.util.Iterator<TextFragment> iterator()
        Specified by:
        iterator in interface java.util.Collection<TextFragment>
        Specified by:
        iterator in interface java.lang.Iterable<TextFragment>
        Specified by:
        iterator in interface java.util.List<TextFragment>
      • listIterator

        public java.util.ListIterator<TextFragment> listIterator()
        Specified by:
        listIterator in interface java.util.List<TextFragment>
      • listIterator

        public java.util.ListIterator<TextFragment> listIterator​(int index)
        Specified by:
        listIterator in interface java.util.List<TextFragment>
      • remove

        public boolean remove​(java.lang.Object object)
        Specified by:
        remove in interface java.util.Collection<TextFragment>
        Specified by:
        remove in interface java.util.List<TextFragment>
      • removeAll

        public boolean removeAll​(java.util.Collection<?> objects)
        Specified by:
        removeAll in interface java.util.Collection<TextFragment>
        Specified by:
        removeAll in interface java.util.List<TextFragment>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> objects)
        Specified by:
        retainAll in interface java.util.Collection<TextFragment>
        Specified by:
        retainAll in interface java.util.List<TextFragment>
      • subList

        public java.util.List<TextFragment> subList​(int fromIndex,
                                                    int toIndex)
        Specified by:
        subList in interface java.util.List<TextFragment>
      • toArray

        public java.lang.Object[] toArray()
        Specified by:
        toArray in interface java.util.Collection<TextFragment>
        Specified by:
        toArray in interface java.util.List<TextFragment>
      • toArray

        public <T> T[] toArray​(T[] array)
        Specified by:
        toArray in interface java.util.Collection<TextFragment>
        Specified by:
        toArray in interface java.util.List<TextFragment>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<TextFragment>
        Specified by:
        size in interface java.util.List<TextFragment>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<TextFragment>
        Specified by:
        clear in interface java.util.List<TextFragment>
      • indexOf

        public int indexOf​(java.lang.Object obj)
        Specified by:
        indexOf in interface java.util.List<TextFragment>
      • lastIndexOf

        public int lastIndexOf​(java.lang.Object obj)
        Specified by:
        lastIndexOf in interface java.util.List<TextFragment>
      • add

        public boolean add​(TextFragment element)
        Not supported.
        Specified by:
        add in interface java.util.Collection<TextFragment>
        Specified by:
        add in interface java.util.List<TextFragment>
      • add

        public void add​(int index,
                        TextFragment element)
        Not supported.
        Specified by:
        add in interface java.util.List<TextFragment>