com.aspose.slides
Class Pictures

java.lang.Object
  extended by com.aspose.slides.Pictures
All Implemented Interfaces:
java.lang.Iterable<Picture>

public final class Pictures
extends java.lang.Object
implements java.lang.Iterable<Picture>

Represents the collection of a Pictures.


Constructor Summary
Pictures()
           
 
Method Summary
 int add(Picture picture)
          Adds the picture at the end of a collection.
 Picture get(int index)
          Returns the element at the specified index.
 Picture getPictureById(int id)
          Returns the Picture by its Id.
 java.util.Iterator iterator()
          Returns the iterator of a collection.
static void replaceInShapes(Picture src, Picture dst)
          Replace picture in all shapes with another picture by replacing identifiers.
 int size()
          Returns the number of elements in a collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pictures

public Pictures()
Method Detail

size

public int size()
Returns the number of elements in a collection.


get

public Picture get(int index)
Returns the element at the specified index.

Parameters:
index - index of element to return.

getPictureById

public Picture getPictureById(int id)
Returns the Picture by its Id.

Parameters:
id - picture's Id.
Returns:
The Picture object or null if picture was not found.

add

public int add(Picture picture)
Adds the picture at the end of a collection.

Parameters:
picture - the Picture to be added at the end of this collection.
Returns:
The unique Id of the added picture.

replaceInShapes

public static void replaceInShapes(Picture src,
                                   Picture dst)
Replace picture in all shapes with another picture by replacing identifiers.

Parameters:
src - The picture which should be replaced in all shapes.
dst - The picture which should be used in all shapes after replacement.

iterator

public java.util.Iterator iterator()
Returns the iterator of a collection.

Specified by:
iterator in interface java.lang.Iterable<Picture>