Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate

com.aspose.pdf.elements
Class Paragraphs

java.lang.Object
  extended bycom.aspose.pdf.elements.PdfElementBase
      extended bycom.aspose.pdf.elements.Paragraphs
All Implemented Interfaces:
java.lang.Cloneable

public class Paragraphs
extends PdfElementBase

Represents a collection of Paragraph objects.


Constructor Summary
Paragraphs(ElementFactory elementFactory)
          Initializes a new instance of the Paragraphs class.
 
Method Summary
 void add(Paragraph paragraph)
          Adds a new Paragraph object into the collection.
 void clear()
          Clear paragraphs of pdf.
 java.lang.Object clone()
          Paragraphs does not support clone method.
 Paragraph get(int index)
           
 org.w3c.dom.Element getDOMElement()
          Gets a DOM representation of the pdf element.
 int indexOf(Paragraph paragraph)
          Gets the index of a specified paragraph in the collection.
 void Insert(int index, Paragraph paragraph)
          Inserts a new Paragraph object into the collection at specified position.
 boolean isEmpty()
          Returns true if the collection contains no paragraph.
 java.util.Iterator iterator()
          Returns an iterator over the paragraph objects in paragraphs in proper sequence.
 void remove(int index)
          Removes a Paragraph object from the collection at the specified position.
 void remove(Paragraph paragraph)
          Removes a Paragraph object from the collection.
 int size()
          Gets the size of paragraph objects collection.
 
Methods inherited from class com.aspose.pdf.elements.PdfElementBase
getElementFactory, getID, getNameIndex, setID
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Paragraphs

public Paragraphs(ElementFactory elementFactory)
Initializes a new instance of the Paragraphs class.

Parameters:
elementFactory - xsl-fo DOM element factory.
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Paragraphs does not support clone method.

Overrides:
clone in class PdfElementBase
Throws:
java.lang.CloneNotSupportedException
See Also:
java.lang.Object#clone()

add

public void add(Paragraph paragraph)
Adds a new Paragraph object into the collection.

Parameters:
paragraph - the paragraph that will be added.

clear

public void clear()
Clear paragraphs of pdf.


indexOf

public int indexOf(Paragraph paragraph)
Gets the index of a specified paragraph in the collection.

Returns:
The index of the specified paragraph

Insert

public void Insert(int index,
                   Paragraph paragraph)
Inserts a new Paragraph object into the collection at specified position.

Parameters:
index - The position that the paragraph will be inserted at.
paragraph - the paragraph that willed inserted.

remove

public void remove(Paragraph paragraph)
Removes a Paragraph object from the collection.

Parameters:
paragraph - The paragraph that willed removed.

remove

public void remove(int index)
Removes a Paragraph object from the collection at the specified position.

Parameters:
index - The index of the paragraph that willed removed.

size

public int size()
Gets the size of paragraph objects collection.


iterator

public java.util.Iterator iterator()
Returns an iterator over the paragraph objects in paragraphs in proper sequence.


isEmpty

public boolean isEmpty()
Returns true if the collection contains no paragraph.


get

public Paragraph get(int index)
Returns:
Returns the element at the specified position in this list.

getDOMElement

public org.w3c.dom.Element getDOMElement()
                                  throws AsposeBaseException
Description copied from class: PdfElementBase
Gets a DOM representation of the pdf element.

Overrides:
getDOMElement in class PdfElementBase
Throws:
AsposeBaseException
See Also:
PdfElementBase.getDOMElement()