|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aspose.pdf.elements.PdfElementBase com.aspose.pdf.elements.Segments
public class Segments
Represents a collection of Segment objects.
Constructor Summary | |
---|---|
Segments(ElementFactory elementFactory)
Initializes a new instance of the Segments class. |
|
Segments(ElementFactory elementFactory,
Text parentText)
Initializes a new instance of the Segments class. |
Method Summary | |
---|---|
Segment |
add()
Initializes a new instance of the Segment class and add it to the Segments collection. |
void |
add(Segment segment)
Adds a new Segment object into the collection. |
Segment |
add(java.lang.String segmentString)
Initializes a new instance of the Segment class and add it to the Segments collection. |
void |
clear()
Clear segments of Text. |
java.lang.Object |
clone()
Segments does not support clone method. |
Segment |
getAt(int index)
Gets the Segment object at specified position. |
org.w3c.dom.Element |
getDOMElement()
Gets a DOM representation of the pdf element. |
int |
indexOf(Segment segment)
Gets the index of a specified segment in the collection. |
void |
Insert(int index,
Segment segment)
Inserts a new Segment object into the collection at specified position. |
boolean |
isEmpty()
Returns true if the collection contains no segment. |
java.util.Iterator |
iterator()
Returns an iterator over the segment objects in segments in proper sequence. |
void |
remove(int index)
Removes a Segment object from the collection at the specified position. |
void |
remove(Segment segment)
Removes a Segment object from the collection. |
int |
size()
Gets the size of segment 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 |
---|
public Segments(ElementFactory elementFactory)
elementFactory
- xsl-fo DOM element factory.public Segments(ElementFactory elementFactory, Text parentText)
elementFactory
- xsl-fo DOM element factory.parentText
- The paraent Text of Segments.Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class PdfElementBase
java.lang.CloneNotSupportedException
Object.clone()
public void add(Segment segment)
segment
- the segment that will be added.public Segment add()
public Segment add(java.lang.String segmentString)
segmentString
- The content string of segment.
public void clear()
public int indexOf(Segment segment)
public void Insert(int index, Segment segment)
index
- The position that the segment will be inserted at.segment
- the segment that willed inserted.public Segment getAt(int index)
index
- The index of the segment that will be returned.
public void remove(Segment segment)
segment
- The segment that willed removed.public void remove(int index)
index
- The index of the segment that willed removed.public int size()
public java.util.Iterator iterator()
public boolean isEmpty()
public org.w3c.dom.Element getDOMElement() throws AsposeBaseException
PdfElementBase
getDOMElement
in class PdfElementBase
AsposeBaseException
PdfElementBase.getDOMElement()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |