shapelist-ag凯发旗舰厅



com.spire.presentation.collections
class shapelist

java.lang.object
  extended by com.spire.presentation.collections.shapelist
direct known subclasses:
shapecollection

public class shapelist
extends java.lang.object

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

shapelist

public shapelist()
method detail

getcount

public int getcount()
gets the number of elements actually contained in the collection. read-only .
returns:

get

public ishape get(int index)
gets the element at the specified index. read-only .
parameters:
index -
returns:

saveasimage

public java.awt.image.bufferedimage saveasimage(int shapeindex)
save shapes to image.
parameters:
shapeindex -
returns:
throws:
java.lang.exception

saveasimage

public java.awt.image.bufferedimage saveasimage(int shapeindex,
                                                int dpix,
                                                int dpiy)
parameters:
shapeindex - : shape index.
dpix - :pictures x resolution
dpiy - :pictures y resolution
returns:
throws:
java.lang.exception

saveasemf

public void saveasemf(int shapeindex,
                      java.lang.string filepath)
save shapes to emf.
parameters:
shapeindex - represents the shape index in the indicated slide's shapes collection
filepath - represents the save path
throws:
java.lang.exception

createchart

public ichart createchart(ichart basechart,
                          java.awt.geom.rectangle2d rectangle,
                          int nindex)
clone basechart and insert into shapes
parameters:
basechart - source chart<
rectangle - rectangle should be inserted
nindex - index should be inserted.-1 mean append at the last.
returns:
throws:
java.lang.exception

appendchart

public ichart appendchart(charttype type,
                          java.awt.geom.rectangle2d rectangle,
                          boolean init)
adds a new chart.
parameters:
type -
rectangle -
init -
returns:
throws:
java.lang.exception

appendchart

public ichart appendchart(charttype type,
                          java.awt.geom.rectangle2d rectangle)
adds a new chart.init chart use default data
parameters:
type - chart type
rectangle - rectangle should be inserted.
returns:
throws:
java.lang.exception

appendsmartart

public ismartart appendsmartart(float x,
                                float y,
                                float width,
                                float height,
                                smartartlayouttype layouttype)
add smartart object
parameters:
x -
y -
width -
height -
layouttype -
returns:
throws:
java.lang.exception

insertchart

public void insertchart(int index,
                        charttype type,
                        java.awt.geom.rectangle2d rectangle,
                        boolean init)
add a new chart to collection.
parameters:
index - index should be inserted.
type - chart type
rectangle - rectangle should inserted.
init -
throws:
java.lang.exception

appendoleobject

public ioleobject appendoleobject(java.lang.string objectname,
                                  byte[] objectdata,
                                  java.awt.geom.rectangle2d rectangle)
add a new oleobject to collection
parameters:
objectname -
objectdata -
rectangle -
returns:
throws:
java.lang.exception

appendoleobject

public ioleobject appendoleobject(java.lang.string objectname,
                                  byte[] objectdata,
                                  com.spire.ms.system.drawing.rectanglef rectangle)

insertoleobject

public void insertoleobject(int index,
                            java.lang.string objectname,
                            byte[] objectdata,
                            java.awt.geom.rectangle2d rectangle)
insert a object to collection.
parameters:
index -
objectname -
objectdata -
rectangle -
throws:
java.lang.exception

insertoleobject

public void insertoleobject(int index,
                            java.lang.string objectname,
                            byte[] objectdata,
                            com.spire.ms.system.drawing.rectanglef rectangle)

appendvideomedia

public ivideo appendvideomedia(java.lang.string filepath,
                               java.awt.geom.rectangle2d rectangle)
add a new video to collection. innerlink mode
parameters:
filepath -
rectangle -
returns:
throws:
java.lang.exception

appendvideomedia

public ivideo appendvideomedia(java.lang.string filepath,
                               java.awt.geom.rectangle2d rectangle,
                               boolean isinnerlink)
add a new video to collection
parameters:
filepath -
rectangle -
isinnerlink -
returns:
throws:
java.lang.exception

insertvideomedia

public void insertvideomedia(int index,
                             java.lang.string filepath,
                             java.awt.geom.rectangle2d rectangle)
adds a new video to collection.
parameters:
index - index should be inserted.
filepath - video file path.
rectangle - rectangle should be inserted.
throws:
java.lang.exception

appendaudiomedia

public iaudio appendaudiomedia(java.awt.geom.rectangle2d rectangle)
adds an audio from cd
parameters:
rectangle -
returns:
throws:
java.lang.exception

insertaudiomedia

public void insertaudiomedia(int index,
                             java.awt.geom.rectangle2d rectangle)
insert an audio from cd.
parameters:
index -
rectangle -
throws:
java.lang.exception

appendaudiomedia

public iaudio appendaudiomedia(java.lang.string filepath,
                               float x,
                               float y,
                               boolean isembed)
adds a new audio to list.
parameters:
filepath - audio file name
x - x position
y - y position<
isembed - whether embed or not
returns:
throws:
java.lang.exception

appendaudiomedia

public iaudio appendaudiomedia(java.lang.string filepath,
                               float x,
                               float y)
adds a new audio to list.
parameters:
filepath - audio file name
x - x position
y - y position
returns:
throws:
java.lang.exception

appendaudiomedia

public iaudio appendaudiomedia(java.lang.string filepath,
                               java.awt.geom.rectangle2d rectangle,
                               boolean isembed)
adds a new audio to list.
parameters:
filepath - audio file name
rectangle - rectangle should be inserted
isembed - whether embed or not,default not
returns:
throws:
java.lang.exception

appendaudiomedia

public iaudio appendaudiomedia(java.lang.string filepath,
                               java.awt.geom.rectangle2d rectangle)
adds a new audio to list.
parameters:
filepath - audio file name
rectangle - rectangle should be inserted
returns:
throws:
java.lang.exception

insertaudiomedia

public void insertaudiomedia(int index,
                             java.lang.string filepath,
                             java.awt.geom.rectangle2d rectangle,
                             boolean isembed)
insert an audio to collection.
parameters:
index -
filepath - audio file path
rectangle - rectangle should be inserted.
isembed - whether embed or not,default not
throws:
java.lang.exception

insertaudiomedia

public void insertaudiomedia(int index,
                             java.lang.string filepath,
                             java.awt.geom.rectangle2d rectangle)
insert an audio to collection.
parameters:
index -
filepath - audio file path
rectangle - rectangle should be inserted.
throws:
java.lang.exception

insertaudiomedia

public void insertaudiomedia(int index,
                             java.lang.string filepath,
                             float x,
                             float y,
                             boolean isembed)
insert an audio to collection.
parameters:
index -
filepath - audio file path<
x -
y -
isembed - whether embed or not,default not
throws:
java.lang.exception

insertaudiomedia

public void insertaudiomedia(int index,
                             java.lang.string filepath,
                             float x,
                             float y)
insert an audio to collection.
parameters:
index -
filepath - audio file path
x -
y -
throws:
java.lang.exception

appendaudiomedia

public iaudio appendaudiomedia(java.io.inputstream stream,
                               java.awt.geom.rectangle2d rectangle)
adds a new audio to list.
parameters:
stream - audio inputstream
rectangle - rectangle should be inserted
returns:
throws:
java.lang.exception

appendaudiomedia

public iaudio appendaudiomedia(java.io.inputstream stream,
                               float x,
                               float y)
adds a new audio to list.
parameters:
stream - audio stream
x -
y -
returns:
throws:
java.lang.exception

insertaudiomedia

public void insertaudiomedia(int index,
                             java.io.inputstream stream,
                             java.awt.geom.rectangle2d rectangle)
insert an audio to collection.
parameters:
index - index to inserted.
stream - audio stream
rectangle - rectangle should be inserted
throws:
java.lang.exception

indexof

public int indexof(ishape shape)
gets the index of the first occurrence of a shape in the collectio
parameters:
shape -
returns:
index of the first occurrence of shape

toarray

public ishape[] toarray()
creates and returns an array with all shapse in it.
returns:
array of

toarray

public ishape[] toarray(int startindex,
                        int count)
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

zorder

public void zorder(int index,
                   ishape shape)
            throws documenteditexception
change a shape's zorder.
parameters:
index - target index.
shape - shape to move.
throws:
documenteditexception

zorder

public void zorder(int index,
                   ishape... shapes)
            throws documenteditexception
change shapes's zorder.
parameters:
index - target index
shapes - shapes to move.
throws:
documenteditexception

appendshape

public iautoshape appendshape(shapetype shapetype,
                              java.awt.geom.rectangle2d rectangle)
adds a new shape to list.
parameters:
shapetype -
rectangle -
returns:
throws:
java.lang.exception

appendshape

public iautoshape appendshape(shapetype shapetype,
                              com.spire.ms.system.drawing.pointf start,
                              com.spire.ms.system.drawing.pointf end)

appendroundrectangle

public iautoshape appendroundrectangle(float x,
                                       float y,
                                       float width,
                                       float height,
                                       float radius)
adds a roundrectangle to list.
parameters:
x - x-coordinates of rectangle.
y - y-coordinates of rectangle.
width - width of rectangle.
height - height of rectangle.
radius - radius of rectangle.
returns:
iautoshape
throws:
java.lang.exception

insertroundrectangle

public void insertroundrectangle(int index,
                                 float x,
                                 float y,
                                 float width,
                                 float height,
                                 float radius)
insert a new shape to collection.
parameters:
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.
throws:
java.lang.exception

insertshape

public void insertshape(int index,
                        shapetype shapetype,
                        java.awt.geom.rectangle2d rectangle)
insert a new shape to collection.
parameters:
index -
shapetype -
rectangle -
throws:
java.lang.exception

appendshapeconnector

public ishape appendshapeconnector(shapetype shapetype,
                                   java.awt.geom.rectangle2d rectangle)
add new shape connector to collection.
parameters:
shapetype -
rectangle -
returns:
throws:
java.lang.exception

insertshapeconnector

public void insertshapeconnector(int index,
                                 shapetype shapetype,
                                 java.awt.geom.rectangle2d rectangle)
insert a new shape connector to collection.
parameters:
index -
shapetype -
rectangle -
throws:
java.lang.exception

appendembedimage

public iembedimage appendembedimage(shapetype shapetype,
                                    iimagedata embedimage,
                                    java.awt.geom.rectangle2d rectangle)
add a new embed image to list.
parameters:
shapetype -
embedimage -
rectangle -
returns:
throws:
java.lang.exception

appendembedimage

public iembedimage appendembedimage(shapetype shapetype,
                                    java.io.inputstream stream,
                                    java.awt.geom.rectangle2d rectangle)
add a new embed image to list.
parameters:
shapetype -
stream -
rectangle -
returns:
throws:
java.lang.exception

appendembedimage

public iembedimage appendembedimage(shapetype shapetype,
                                    java.lang.string filename,
                                    java.awt.geom.rectangle2d rectangle)
add a new embed image to list.
parameters:
shapetype -
filename -
rectangle -
returns:
throws:
java.lang.exception

insertembedimage

public void insertembedimage(int index,
                             shapetype shapetype,
                             java.awt.geom.rectangle2d rectangle,
                             iimagedata embedimage)
insert a embed image to collection.
parameters:
index - index should be inserted.
shapetype - shape type.
rectangle - rectangle should be inserted.
embedimage - embed image object.
throws:
java.lang.exception

addshape

public void addshape(shape shape)
add a shape to shape list.
parameters:
shape - add a shape to shape list.

appendtable

public itable appendtable(float x,
                          float y,
                          java.lang.double[] widths,
                          java.lang.double[] heights)
add a new table to collection.
parameters:
x -
y -
widths -
heights -
returns:
throws:
java.lang.exception

inserttable

public void inserttable(int index,
                        float x,
                        float y,
                        java.lang.double[] columnwidths,
                        java.lang.double[] rowheights)
adds a new table to collection.
parameters:
index - index should be inserted
x - left side of shape.
y - top side of shape.
columnwidths - widths of columns in the table.
rowheights - heights of rows in the table.
throws:
java.lang.exception

removeat

public void removeat(int index)
removes the element at the specified index of the collection.
parameters:
index -

remove

public void remove(ishape shape)
removes the first occurrence of a specific shape from the collection.
parameters:
shape - the shape to remove from the collection

getparent

public java.lang.object getparent()
gets parent object for a shapes collection. read-only . see also .
returns:

addfromhtml

public void addfromhtml(java.lang.string htmltext)


网站地图