|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.Shapes
com.aspose.slides.ShapeCollection
public final class ShapeCollection
Represents a collection of a shapes.
Method Summary | |
---|---|
Shape |
add(java.io.InputStream stream)
|
AudioFrame |
addAudioFrameEmbedded(int x,
int y,
int width,
int height,
java.io.InputStream audio_stream)
|
AudioFrame |
addAudioFrameLinked(int x,
int y,
int width,
int height,
java.lang.String fname)
Adds an AudioFrame with linked audio file to the end of collection. |
Connector |
addConnector(int connectorType,
java.awt.Point pt1,
java.awt.Point pt2)
|
Ellipse |
addEllipse(int x,
int y,
int width,
int height)
Adds an Ellipse to the end of collection. |
Line |
addLine(java.awt.Point pt1,
java.awt.Point pt2)
|
OleObjectFrame |
addOleObjectFrame(int x,
int y,
int width,
int height,
java.lang.String class_name,
byte[] obj_data)
Adds an OleObjectFrame to the end of collection. |
OleObjectFrame |
addOleObjectFrame(int x,
int y,
int width,
int height,
java.lang.String programId,
java.util.UUID classId,
java.lang.String relativePath,
java.lang.String longPath,
java.lang.String shortPath)
|
PictureFrame |
addPictureFrame(int id,
int x,
int y,
int width,
int height)
Adds a PictureFrame to the end of collection. |
Polyline |
addPolyline(int x,
int y,
int width,
int height,
java.awt.geom.GeneralPath gp)
Adds a Polyline to the end of a collection. |
Rectangle |
addRectangle(int x,
int y,
int width,
int height)
Adds a Rectangle to the end of collection. |
Table |
addTable(int x,
int y,
int width,
int height,
int columns,
int rows)
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)
|
VideoFrame |
addVideoFrame(int x,
int y,
int width,
int height,
java.lang.String fname)
Adds a VideoFrame to the end of collection. |
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies all elements from the collection to the specified array. |
Shape |
get_Item(int index)
Gets the element at the specified index. |
int |
getCount()
Gets the number of elements actually contained in the collection. |
java.lang.Object |
getParent()
Returns parent object for a Shapes collection. |
java.lang.Object |
getSyncRoot()
Returns a synchronization root. |
int |
indexOf(Shape shape)
Returns the zero-based index of the first occurrence of a shape in the collection. |
boolean |
isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe). |
com.aspose.ms.System.Collections.IEnumerator<Shape> |
iterator()
Returns an enumerator for the entire collection. |
boolean |
remove(Shape shape)
Removes the first occurrence of a specific shape from the collection. |
void |
removeAt(int index)
Removes the element at the specified index of the collection. |
int |
size()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void copyTo(com.aspose.ms.System.Array array, int index)
Copies all elements from the collection to the specified array.
copyTo
in interface com.aspose.ms.System.Collections.ICollection<Shape>
array
- Target array.index
- Starting index in the target array.public boolean isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
isSynchronized
in interface com.aspose.ms.System.Collections.ICollection<Shape>
public java.lang.Object getSyncRoot()
Returns a synchronization root.
Readonly object
.
getSyncRoot
in interface com.aspose.ms.System.Collections.ICollection<Shape>
public int size()
size
in interface com.aspose.ms.System.Collections.ICollection<Shape>
public int getCount()
Shapes
Gets the number of elements actually contained in the collection.
getCount
in class Shapes
public Shape get_Item(int index)
Shapes
Gets the element at the specified index.
get_Item
in class Shapes
public Shape add(java.io.InputStream stream)
add
in class Shapes
public PictureFrame addPictureFrame(int id, int x, int y, int width, int height)
Shapes
Adds a PictureFrame to the end of collection.
addPictureFrame
in class Shapes
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.
public OleObjectFrame addOleObjectFrame(int x, int y, int width, int height, java.lang.String class_name, byte[] obj_data)
Shapes
Adds an OleObjectFrame to the end of collection.
addOleObjectFrame
in class Shapes
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.
public OleObjectFrame addOleObjectFrame(int x, int y, int width, int height, java.lang.String programId, java.util.UUID classId, java.lang.String relativePath, java.lang.String longPath, java.lang.String shortPath)
addOleObjectFrame
in class Shapes
public VideoFrame addVideoFrame(int x, int y, int width, int height, java.lang.String fname)
Shapes
Adds a VideoFrame to the end of collection.
addVideoFrame
in class Shapes
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.
public AudioFrame addAudioFrameLinked(int x, int y, int width, int height, java.lang.String fname)
Shapes
Adds an AudioFrame with linked audio file to the end of collection.
addAudioFrameLinked
in class Shapes
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.
public AudioFrame addAudioFrameEmbedded(int x, int y, int width, int height, java.io.InputStream audio_stream)
addAudioFrameEmbedded
in class Shapes
public Line addLine(java.awt.Point pt1, java.awt.Point pt2)
addLine
in class Shapes
public Connector addConnector(int connectorType, java.awt.Point pt1, java.awt.Point pt2)
addConnector
in class Shapes
public Polyline addPolyline(int x, int y, int width, int height, java.awt.geom.GeneralPath gp)
Shapes
Adds a Polyline to the end of a collection.
addPolyline
in class Shapes
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.
public Rectangle addRectangle(int x, int y, int width, int height)
Shapes
Adds a Rectangle to the end of collection.
addRectangle
in class Shapes
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.
public Ellipse addEllipse(int x, int y, int width, int height)
Shapes
Adds an Ellipse to the end of collection.
addEllipse
in class Shapes
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.
public Table addTable(int x, int y, int width, int height, int columns, int rows)
Shapes
Adds a Table to the end of collection.
addTable
in class Shapes
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.
public Table addTable(int x, int y, int width, int height, int columns, int rows, double bordersWidth, java.awt.Color bordersColor)
addTable
in class Shapes
public int indexOf(Shape shape)
Shapes
Returns the zero-based index of the first occurrence of a shape in the collection.
indexOf
in class Shapes
shape
- The shape to locate in the collection.
public void removeAt(int index)
Shapes
Removes the element at the specified index of the collection.
removeAt
in class Shapes
index
- The zero-based index of the element to remove.public boolean remove(Shape shape)
Shapes
Removes the first occurrence of a specific shape from the collection.
remove
in class Shapes
shape
- The shape to remove from the collection.public com.aspose.ms.System.Collections.IEnumerator<Shape> iterator()
Shapes
Returns an enumerator for the entire collection.
iterator
in interface com.aspose.ms.System.Collections.IEnumerable<Shape>
iterator
in interface java.lang.Iterable<Shape>
iterator
in class Shapes
IEnumerator
for the entire collection.public java.lang.Object getParent()
Shapes
Returns parent object for a Shapes collection. Read-only Object
.
Can be a Slide
or GroupShape
.
getParent
in class Shapes
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |