|
|||||||||
| prev class next class | frames no frames | ||||||||
| summary: nested | field | constr | method | detail: field | constr | method | ||||||||
java.lang.objectcom.spire.presentation.collections.shapelist
public class shapelist
represents a collection of a shapes.
| constructor summary | |
|---|---|
shapelist()
|
|
| method summary | |
|---|---|
void |
addfromhtml(java.lang.string htmltext)
|
void |
addshape(shape shape)
add a shape to shape list. |
iaudio |
appendaudiomedia(java.io.inputstream stream,
float x,
float y)
adds a new audio to list. |
iaudio |
appendaudiomedia(java.io.inputstream stream,
java.awt.geom.rectangle2d rectangle)
adds a new audio to list. |
iaudio |
appendaudiomedia(java.awt.geom.rectangle2d rectangle)
adds an audio from cd |
iaudio |
appendaudiomedia(java.lang.string filepath,
float x,
float y)
adds a new audio to list. |
iaudio |
appendaudiomedia(java.lang.string filepath,
float x,
float y,
boolean isembed)
adds a new audio to list. |
iaudio |
appendaudiomedia(java.lang.string filepath,
java.awt.geom.rectangle2d rectangle)
adds a new audio to list. |
iaudio |
appendaudiomedia(java.lang.string filepath,
java.awt.geom.rectangle2d rectangle,
boolean isembed)
adds a new audio to list. |
ichart |
appendchart(charttype type,
java.awt.geom.rectangle2d rectangle)
adds a new chart.init chart use default data |
ichart |
appendchart(charttype type,
java.awt.geom.rectangle2d rectangle,
boolean init)
adds a new chart. |
iembedimage |
appendembedimage(shapetype shapetype,
iimagedata embedimage,
java.awt.geom.rectangle2d rectangle)
add a new embed image to list. |
iembedimage |
appendembedimage(shapetype shapetype,
java.io.inputstream stream,
java.awt.geom.rectangle2d rectangle)
add a new embed image to list. |
iembedimage |
appendembedimage(shapetype shapetype,
java.lang.string filename,
java.awt.geom.rectangle2d rectangle)
add a new embed image to list. |
ioleobject |
appendoleobject(java.lang.string objectname,
byte[] objectdata,
java.awt.geom.rectangle2d rectangle)
add a new oleobject to collection |
ioleobject |
appendoleobject(java.lang.string objectname,
byte[] objectdata,
com.spire.ms.system.drawing.rectanglef rectangle)
|
iautoshape |
appendroundrectangle(float x,
float y,
float width,
float height,
float radius)
adds a roundrectangle to list. |
iautoshape |
appendshape(shapetype shapetype,
com.spire.ms.system.drawing.pointf start,
com.spire.ms.system.drawing.pointf end)
|
iautoshape |
appendshape(shapetype shapetype,
java.awt.geom.rectangle2d rectangle)
adds a new shape to list. |
ishape |
appendshapeconnector(shapetype shapetype,
java.awt.geom.rectangle2d rectangle)
add new shape connector to collection. |
ismartart |
appendsmartart(float x,
float y,
float width,
float height,
smartartlayouttype layouttype)
add smartart object |
itable |
appendtable(float x,
float y,
java.lang.double[] widths,
java.lang.double[] heights)
add a new table to collection. |
ivideo |
appendvideomedia(java.lang.string filepath,
java.awt.geom.rectangle2d rectangle)
add a new video to collection. |
ivideo |
appendvideomedia(java.lang.string filepath,
java.awt.geom.rectangle2d rectangle,
boolean isinnerlink)
add a new video to collection |
ichart |
createchart(ichart basechart,
java.awt.geom.rectangle2d rectangle,
int nindex)
clone basechart and insert into shapes |
ishape |
get(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()
gets parent object for a shapes collection. |
int |
indexof(ishape shape)
gets the index of the first occurrence of a shape in the collectio |
void |
insertaudiomedia(int index,
java.io.inputstream stream,
java.awt.geom.rectangle2d rectangle)
insert an audio to collection. |
void |
insertaudiomedia(int index,
java.awt.geom.rectangle2d rectangle)
insert an audio from cd. |
void |
insertaudiomedia(int index,
java.lang.string filepath,
float x,
float y)
insert an audio to collection. |
void |
insertaudiomedia(int index,
java.lang.string filepath,
float x,
float y,
boolean isembed)
insert an audio to collection. |
void |
insertaudiomedia(int index,
java.lang.string filepath,
java.awt.geom.rectangle2d rectangle)
insert an audio to collection. |
void |
insertaudiomedia(int index,
java.lang.string filepath,
java.awt.geom.rectangle2d rectangle,
boolean isembed)
insert an audio to collection. |
void |
insertchart(int index,
charttype type,
java.awt.geom.rectangle2d rectangle,
boolean init)
add a new chart to collection. |
void |
insertembedimage(int index,
shapetype shapetype,
java.awt.geom.rectangle2d rectangle,
iimagedata embedimage)
insert a embed image to collection. |
void |
insertoleobject(int index,
java.lang.string objectname,
byte[] objectdata,
java.awt.geom.rectangle2d rectangle)
insert a object to collection. |
void |
insertoleobject(int index,
java.lang.string objectname,
byte[] objectdata,
com.spire.ms.system.drawing.rectanglef rectangle)
|
void |
insertroundrectangle(int index,
float x,
float y,
float width,
float height,
float radius)
insert a new shape to collection. |
void |
insertshape(int index,
shapetype shapetype,
java.awt.geom.rectangle2d rectangle)
insert a new shape to collection. |
void |
insertshapeconnector(int index,
shapetype shapetype,
java.awt.geom.rectangle2d rectangle)
insert a new shape connector to collection. |
void |
inserttable(int index,
float x,
float y,
java.lang.double[] columnwidths,
java.lang.double[] rowheights)
adds a new table to collection. |
void |
insertvideomedia(int index,
java.lang.string filepath,
java.awt.geom.rectangle2d rectangle)
adds a new video to collection. |
void |
remove(ishape 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. |
void |
saveasemf(int shapeindex,
java.lang.string filepath)
save shapes to emf. |
java.awt.image.bufferedimage |
saveasimage(int shapeindex)
save shapes to image. |
java.awt.image.bufferedimage |
saveasimage(int shapeindex,
int dpix,
int dpiy)
|
ishape[] |
toarray()
creates and returns an array with all shapse in it. |
ishape[] |
toarray(int startindex,
int count)
creates and returns an array with all shapes from the specified range in it. |
void |
zorder(int index,
ishape... shapes)
change shapes's zorder. |
void |
zorder(int index,
ishape shape)
change a shape's zorder. |
| constructor detail |
|---|
public shapelist()
| method detail |
|---|
public int getcount()
public ishape get(int index)
index -
public java.awt.image.bufferedimage saveasimage(int shapeindex)
shapeindex -
java.lang.exceptionpublic java.awt.image.bufferedimage saveasimage(int shapeindex,
int dpix,
int dpiy)
shapeindex - : shape index.dpix - :pictures x resolutiondpiy - :pictures y resolution
java.lang.exceptionpublic void saveasemf(int shapeindex,
java.lang.string filepath)
shapeindex - represents the shape index in the indicated slide's shapes collectionfilepath - represents the save path
java.lang.exceptionpublic ichart createchart(ichart basechart,
java.awt.geom.rectangle2d rectangle,
int nindex)
basechart - source chart<rectangle - rectangle should be insertednindex - index should be inserted.-1 mean append at the last.
java.lang.exceptionpublic ichart appendchart(charttype type,
java.awt.geom.rectangle2d rectangle,
boolean init)
type - rectangle - init -
java.lang.exceptionpublic ichart appendchart(charttype type,
java.awt.geom.rectangle2d rectangle)
type - chart typerectangle - rectangle should be inserted.
java.lang.exceptionpublic ismartart appendsmartart(float x,
float y,
float width,
float height,
smartartlayouttype layouttype)
x - y - width - height - layouttype -
java.lang.exceptionpublic void insertchart(int index,
charttype type,
java.awt.geom.rectangle2d rectangle,
boolean init)
index - index should be inserted.type - chart typerectangle - rectangle should inserted.init -
java.lang.exceptionpublic ioleobject appendoleobject(java.lang.string objectname,
byte[] objectdata,
java.awt.geom.rectangle2d rectangle)
objectname - objectdata - rectangle -
java.lang.exceptionpublic ioleobject appendoleobject(java.lang.string objectname,
byte[] objectdata,
com.spire.ms.system.drawing.rectanglef rectangle)
public void insertoleobject(int index,
java.lang.string objectname,
byte[] objectdata,
java.awt.geom.rectangle2d rectangle)
index - objectname - objectdata - rectangle -
java.lang.exceptionpublic void insertoleobject(int index,
java.lang.string objectname,
byte[] objectdata,
com.spire.ms.system.drawing.rectanglef rectangle)
public ivideo appendvideomedia(java.lang.string filepath,
java.awt.geom.rectangle2d rectangle)
filepath - rectangle -
java.lang.exceptionpublic ivideo appendvideomedia(java.lang.string filepath,
java.awt.geom.rectangle2d rectangle,
boolean isinnerlink)
filepath - rectangle - isinnerlink -
java.lang.exceptionpublic void insertvideomedia(int index,
java.lang.string filepath,
java.awt.geom.rectangle2d rectangle)
index - index should be inserted.filepath - video file path.rectangle - rectangle should be inserted.
java.lang.exceptionpublic iaudio appendaudiomedia(java.awt.geom.rectangle2d rectangle)
rectangle -
java.lang.exceptionpublic void insertaudiomedia(int index,
java.awt.geom.rectangle2d rectangle)
index - rectangle -
java.lang.exceptionpublic iaudio appendaudiomedia(java.lang.string filepath,
float x,
float y,
boolean isembed)
filepath - audio file namex - x positiony - y position<isembed - whether embed or not
java.lang.exceptionpublic iaudio appendaudiomedia(java.lang.string filepath,
float x,
float y)
filepath - audio file namex - x positiony - y position
java.lang.exceptionpublic iaudio appendaudiomedia(java.lang.string filepath,
java.awt.geom.rectangle2d rectangle,
boolean isembed)
filepath - audio file namerectangle - rectangle should be insertedisembed - whether embed or not,default not
java.lang.exceptionpublic iaudio appendaudiomedia(java.lang.string filepath,
java.awt.geom.rectangle2d rectangle)
filepath - audio file namerectangle - rectangle should be inserted
java.lang.exceptionpublic void insertaudiomedia(int index,
java.lang.string filepath,
java.awt.geom.rectangle2d rectangle,
boolean isembed)
index - filepath - audio file pathrectangle - rectangle should be inserted.isembed - whether embed or not,default not
java.lang.exceptionpublic void insertaudiomedia(int index,
java.lang.string filepath,
java.awt.geom.rectangle2d rectangle)
index - filepath - audio file pathrectangle - rectangle should be inserted.
java.lang.exceptionpublic void insertaudiomedia(int index,
java.lang.string filepath,
float x,
float y,
boolean isembed)
index - filepath - audio file path<x - y - isembed - whether embed or not,default not
java.lang.exceptionpublic void insertaudiomedia(int index,
java.lang.string filepath,
float x,
float y)
index - filepath - audio file pathx - y -
java.lang.exceptionpublic iaudio appendaudiomedia(java.io.inputstream stream,
java.awt.geom.rectangle2d rectangle)
stream - audio inputstreamrectangle - rectangle should be inserted
java.lang.exceptionpublic iaudio appendaudiomedia(java.io.inputstream stream,
float x,
float y)
stream - audio streamx - y -
java.lang.exceptionpublic void insertaudiomedia(int index,
java.io.inputstream stream,
java.awt.geom.rectangle2d rectangle)
index - index to inserted.stream - audio streamrectangle - rectangle should be inserted
java.lang.exceptionpublic int indexof(ishape shape)
shape -
public ishape[] toarray()
public ishape[] toarray(int startindex,
int count)
startindex - an index of a first shape to return.count - a number of shapes to return
public void zorder(int index,
ishape shape)
throws documenteditexception
index - target index.shape - shape to move.
documenteditexceptionpublic void zorder(int index,
ishape... shapes)
throws documenteditexception
index - target indexshapes - shapes to move.
documenteditexceptionpublic iautoshape appendshape(shapetype shapetype,
java.awt.geom.rectangle2d rectangle)
shapetype - rectangle -
java.lang.exceptionpublic iautoshape appendshape(shapetype shapetype,
com.spire.ms.system.drawing.pointf start,
com.spire.ms.system.drawing.pointf end)
public iautoshape appendroundrectangle(float x,
float y,
float width,
float height,
float radius)
x - x-coordinates of rectangle.y - y-coordinates of rectangle.width - width of rectangle.height - height of rectangle.radius - radius of rectangle.
java.lang.exceptionpublic void insertroundrectangle(int index,
float x,
float y,
float width,
float height,
float radius)
index - index should be inserted.x - x-coordinates of rectangle.y - y-coordinates of rectangle.width - width of rectangle.height - height of rectangle.radius - radius of rectangle.
java.lang.exceptionpublic void insertshape(int index,
shapetype shapetype,
java.awt.geom.rectangle2d rectangle)
index - shapetype - rectangle -
java.lang.exceptionpublic ishape appendshapeconnector(shapetype shapetype,
java.awt.geom.rectangle2d rectangle)
shapetype - rectangle -
java.lang.exceptionpublic void insertshapeconnector(int index,
shapetype shapetype,
java.awt.geom.rectangle2d rectangle)
index - shapetype - rectangle -
java.lang.exceptionpublic iembedimage appendembedimage(shapetype shapetype,
iimagedata embedimage,
java.awt.geom.rectangle2d rectangle)
shapetype - embedimage - rectangle -
java.lang.exceptionpublic iembedimage appendembedimage(shapetype shapetype,
java.io.inputstream stream,
java.awt.geom.rectangle2d rectangle)
shapetype - stream - rectangle -
java.lang.exceptionpublic iembedimage appendembedimage(shapetype shapetype,
java.lang.string filename,
java.awt.geom.rectangle2d rectangle)
shapetype - filename - rectangle -
java.lang.exceptionpublic void insertembedimage(int index,
shapetype shapetype,
java.awt.geom.rectangle2d rectangle,
iimagedata embedimage)
index - index should be inserted.shapetype - shape type.rectangle - rectangle should be inserted.embedimage - embed image object.
java.lang.exceptionpublic void addshape(shape shape)
shape - add a shape to shape list.public itable appendtable(float x,
float y,
java.lang.double[] widths,
java.lang.double[] heights)
x - y - widths - heights -
java.lang.exceptionpublic void inserttable(int index,
float x,
float y,
java.lang.double[] columnwidths,
java.lang.double[] rowheights)
index - index should be insertedx - left side of shape.y - top side of shape.columnwidths - widths of columns in the table.rowheights - heights of rows in the table.
java.lang.exceptionpublic void removeat(int index)
index - public void remove(ishape shape)
shape - the shape to remove from the collectionpublic java.lang.object getparent()
public void addfromhtml(java.lang.string htmltext)
|
|||||||||
| prev class next class | frames no frames | ||||||||
| summary: nested | field | constr | method | detail: field | constr | method | ||||||||