PDF Clown
0.0.8

it.stefanochizzolini.clown.documents
Class PageAnnotations

java.lang.Object
  extended by it.stefanochizzolini.clown.objects.PdfObjectWrapper<PdfArray>
      extended by it.stefanochizzolini.clown.documents.PageAnnotations
All Implemented Interfaces:
Iterable<Annotation>, Collection<Annotation>, List<Annotation>

public class PageAnnotations
extends PdfObjectWrapper<PdfArray>
implements List<Annotation>

Page annotations [PDF:1.6:3.6.2].

Since:
0.0.7
Version:
0.0.8
Author:
Stefano Chizzolini (http://www.stefanochizzolini.it)

Method Summary
 boolean add(Annotation value)
           
 void add(int index, Annotation value)
           
 boolean addAll(Collection<? extends Annotation> values)
           
 boolean addAll(int index, Collection<? extends Annotation> values)
           
 void clear()
           
 PageAnnotations clone(Document context)
          Gets a clone of the object, registered inside the given document context.
 boolean contains(Object value)
           
 boolean containsAll(Collection<?> values)
           
 boolean equals(Object object)
           
 Annotation get(int index)
           
 Page getPage()
          Gets the page associated to these annotations.
 int hashCode()
           
 int indexOf(Object value)
           
 boolean isEmpty()
           
 Iterator<Annotation> iterator()
           
 int lastIndexOf(Object value)
           
 ListIterator<Annotation> listIterator()
           
 ListIterator<Annotation> listIterator(int index)
           
 Annotation remove(int index)
           
 boolean remove(Object value)
           
 boolean removeAll(Collection<?> values)
           
 boolean retainAll(Collection<?> values)
           
 Annotation set(int index, Annotation value)
           
 int size()
           
 List<Annotation> subList(int fromIndex, int toIndex)
           
 Object[] toArray()
           
<T> T[]
toArray(T[] values)
           
 
Methods inherited from class it.stefanochizzolini.clown.objects.PdfObjectWrapper
delete, getBaseDataObject, getBaseObject, getContainer, getDocument, getFile, setBaseObject, setContainer, update
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

clone

public PageAnnotations clone(Document context)
Description copied from class: PdfObjectWrapper
Gets a clone of the object, registered inside the given document context.

Specified by:
clone in class PdfObjectWrapper<PdfArray>
Parameters:
context - Which document the clone has to be registered in.

getPage

public Page getPage()
Gets the page associated to these annotations.


add

public void add(int index,
                Annotation value)
Specified by:
add in interface List<Annotation>

addAll

public boolean addAll(int index,
                      Collection<? extends Annotation> values)
Specified by:
addAll in interface List<Annotation>

get

public Annotation get(int index)
Specified by:
get in interface List<Annotation>

indexOf

public int indexOf(Object value)
Specified by:
indexOf in interface List<Annotation>

lastIndexOf

public int lastIndexOf(Object value)
Specified by:
lastIndexOf in interface List<Annotation>

listIterator

public ListIterator<Annotation> listIterator()
Specified by:
listIterator in interface List<Annotation>

listIterator

public ListIterator<Annotation> listIterator(int index)
Specified by:
listIterator in interface List<Annotation>

remove

public Annotation remove(int index)
Specified by:
remove in interface List<Annotation>

set

public Annotation set(int index,
                      Annotation value)
Specified by:
set in interface List<Annotation>

subList

public List<Annotation> subList(int fromIndex,
                                int toIndex)
Specified by:
subList in interface List<Annotation>

add

public boolean add(Annotation value)
Specified by:
add in interface Collection<Annotation>
Specified by:
add in interface List<Annotation>

addAll

public boolean addAll(Collection<? extends Annotation> values)
Specified by:
addAll in interface Collection<Annotation>
Specified by:
addAll in interface List<Annotation>

clear

public void clear()
Specified by:
clear in interface Collection<Annotation>
Specified by:
clear in interface List<Annotation>

contains

public boolean contains(Object value)
Specified by:
contains in interface Collection<Annotation>
Specified by:
contains in interface List<Annotation>

containsAll

public boolean containsAll(Collection<?> values)
Specified by:
containsAll in interface Collection<Annotation>
Specified by:
containsAll in interface List<Annotation>

equals

public boolean equals(Object object)
Specified by:
equals in interface Collection<Annotation>
Specified by:
equals in interface List<Annotation>
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Collection<Annotation>
Specified by:
hashCode in interface List<Annotation>
Overrides:
hashCode in class Object

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<Annotation>
Specified by:
isEmpty in interface List<Annotation>

remove

public boolean remove(Object value)
Specified by:
remove in interface Collection<Annotation>
Specified by:
remove in interface List<Annotation>

removeAll

public boolean removeAll(Collection<?> values)
Specified by:
removeAll in interface Collection<Annotation>
Specified by:
removeAll in interface List<Annotation>

retainAll

public boolean retainAll(Collection<?> values)
Specified by:
retainAll in interface Collection<Annotation>
Specified by:
retainAll in interface List<Annotation>

size

public int size()
Specified by:
size in interface Collection<Annotation>
Specified by:
size in interface List<Annotation>

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<Annotation>
Specified by:
toArray in interface List<Annotation>

toArray

public <T> T[] toArray(T[] values)
Specified by:
toArray in interface Collection<Annotation>
Specified by:
toArray in interface List<Annotation>

iterator

public Iterator<Annotation> iterator()
Specified by:
iterator in interface Iterable<Annotation>
Specified by:
iterator in interface Collection<Annotation>
Specified by:
iterator in interface List<Annotation>

PDF Clown
0.0.8

Project home page

Copyright © 2006-2010 Stefano Chizzolini. Some Rights Reserved.
This documentation is available under the terms of the GNU Free Documentation License.