com.aspose.slides
Class ShapesEx

java.lang.Object
  extended by com.aspose.slides.ShapesEx
Direct Known Subclasses:
ShapeExCollection

Deprecated.

@Deprecated
public class ShapesEx
extends java.lang.Object

Represents a collection of a shapes.


Method Summary
 AudioFrameEx addAudioFrameCD(float x, float y, float width, float height)
          Deprecated.  Adds an AudioFrameEx with CD to the end of collection.
 AudioFrameEx addAudioFrameEmbedded(float x, float y, float width, float height, java.io.InputStream audio_stream)
          Deprecated.  
 AudioFrameEx addAudioFrameLinked(float x, float y, float width, float height, java.lang.String fname)
          Deprecated.  Adds a new audio frame with linked audio file to the end of a collection.
 int addAutoShape(int shapeType, float x, float y, float width, float height)
          Deprecated.  Creates a new AutoShapeEx and adds it to the end of the collection.
 ChartEx addChart(int type, float x, float y, float width, float height)
          Deprecated.  Creates a new ChartEx and adds it to the end of the collection.
 int addConnector(int shapeType, float x, float y, float width, float height)
          Deprecated.  Creates a new ConnectorEx and adds it to the end of the collection.
 OleObjectFrameEx addOleObjectFrame(float x, float y, float width, float height, java.lang.String className, byte[] objectData)
          Deprecated.  Adds a new OLE object to the end of a collection.
 OleObjectFrameEx addOleObjectFrame(float x, float y, float width, float height, java.lang.String className, java.lang.String path)
          Deprecated.  Adds a new OLE object to the end of a collection.
 int addPictureFrame(int shapeType, float x, float y, float width, float height, ImageEx image)
          Deprecated.  Creates a new PictureFrameEx and adds it to the end of the collection.
 SmartArtEx addSmartArt(float x, float y, float width, float height, int layoutType)
          Deprecated.  Add SmartArt object Example: [C#] PresentationEx pres = new PresentationEx(); SlideEx slide = pres.Slides[0]; SmartArtEx smart = slide.Shapes.AddSmartArt(0, 0, 400, 400, SmartArtLayoutTypeEx.BasicBlockList); [Visual Basic] Private pres As New PresentationEx() Private slide As SlideEx = pres.Slides(0) Private smart As SmartArtEx = slide.Shapes.AddSmartArt(0, 0, 400, 400, SmartArtLayoutTypeEx.BasicBlockList)
 int addTable(float x, float y, double[] columnWidths, double[] rowHeights)
          Deprecated.  Creates a new TableEx and adds it to the end of the collection.
 VideoFrameEx addVideoFrame(float x, float y, float width, float height, java.lang.String fname)
          Deprecated.  Adds a new video frame to the end of a collection.
 ShapeEx get_Item(int index)
          Deprecated.  Gets the element at the specified index.
 int getCount()
          Deprecated.  Gets the number of elements actually contained in the collection.
 java.lang.Object getParent()
          Deprecated.  Returns parent object for a Shapes collection.
 int indexOf(ShapeEx shape)
          Deprecated.  Returns the zero-based index of the first occurrence of a shape in the collection.
 void insertAudioFrameCD(int index, float x, float y, float width, float height)
          Deprecated.  Insert an AudioFrameEx with CD.
 void insertAudioFrameEmbedded(int index, float x, float y, float width, float height, java.io.InputStream audio_stream)
          Deprecated.  
 void insertAudioFrameLinked(int index, float x, float y, float width, float height, java.lang.String fname)
          Deprecated.  Creates a new audio frame with linked audio file and inserts it to a collection at the specified index.
 void insertAutoShape(int index, int shapeType, float x, float y, float width, float height)
          Deprecated.  Creates a new AutoShapeEx and inserts it to the collection at the specified index.
 void insertChart(int type, float x, float y, float width, float height, int index)
          Deprecated.  Creates a new ChartEx and inserts it to the specified position in the collection.
 void insertConnector(int index, int shapeType, float x, float y, float width, float height)
          Deprecated.  Creates a new ConnectorEx and inserts it to the collection at the specified index.
 void insertOleObjectFrame(int index, float x, float y, float width, float height, java.lang.String className, byte[] objectData)
          Deprecated.  Creates a new OLE object and inserts it to a collection at the specified index.
 void insertOleObjectFrame(int index, float x, float y, float width, float height, java.lang.String className, java.lang.String path)
          Deprecated.  Creates a new OLE object and inserts it to a collection at the specified index.
 void insertPictureFrame(int index, int shapeType, float x, float y, float width, float height, ImageEx image)
          Deprecated.  Creates a new PictureFrameEx and inserts it to the collection at the specified index.
 void insertTable(int index, float x, float y, double[] columnWidths, double[] rowHeights)
          Deprecated.  Creates a new TableEx and inserts it to the collection at the specified index.
 void insertVideoFrame(int index, float x, float y, float width, float height, java.lang.String fname)
          Deprecated.  Creates a new video frame and inserts it to a collection at the specified index.
 com.aspose.ms.System.Collections.IEnumerator<ShapeEx> iterator()
          Deprecated.  Returns an enumerator for the entire collection.
 void remove(ShapeEx 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.
 void reorder(int index, ShapeEx... shapes)
          Deprecated.  Moves shapes from the collection to the specified position.
 void reorder(int index, ShapeEx shape)
          Deprecated.  Moves a shape from the collection to the specified position.
 ShapeEx[] toArray()
          Deprecated.  Creates and returns an array with all shapse in it.
 ShapeEx[] toArray(int startIndex, int count)
          Deprecated.  Creates and returns an array with all shapes from the specified range in it.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCount

public int getCount()
Deprecated. 

Gets the number of elements actually contained in the collection. Read-only int.


get_Item

public ShapeEx get_Item(int index)
Deprecated. 

Gets the element at the specified index. Read-only ShapeEx.


addChart

public ChartEx addChart(int type,
                        float x,
                        float y,
                        float width,
                        float height)
Deprecated. 

Creates a new ChartEx and adds it to the end of the collection.

Parameters:
type - Type of chart.
x - X coordinate of a new chart.
y - Y coordinate of a new chart.
width - Chart's width.
height - Chart's height.
Returns:
Index of created chart in the collection.

addSmartArt

public SmartArtEx addSmartArt(float x,
                              float y,
                              float width,
                              float height,
                              int layoutType)
Deprecated. 

Add SmartArt object


Example:
 
 [C#]
 PresentationEx pres = new PresentationEx();
 SlideEx slide = pres.Slides[0];
 SmartArtEx smart = slide.Shapes.AddSmartArt(0, 0, 400, 400, SmartArtLayoutTypeEx.BasicBlockList);
 
 [Visual Basic]
 Private pres As New PresentationEx()
 Private slide As SlideEx = pres.Slides(0)
 Private smart As SmartArtEx = slide.Shapes.AddSmartArt(0, 0, 400, 400, SmartArtLayoutTypeEx.BasicBlockList)
 

Parameters:
x -
y -
width -
height -
layoutType -
Returns:

insertChart

public void insertChart(int type,
                        float x,
                        float y,
                        float width,
                        float height,
                        int index)
Deprecated. 

Creates a new ChartEx and inserts it to the specified position in the collection.

Parameters:
type - Type of chart.
x - X coordinate of a new chart.
y - Y coordinate of a new chart.
width - Chart's width.
height - Chart's height.
index - Chart's position in the collection.

addOleObjectFrame

public OleObjectFrameEx addOleObjectFrame(float x,
                                          float y,
                                          float width,
                                          float height,
                                          java.lang.String className,
                                          byte[] objectData)
Deprecated. 

Adds a new OLE object to the end of a 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.
className - Name of an OLE class.
objectData - OLE object's data.
Returns:
Created OLE object.

addOleObjectFrame

public OleObjectFrameEx addOleObjectFrame(float x,
                                          float y,
                                          float width,
                                          float height,
                                          java.lang.String className,
                                          java.lang.String path)
Deprecated. 

Adds a new OLE object to the end of a 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.
className - Name of an OLE class.
path - path to the linked file.
Returns:
Created OLE object.

insertOleObjectFrame

public void insertOleObjectFrame(int index,
                                 float x,
                                 float y,
                                 float width,
                                 float height,
                                 java.lang.String className,
                                 byte[] objectData)
Deprecated. 

Creates a new OLE object and inserts it to a collection at the specified index.

Parameters:
index - The zero-based index at which OLE object should be inserted.
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.
className - Name of an OLE class.
objectData - OLE object's data.

insertOleObjectFrame

public void insertOleObjectFrame(int index,
                                 float x,
                                 float y,
                                 float width,
                                 float height,
                                 java.lang.String className,
                                 java.lang.String path)
Deprecated. 

Creates a new OLE object and inserts it to a collection at the specified index.

Parameters:
index - The zero-based index at which OLE object should be inserted.
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.
className - Name of an OLE class.
path - Path to the linked file.

addVideoFrame

public VideoFrameEx addVideoFrame(float x,
                                  float y,
                                  float width,
                                  float height,
                                  java.lang.String fname)
Deprecated. 

Adds a new video frame to the end of a 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:
Created VideoFrameEx object.

insertVideoFrame

public void insertVideoFrame(int index,
                             float x,
                             float y,
                             float width,
                             float height,
                             java.lang.String fname)
Deprecated. 

Creates a new video frame and inserts it to a collection at the specified index.

Parameters:
index - The zero-based index at which video frame should be inserted.
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.

addAudioFrameCD

public AudioFrameEx addAudioFrameCD(float x,
                                    float y,
                                    float width,
                                    float height)
Deprecated. 

Adds an AudioFrameEx with CD 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.
Returns:
AudioFrameEx object.

insertAudioFrameCD

public void insertAudioFrameCD(int index,
                               float x,
                               float y,
                               float width,
                               float height)
Deprecated. 

Insert an AudioFrameEx with CD.

Parameters:
index - The zero-based index at which video frame should be inserted.
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.

addAudioFrameLinked

public AudioFrameEx addAudioFrameLinked(float x,
                                        float y,
                                        float width,
                                        float height,
                                        java.lang.String fname)
Deprecated. 

Adds a new audio frame with linked audio file to the end of a 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:
Created AudioFrameEx object.

insertAudioFrameLinked

public void insertAudioFrameLinked(int index,
                                   float x,
                                   float y,
                                   float width,
                                   float height,
                                   java.lang.String fname)
Deprecated. 

Creates a new audio frame with linked audio file and inserts it to a collection at the specified index.

Parameters:
index - The zero-based index at which audio frame should be inserted.
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.

addAudioFrameEmbedded

public AudioFrameEx addAudioFrameEmbedded(float x,
                                          float y,
                                          float width,
                                          float height,
                                          java.io.InputStream audio_stream)
Deprecated. 

insertAudioFrameEmbedded

public void insertAudioFrameEmbedded(int index,
                                     float x,
                                     float y,
                                     float width,
                                     float height,
                                     java.io.InputStream audio_stream)
Deprecated. 

indexOf

public int indexOf(ShapeEx 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 collection, if found; otherwise, -1.

toArray

public ShapeEx[] toArray()
Deprecated. 

Creates and returns an array with all shapse in it.

Returns:
Array of ShapeEx

toArray

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

Creates and returns an array with all shapes from the specified range in it.

Parameters:
startIndex - An index of a first shape to return.
count - A number of shapes to return.
Returns:
Array of ShapeEx

reorder

public void reorder(int index,
                    ShapeEx shape)
Deprecated. 

Moves a shape from the collection to the specified position.

Parameters:
index - Target index.
shape - Shape to move.

reorder

public void reorder(int index,
                    ShapeEx... shapes)
Deprecated. 

Moves shapes from the collection to the specified position. Shapes will be placed starting from index in order they appear in list.

Parameters:
index - Target index.
shapes - Shapes to move.

addAutoShape

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

Creates a new AutoShapeEx and adds it to the end of the collection.

Parameters:
shapeType - The ShapeTypeEx of shape.
x - The X-coordinate for a left side of shape's frame.
y - The Y-coordinate for a top side of shape's frame.
width - The width of shape's frame.
height - The height of shape's frame.
Returns:
The zero-based index of the created shape.

insertAutoShape

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

Creates a new AutoShapeEx and inserts it to the collection at the specified index. Note: the type of the shape will be determined by the shapeType parameter.

Parameters:
index - The zero-based index at which value should be inserted.
shapeType - An ShapeTypeEx of shape.
x - The X-coordinate for a left side of shape's frame.
y - The Y-coordinate for a top side of shape's frame.
width - The width of shape's frame.
height - The height of shape's frame.

addConnector

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

Creates a new ConnectorEx and adds it to the end of the collection.

Parameters:
shapeType - The ShapeTypeEx of shape.
x - The X-coordinate for a left side of shape's frame.
y - The Y-coordinate for a top side of shape's frame.
width - The width of shape's frame.
height - The height of shape's frame.
Returns:
The zero-based index of the created shape.

insertConnector

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

Creates a new ConnectorEx and inserts it to the collection at the specified index.

Parameters:
index - The zero-based index at which value should be inserted.
shapeType - An ShapeTypeEx of shape.
x - The X-coordinate for a left side of shape's frame.
y - The Y-coordinate for a top side of shape's frame.
width - The width of shape's frame.
height - The height of shape's frame.

addPictureFrame

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

Creates a new PictureFrameEx and adds it to the end of the collection.

Parameters:
shapeType -

The shape contained in the set ShapeTypeEx of shapes, except all sorts of lines:

ShapeTypeEx.Line,

ShapeTypeEx.StraightConnector1,

ShapeTypeEx.BentConnector2,

ShapeTypeEx.BentConnector3,

ShapeTypeEx.BentConnector4,

ShapeTypeEx.BentConnector5,

ShapeTypeEx.CurvedConnector2,

ShapeTypeEx.CurvedConnector3,

ShapeTypeEx.CurvedConnector4,

ShapeTypeEx.CurvedConnector5.

x - The X-coordinate for a left side of shape's frame.
y - The Y-coordinate for a top side of shape's frame.
width - The width of shape's frame.
height - The height of shape's frame.
image - The image of picture frame.
Returns:
The zero-based index of the created shape.

insertPictureFrame

public void insertPictureFrame(int index,
                               int shapeType,
                               float x,
                               float y,
                               float width,
                               float height,
                               ImageEx image)
Deprecated. 

Creates a new PictureFrameEx and inserts it to the collection at the specified index.

Parameters:
index - The zero-based index at which value should be inserted.
shapeType -

The shape contained in the set ShapeTypeEx of shapes, except all sorts of lines:

ShapeTypeEx.Line,

ShapeTypeEx.StraightConnector1,

ShapeTypeEx.BentConnector2,

ShapeTypeEx.BentConnector3,

ShapeTypeEx.BentConnector4,

ShapeTypeEx.BentConnector5,

ShapeTypeEx.CurvedConnector2,

ShapeTypeEx.CurvedConnector3,

ShapeTypeEx.CurvedConnector4,

ShapeTypeEx.CurvedConnector5.

x - The X-coordinate for a left side of shape's frame.
y - The Y-coordinate for a top side of shape's frame.
width - The width of shape's frame.
height - The height of shape's frame.
image - The image of picture frame.

addTable

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

Creates a new TableEx and adds it to the end of the collection.

Parameters:
x - The X-coordinate for a left side of shape's frame.
y - The Y-coordinate for a top side of shape's frame.
columnWidths - Array of doubles which represents widths of columns in the table.
rowHeights - Array of doubles which represents heights of rows in the table.
Returns:
The zero-based index of the created shape.

insertTable

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

Creates a new TableEx and inserts it to the collection at the specified index.

Parameters:
index - The zero-based index at which value should be inserted.
x - The X-coordinate for a left side of shape's frame.
y - The Y-coordinate for a top side of shape's frame.
columnWidths - Array of doubles which represents widths of columns in the table.
rowHeights - Array of doubles which represents heights of rows in the table.

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 void remove(ShapeEx shape)
Deprecated. 

Removes the first occurrence of a specific shape from the collection.

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

iterator

public com.aspose.ms.System.Collections.IEnumerator<ShapeEx> iterator()
Deprecated. 

Returns an enumerator for the entire collection.

Returns:
An IEnumerator for the entire collection.

getParent

public java.lang.Object getParent()
Deprecated. 

Returns parent object for a Shapes collection. Read-only object. See also IPresentationComponent.