|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.Shapes
public final class Shapes
Represents the collection of a shapes.
Method Summary | |
---|---|
Shape |
add(java.io.InputStream stream)
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,
java.io.InputStream audio_stream)
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)
Adds an AudioFrame with linked audio file to the end of collection. |
Connector |
addConnector(int connectorType,
java.awt.geom.Point2D.Float pt1,
java.awt.geom.Point2D.Float pt2)
Adds a Connector to the end of collection. |
Ellipse |
addEllipse(int x,
int y,
int width,
int height)
Adds the Ellipse at the end of the collection. |
Line |
addLine(java.awt.Point pt1,
java.awt.Point pt2)
Adds the Line at the end of the collection. |
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. |
PictureFrame |
addPictureFrame(int id,
int x,
int y,
int width,
int height)
Adds the PictureFrame at the end of the 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 the Rectangle at the end of the 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,
float bordersWidth,
java.awt.Color bordersColor)
Adds a Table to the end of collection. |
VideoFrame |
addVideoFrame(int x,
int y,
int width,
int height,
java.lang.String fname)
Adds a VideoFrame to the end of collection. |
Shape |
get(int index)
Returns the element at the specified index. |
java.lang.Object |
getParent()
Returns parent object for the Shapes collection. |
int |
indexOf(Shape value)
Returns the zero-based index of the first occurrence of a value in the ArrayList. |
void |
remove(int index)
Removes the element at the specified index of the collection. |
void |
remove(Shape shape)
Removes the element at the specified index of the collection. |
int |
size()
Returns the number of elements in the collection. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int size()
public Shape get(int index)
index
- index of element to return.
public Shape add(java.io.InputStream stream) throws PptEditException
stream
- Input stream to load shape from
PptEditException
public PictureFrame addPictureFrame(int id, int x, int y, int width, int height) throws PptEditException
id
- Id of a Picture to be inserted to the new picture frame.x
- x coordinate of the new picture frame.y
- y coordinate of the new picture frame.width
- width of the new picture frame.height
- height of the new picture frame.
PptEditException
public OleObjectFrame addOleObjectFrame(int x, int y, int width, int height, java.lang.String class_name, byte[] obj_data) throws PptEditException
x
- X coordinate of a new OLE object frame.y
- Y coordinate of a new OLE object frame.width
- Width of a new OLE object frame.height
- Height of a new OLE object frame.class_name
- Name of an OLE class.obj_data
- OLE object's data.
PptEditException
public VideoFrame addVideoFrame(int x, int y, int width, int height, java.lang.String fname) throws PptEditException
x
- coordinate of a new video frame.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.
PptEditException
public AudioFrame addAudioFrameLinked(int x, int y, int width, int height, java.lang.String fname) throws PptEditException
x
- coordinate of a new audio frame.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.
PptEditException
public AudioFrame addAudioFrameEmbedded(int x, int y, int width, int height, java.io.InputStream audio_stream) throws java.io.IOException, PptEditException
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.
java.io.IOException
PptEditException
public Line addLine(java.awt.Point pt1, java.awt.Point pt2) throws PptEditException
pt1
- start point of the line.pt2
- end point of the line.
PptEditException
public Connector addConnector(int connectorType, java.awt.geom.Point2D.Float pt1, java.awt.geom.Point2D.Float pt2)
connectorType
- Type of connector.pt1
- Start point of the line.pt2
- End point of the line.
public Polyline addPolyline(int x, int y, int width, int height, java.awt.geom.GeneralPath gp) throws PptException
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.
PptException
public Rectangle addRectangle(int x, int y, int width, int height) throws PptEditException
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.
PptEditException
public Ellipse addEllipse(int x, int y, int width, int height) throws PptEditException
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.
PptEditException
public Table addTable(int x, int y, int width, int height, int columns, int rows) throws PptEditException
x
- coordinate of the upper-left corner of the bounding rectangle
that defines the table.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.
PptEditException
public Table addTable(int x, int y, int width, int height, int columns, int rows, float bordersWidth, java.awt.Color bordersColor) throws PptEditException, AsposeLicenseException
x
- coordinate of the upper-left corner of the bounding rectangle
that defines the table.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.
PptEditException
AsposeLicenseException
public int indexOf(Shape value)
value
- the shape to locate in the collection.
public void remove(int index)
index
- the zero-based index of the element to remove.public void remove(Shape shape)
shape
- the shape to remove from the collection.public java.lang.Object getParent()
Slide
or a GroupShape
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |