|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.pptx.ShapesEx
public final class ShapesEx
Represents a collection of shapes.
Method Summary | |
---|---|
AudioFrameEx |
addAudioFrameCD(float x,
float y,
float width,
float height)
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)
Adds a new audio frame with embedded audio file to the end of a collection. |
AudioFrameEx |
addAudioFrameLinked(float x,
float y,
float width,
float height,
java.lang.String fname)
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)
Added for auto-porting |
int |
addAutoShape(ShapeTypeEx shapeType,
float x,
float y,
float width,
float height)
Creates a new AutoShapeEx and adds it to the end of the collection. |
int |
addConnector(ShapeTypeEx shapeType,
float x,
float y,
float width,
float height)
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 class_name,
byte[] obj_data)
Adds a new OLE object to the end of a collection. |
int |
addPictureFrame(ShapeTypeEx shapeType,
float x,
float y,
float width,
float height,
ImageEx image)
Creates a new PictureFrameEx and adds it to the end of the collection. |
int |
addTable(float x,
float y,
double[] columnWidths,
double[] rowHeights)
|
VideoFrameEx |
addVideoFrame(float x,
float y,
float width,
float height,
java.lang.String fname)
Adds a new video frame to the end of a collection. |
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 |
insertAudioFrameCD(int index,
float x,
float y,
float width,
float height)
Insert an AudioFrameEx with CD. |
void |
insertAudioFrameEmbedded(int index,
float x,
float y,
float width,
float height,
java.io.InputStream audio_stream)
Insert an AudioFrameEx with embedded audio file. |
void |
insertAudioFrameLinked(int index,
float x,
float y,
float width,
float height,
java.lang.String fname)
Creates a new audio frame with linked audio file and inserts it to a collection at the specified index. |
void |
insertAutoShape(int index,
ShapeTypeEx shapeType,
float x,
float y,
float width,
float height)
Creates a new AutoShapeEx and inserts it to the collection at the specified index. |
void |
insertConnector(int index,
ShapeTypeEx shapeType,
float x,
float y,
float width,
float height)
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 class_name,
byte[] obj_data)
Creates a new OLE object and inserts it to a collection at the specified index. |
void |
insertPictureFrame(int index,
ShapeTypeEx shapeType,
float x,
float y,
float width,
float height,
ImageEx image)
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)
|
void |
insertVideoFrame(int index,
float x,
float y,
float width,
float height,
java.lang.String fname)
Creates a new video frame and inserts it to a collection at the specified index. |
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)
Moves a shape from the collection to the specified position. |
void |
reorder(int index,
ShapeEx[] shapes)
Moves shapes from the collection to the specified position. |
int |
size()
Gets the number of elements actually contained in the collection. |
ShapeEx[] |
toArray()
Creates and returns an array of all shapes. |
ShapeEx[] |
toArray(int startIndex,
int count)
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 |
---|
public int size()
public ShapeEx get(int index)
index
- index of the element to return.
ShapeEx
.public OleObjectFrameEx addOleObjectFrame(float x, float y, float width, float height, java.lang.String class_name, byte[] obj_data)
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 void insertOleObjectFrame(int index, float x, float y, float width, float height, java.lang.String class_name, byte[] obj_data)
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.class_name
- Name of an OLE class.obj_data
- OLE object's data.public VideoFrameEx addVideoFrame(float x, float y, float width, float height, java.lang.String fname)
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 void insertVideoFrame(int index, float x, float y, float width, float height, java.lang.String fname)
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.public AudioFrameEx addAudioFrameCD(float x, float y, float width, float height)
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.
public void insertAudioFrameCD(int index, float x, float y, float width, float height)
index
- 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.public AudioFrameEx addAudioFrameLinked(float x, float y, float width, float height, java.lang.String fname)
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 void insertAudioFrameLinked(int index, float x, float y, float width, float height, java.lang.String fname)
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.public AudioFrameEx addAudioFrameEmbedded(float x, float y, float width, float height, java.io.InputStream audio_stream)
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
- Inout stream with audio data.
public void insertAudioFrameEmbedded(int index, float x, float y, float width, float height, java.io.InputStream audio_stream)
index
- The zero-based index at which value 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.audio_stream
- Audio stream.public int indexOf(ShapeEx shape)
shape
- The shape to locate in a collection.
public ShapeEx[] toArray()
public ShapeEx[] toArray(int startIndex, int count)
startIndex
- An index of a first shape to return.count
- A number of shapes to return.public void reorder(int index, ShapeEx shape)
index
- Target index.shape
- Shape to move.public void reorder(int index, ShapeEx[] shapes)
index
- Target index.shapes
- Shapes to move.public int addAutoShape(ShapeTypeEx shapeType, float x, float y, float width, float height)
shapeType
- 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.
public int addAutoShape(int shapeType, float x, float y, float width, float height)
public void insertAutoShape(int index, ShapeTypeEx shapeType, float x, float y, float width, float height)
index
- The zero-based index at which value should be inserted.shapeType
- x
- The X-coordinate for a left side of shape's framey
- 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.public int addConnector(ShapeTypeEx shapeType, float x, float y, float width, float height)
shapeType
- 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.
public void insertConnector(int index, ShapeTypeEx shapeType, float x, float y, float width, float height)
index
- The zero-based index at which value should be inserted.shapeType
- 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.public int addPictureFrame(ShapeTypeEx shapeType, float x, float y, float width, float height, ImageEx image)
shapeType
- 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.
public void insertPictureFrame(int index, ShapeTypeEx shapeType, float x, float y, float width, float height, ImageEx image)
index
- The zero-based index at which value should be inserted.shapeType
- 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.public int addTable(float x, float y, double[] columnWidths, double[] rowHeights)
public void insertTable(int index, float x, float y, double[] columnWidths, double[] rowHeights)
public void remove(int index)
index
- The zero-based index of the element to remove.public void remove(ShapeEx shape)
shape
- The shape to remove from the collection.public java.util.Iterator iterator()
public java.lang.Object getParent()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |