com.aspose.slides
Class Shapes

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

Deprecated.

@Deprecated
public class Shapes
extends java.lang.Object
implements java.lang.Iterable<Shape>

Represents a collection of a shapes.


Method Summary
 Shape add(java.io.InputStream stream)
          Deprecated.  Load serialized shape from a stream and add it to the end of a collection.
 AudioFrame addAudioFrameEmbedded(int x, int y, int width, int height, com.aspose.ms.System.IO.Stream audio_stream)
          Deprecated.  Adds an AudioFrame with embedded audio file to the end of collection.
 AudioFrame addAudioFrameLinked(int x, int y, int width, int height, java.lang.String fname)
          Deprecated.  Adds an AudioFrame with linked audio file to the end of collection.
 Connector addConnector(int connectorType, java.awt.Point pt1, java.awt.Point pt2)
          Deprecated.  Adds a Connector to the end of collection.
 Ellipse addEllipse(int x, int y, int width, int height)
          Deprecated.  Adds an Ellipse to the end of collection.
 Line addLine(java.awt.Point pt1, java.awt.Point pt2)
          Deprecated.  Adds a Line to the end of collection.
 OleObjectFrame addOleObjectFrame(int x, int y, int width, int height, java.lang.String class_name, byte[] obj_data)
          Deprecated.  Adds an OleObjectFrame to the end of collection.
 PictureFrame addPictureFrame(int id, int x, int y, int width, int height)
          Deprecated.  Adds a PictureFrame to the end of collection.
 Polyline addPolyline(int x, int y, int width, int height, java.awt.geom.GeneralPath gp)
          Deprecated.  Adds a Polyline to the end of a collection.
 Rectangle addRectangle(int x, int y, int width, int height)
          Deprecated.  Adds a Rectangle to the end of collection.
 Table addTable(int x, int y, int width, int height, int columns, int rows)
          Deprecated.  Adds a Table to the end of collection.
 Table addTable(int x, int y, int width, int height, int columns, int rows, double bordersWidth, java.awt.Color bordersColor)
          Deprecated.  Adds a Table to the end of collection.
 VideoFrame addVideoFrame(int x, int y, int width, int height, java.lang.String fname)
          Deprecated.  Adds a VideoFrame to the end of collection.
 Shape get(int index)
          Deprecated.  Gets the element at the specified index.
 java.lang.Object getParent()
          Deprecated.  Returns parent object for a Shapes collection.
 int indexOf(Shape shape)
          Deprecated.  Returns the zero-based index of the first occurrence of a shape in the collection.
 java.util.Iterator iterator()
          Deprecated.  Returns an enumerator for the entire collection.
 boolean remove(Shape shape)
          Deprecated.  Removes the first occurrence of a specific shape from the collection.
 void removeAt(int index)
          Deprecated.  Removes the element at the specified index of the collection.
 int size()
          Deprecated.  Gets the number of elements actually contained in the collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

size

public int size()
Deprecated. 

Gets the number of elements actually contained in the collection.


get

public Shape get(int index)
Deprecated. 

Gets the element at the specified index.


add

public Shape add(java.io.InputStream stream)
Deprecated. 

Load serialized shape from a stream and add it to the end of a collection.

Parameters:
stream - Input stream to load shape from.
Returns:
Created shape.

addPictureFrame

public PictureFrame addPictureFrame(int id,
                                    int x,
                                    int y,
                                    int width,
                                    int height)
Deprecated. 

Adds a PictureFrame to the end of collection.

Parameters:
id - ID of a Picture to be placed to a new picture frame.
x - X coordinate of a new picture frame.
y - Y coordinate of a new picture frame.
width - Width of a new picture frame.
height - Height of a new picture frame.
Returns:
PictureFrame object.

addOleObjectFrame

public OleObjectFrame addOleObjectFrame(int x,
                                        int y,
                                        int width,
                                        int height,
                                        java.lang.String class_name,
                                        byte[] obj_data)
Deprecated. 

Adds an OleObjectFrame to the end of collection.

Parameters:
x - X coordinate of a new ole frame.
y - Y coordinate of a new ole frame.
width - Width of a new ole frame.
height - Height of a new ole frame.
class_name - Name of an OLE class.
obj_data - OLE object's data.
Returns:
OleObjectFrame object.

addVideoFrame

public VideoFrame addVideoFrame(int x,
                                int y,
                                int width,
                                int height,
                                java.lang.String fname)
Deprecated. 

Adds a VideoFrame to the end of collection.

Parameters:
x - X coordinate of a new video frame.
y - Y coordinate of a new video frame.
width - Width of a new video frame.
height - Height of a new video frame.
fname - Video file name.
Returns:
VideoFrame object.

addAudioFrameLinked

public AudioFrame addAudioFrameLinked(int x,
                                      int y,
                                      int width,
                                      int height,
                                      java.lang.String fname)
Deprecated. 

Adds an AudioFrame with linked audio file to the end of collection.

Parameters:
x - X coordinate of a new audio frame.
y - Y coordinate of a new audio frame.
width - Width of a new audio frame.
height - Height of a new audio frame.
fname - Audio file name.
Returns:
AudioFrame object.

addAudioFrameEmbedded

public AudioFrame addAudioFrameEmbedded(int x,
                                        int y,
                                        int width,
                                        int height,
                                        com.aspose.ms.System.IO.Stream audio_stream)
Deprecated. 

Adds an AudioFrame with embedded audio file to the end of collection.

Parameters:
x - X coordinate of a new audio frame.
y - Y coordinate of a new audio frame.
width - Width of a new audio frame.
height - Height of a new audio frame.
audio_stream - Audio stream.
Returns:
AudioFrame object.

addLine

public Line addLine(java.awt.Point pt1,
                    java.awt.Point pt2)
Deprecated. 

Adds a Line to the end of collection.

Parameters:
pt1 - Start point of the line.
pt2 - End point of the line.
Returns:
Line object.

addConnector

public Connector addConnector(int connectorType,
                              java.awt.Point pt1,
                              java.awt.Point pt2)
Deprecated. 

Adds a Connector to the end of collection.

Parameters:
connectorType - Type of connector.
pt1 - Start point of the line.
pt2 - End point of the line.
Returns:
Connector object.

addPolyline

public Polyline addPolyline(int x,
                            int y,
                            int width,
                            int height,
                            java.awt.geom.GeneralPath gp)
                     throws PptException
Deprecated. 

Adds a Polyline to the end of a collection.

Parameters:
x - X coordinate of the upper-left corner of the bounding rectangle that defines the polyline.
y - Y coordinate of the upper-left corner of the bounding rectangle that defines the polyline.
width - Width of the bounding rectangle that defines the polyline.
height - Height of the bounding rectangle that defines the polyline.
gp - GraphicsPath that defines the polyline.
Returns:
Polyline object.
Throws:
PptException

addRectangle

public Rectangle addRectangle(int x,
                              int y,
                              int width,
                              int height)
Deprecated. 

Adds a Rectangle to the end of collection.

Parameters:
x - X coordinate of the upper-left corner of the rectangle.
y - Y coordinate of the upper-left corner of the rectangle.
width - Width of the rectangle.
height - Height of the rectangle.
Returns:
Rectangle object.

addEllipse

public Ellipse addEllipse(int x,
                          int y,
                          int width,
                          int height)
Deprecated. 

Adds an Ellipse to the end of collection.

Parameters:
x - X coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.
y - Y coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.
width - Width of the bounding rectangle that defines the ellipse.
height - Height of the bounding rectangle that defines the ellipse.
Returns:
Ellipse object.

addTable

public Table addTable(int x,
                      int y,
                      int width,
                      int height,
                      int columns,
                      int rows)
Deprecated. 

Adds a Table to the end of collection.

Parameters:
x - X coordinate of the upper-left corner of the bounding rectangle that defines the table.
y - Y coordinate of the upper-left corner of the bounding rectangle that defines the table.
width - Width of the bounding rectangle that defines the table.
height - Height of the bounding rectangle that defines the table.
columns - Number of columns in the new table.
rows - Number of rows in the new table.
Returns:
Table object.

addTable

public Table addTable(int x,
                      int y,
                      int width,
                      int height,
                      int columns,
                      int rows,
                      double bordersWidth,
                      java.awt.Color bordersColor)
Deprecated. 

Adds a Table to the end of collection.

Parameters:
x - X coordinate of the upper-left corner of the bounding rectangle that defines the table.
y - Y coordinate of the upper-left corner of the bounding rectangle that defines the table.
width - Width of the bounding rectangle that defines the table.
height - Height of the bounding rectangle that defines the table.
columns - Number of columns in the new table.
rows - Number of rows in the new table.
bordersWidth - Width of all borders in a table. 0 to hide borders.
bordersColor - Color of all borders in a table.
Returns:
Table object.

indexOf

public int indexOf(Shape shape)
Deprecated. 

Returns the zero-based index of the first occurrence of a shape in the collection.

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

removeAt

public void removeAt(int index)
Deprecated. 

Removes the element at the specified index of the collection.

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

remove

public boolean remove(Shape shape)
Deprecated. 

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()
Deprecated. 

Returns an enumerator for the entire collection.

Specified by:
iterator in interface java.lang.Iterable<Shape>
Returns:
An IEnumerator for the entire collection.

getParent

public java.lang.Object getParent()
Deprecated. 

Returns parent object for a Shapes collection. Read-only Object. Can be a Slide or GroupShape.