com.aspose.slides.pptx
Class ShapesEx

java.lang.Object
  extended by com.aspose.slides.pptx.ShapesEx

public final class ShapesEx
extends java.lang.Object

Represents a collection of shapes.


Method Summary
 int addAutoShape(ShapeTypeEx shapeType, float x, float y, float width, float height)
           
 int addConnector(ShapeTypeEx shapeType, float x, float y, float width, float height)
           
 int addPictureFrame(ShapeTypeEx shapeType, float x, float y, float width, float height, ImageEx image)
           
 int addTable(float x, float y, double[] columnWidths, double[] rowHeights)
           
 ShapeEx get(int index)
          Gets the element at the specified index.
 java.lang.Object getParent()
          Returns a parent object for a Shapes collection.
 int indexOf(ShapeEx shape)
          Returns the zero-based index of the first occurrence of a shape in a collection.
 void insertAutoShape(int index, ShapeTypeEx shapeType, float x, float y, float width, float height)
           
 void insertConnector(int index, ShapeTypeEx shapeType, float x, float y, float width, float height)
           
 void insertConnector(int index, ShapeTypeEx shapeType, float x, float y, float width, float height, ImageEx image)
           
 void insertTable(int index, float x, float y, double[] columnWidths, double[] rowHeights)
           
 java.util.Iterator iterator()
          Returns an iterator for the entire collection.
 void remove(int index)
          Removes the element at the specified index of the collection.
 void remove(ShapeEx shape)
          Removes the first occurrence of a specific shape from the collection.
 void reorder(int index, ShapeEx shape)
           
 void reorder(int index, ShapeEx[] shapes)
           
 int size()
          Gets the number of elements actually contained in the collection.
 ShapeEx[] toArray()
           
 ShapeEx[] toArray(int startIndex, int count)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

size

public int size()
Gets the number of elements actually contained in the collection.


get

public ShapeEx get(int index)
Gets the element at the specified index.

Parameters:
index - index of the element to return.
Returns:
See ShapeEx.

indexOf

public int indexOf(ShapeEx shape)
Returns the zero-based index of the first occurrence of a shape in a collection.

Parameters:
shape - The shape to locate in a collection.
Returns:
The zero-based index of the first occurrence of shape within a collection, if found; otherwise, -1.

toArray

public ShapeEx[] toArray()

toArray

public ShapeEx[] toArray(int startIndex,
                         int count)

reorder

public void reorder(int index,
                    ShapeEx shape)

reorder

public void reorder(int index,
                    ShapeEx[] shapes)

addAutoShape

public int addAutoShape(ShapeTypeEx shapeType,
                        float x,
                        float y,
                        float width,
                        float height)

insertAutoShape

public void insertAutoShape(int index,
                            ShapeTypeEx shapeType,
                            float x,
                            float y,
                            float width,
                            float height)

addConnector

public int addConnector(ShapeTypeEx shapeType,
                        float x,
                        float y,
                        float width,
                        float height)

insertConnector

public void insertConnector(int index,
                            ShapeTypeEx shapeType,
                            float x,
                            float y,
                            float width,
                            float height)

addPictureFrame

public int addPictureFrame(ShapeTypeEx shapeType,
                           float x,
                           float y,
                           float width,
                           float height,
                           ImageEx image)

insertConnector

public void insertConnector(int index,
                            ShapeTypeEx shapeType,
                            float x,
                            float y,
                            float width,
                            float height,
                            ImageEx image)

addTable

public int addTable(float x,
                    float y,
                    double[] columnWidths,
                    double[] rowHeights)

insertTable

public void insertTable(int index,
                        float x,
                        float y,
                        double[] columnWidths,
                        double[] rowHeights)

remove

public void remove(int index)
Removes the element at the specified index of the collection.

Parameters:
index - The zero-based index of the element to remove.

remove

public void remove(ShapeEx shape)
Removes the first occurrence of a specific shape from the collection.

Parameters:
shape - The shape to remove from the collection.

iterator

public java.util.Iterator iterator()
Returns an iterator for the entire collection.


getParent

public java.lang.Object getParent()
Returns a parent object for a Shapes collection.