|
|||||||||
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.Shapes
public class Shapes
Represents a collection of Shape objects.
Constructor Summary | |
---|---|
Shapes(Section section)
Initializes a new instance of the Shapes class. |
Method Summary | |
---|---|
Shape |
add()
Initializes a new instance of the shape class and add it to the shapes collection. |
void |
add(Shape shape)
Adds a new shape object into the collection. |
void |
clear()
Clear shapes of Text. |
java.lang.Object |
clone()
Segments does not support clone method. |
Shape |
getAt(int index)
Gets the shape object at specified position. |
org.w3c.dom.Element |
getDOMElement()
Gets a DOM representation of the pdf element. |
int |
indexOf(Shape shape)
Gets the index of a specified shape int the collection. |
void |
Insert(int index,
Shape shape)
Inserts a new shape object into the collection at specified position. |
boolean |
isEmpty()
Returns true if the collection contains no shape. |
java.util.Iterator |
iterator()
Returns an iterator over the shape objects in shapes in proper sequence. |
void |
remove(int index)
Removes a shape object from the collection at the specified position. |
void |
remove(Shape shape)
Removes a shape object from the collection. |
int |
size()
Gets the size of shape 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 Shapes(Section section)
Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class PdfElementBase
java.lang.CloneNotSupportedException
Object.clone()
public void add(Shape shape)
shape
- the shape that will be added.public Shape add()
public void clear()
public int indexOf(Shape shape)
public void Insert(int index, Shape shape)
index
- The position that the shape will be inserted at.shape
- the shape that willed inserted.public Shape getAt(int index)
index
- The index of the shape that will be returned.
public void remove(Shape shape)
shape
- The shape that willed removed.public void remove(int index)
index
- The index of the shape 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 |