|
PDF Clown 0.0.8 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.stefanochizzolini.clown.tools.PageManager
public class PageManager
Tool for page management.
| Constructor Summary | |
|---|---|
PageManager()
|
|
PageManager(Document document)
|
|
| Method Summary | |
|---|---|
void |
add(Collection<Page> pages)
Appends a collection of pages to the end of the document. |
void |
add(Document document)
Appends a document to the end of the document. |
void |
add(int index,
Collection<Page> pages)
Inserts a collection of pages at the specified position in the document. |
void |
add(int index,
Document document)
Inserts a document at the specified position in the document. |
Document |
extract(int beginIndex,
int endIndex)
Extracts a page range from the document. |
Document |
getDocument()
Gets the document being manipulated. |
void |
move(int beginIndex,
int endIndex,
int targetIndex)
Moves a page range to a target position within the document. |
void |
remove(int beginIndex,
int endIndex)
Removes a page range from the document. |
void |
setDocument(Document value)
Sets the document to manipulate. |
List<Document> |
split()
Splits the document into multiple single-paged documents. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PageManager()
public PageManager(Document document)
| Method Detail |
|---|
public void add(Document document)
document - The document to add.public void add(Collection<Page> pages)
pages - The pages to add.
public void add(int index,
Document document)
index - Position at which the document is to be inserted.document - The document to be inserted.
public void add(int index,
Collection<Page> pages)
index - Position at which the pages are to be inserted.pages - The pages to be inserted.
public Document extract(int beginIndex,
int endIndex)
beginIndex - The beginning index, inclusive.endIndex - The ending index, exclusive.
public void move(int beginIndex,
int endIndex,
int targetIndex)
beginIndex - The beginning index, inclusive.endIndex - The ending index, exclusive.targetIndex - The target index.public Document getDocument()
public void remove(int beginIndex,
int endIndex)
beginIndex - The beginning index, inclusive.endIndex - The ending index, exclusive.public void setDocument(Document value)
public List<Document> split()
|
PDF Clown 0.0.8 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||