xlsshape-ag凯发旗舰厅



com.spire.xls.core.spreadsheet.shapes
class xlsshape

java.lang.object
  extended by com.spire.xls.core.spreadsheet.xlsobject
      extended by com.spire.xls.core.spreadsheet.shapes.xlsshape
all implemented interfaces:
ishape
direct known subclasses:
xlsbitmapshape, xlschartshape, xlscheckboxshape, xlscomboboxshape, xlscomment, xlslistboxshape, xlsovalshape, xlsprstgeomshape, xlsradiobuttonshape, xlsscrollbarshape, xlsspinnershape, xlstextboxshape

public class xlsshape
extends xlsobject
implements ishape

constructor summary
xlsshape(java.lang.object parent)
           
 
method summary
 java.lang.object deepclone(java.lang.object parent)
          creates a clone of the current shape.
 ishape deepclone(java.lang.object parent, java.util.hashmap hashnewnames, java.util.hashmap dicfontindexes, boolean addtocollections)
          creates a clone of the current shape.
 java.lang.string getalternativetext()
          returns or sets the descriptive (alternative) text string for a shape object when the object is saved to a web page.
 java.lang.string getalternativetexttitle()
          returns or sets the descriptive (alternative) text title string for a shape object when the object is saved to a web page.
 boolean getautosize()
          true if the size of the specified object is changed automatically to fit text within its boundaries.
 int getbottomrow()
          bottom row.
 int getbottomrowoffset()
          bottom row offset.
 ishapefill getfill()
          represents fill properties.
 int getheight()
          height of object.
 java.lang.string gethtmlstring()
          gets the html string which contains data and some formattings in this shape.
 int getid()
          id of object.
 int getleft()
          x of object
 int getleftcolumn()
          left column.
 int getleftcolumnoffset()
          left column offset.
 ishapelineformat getline()
          represents line format properties.
 java.lang.string getname()
          name of object.
 java.lang.string getonaction()
          gets or sets macro-command that is called when action happens.
 resizebehavetype getresizebehave()
          specifies all possible settings for how drawing object shall be resized when the rows and columns between its start and ending anchor are resized or inserted(comboboxshape and checkboxshape and radiobuttonshape set moveandresize type value is invalid)
 int getrightcolumn()
          right column.
 int getrightcolumnoffset()
          right column offset.
 int getrotation()
          returns or sets the rotation of the shape, in degrees.
 ishadow getshadow()
          gets the shadow properties.
 int getshapeid()
          gets / sets shape id.
 excelshapetype getshapetype()
          type of shape , read only.
 iformat3d getthreed()
          gets the chart3 d properties.
 int gettop()
          top of object.
 int gettoprow()
          top row.
 int gettoprowoffset()
          top row offset.256 means whole row offset
 boolean getupdatepositions()
          indicates whether we have to update absolute positions after setting toprow, bottomrow, leftcolumn, rightcolumn.
 boolean getvisible()
          determines whether the object is visible.
 boolean getvmlshape()
          indicates whether this is vml shape or not.
 int getwidth()
          width of object.
 boolean hasfill()
          indicates whether xlsfill item was created.
 void hasfill(boolean value)
          indicates whether xlsfill item was created.
 boolean haslineformat()
          indicates whether line item was created.
 void haslineformat(boolean value)
          indicates whether line item was created.
 boolean isfliph()
          returns or sets if the shape flips horizontal.false is default;
 void isfliph(boolean value)
          returns or sets if the shape flips horizontal.false is default;
 boolean isflipv()
          returns or sets if the shape flips vertical.false is default;
 void isflipv(boolean value)
          returns or sets if the shape flips vertical.false is default;
 boolean isgroup()
          this shape is group shape.
 boolean islockaspectratio()
          true means that don't allow changes in aspect ratio.
 void islockaspectratio(boolean value)
          true means that don't allow changes in aspect ratio.
 boolean islocked()
          true if the object is locked, false if the object can be modified when the sheet is protected.
 void islocked(boolean value)
          true if the object is locked, false if the object can be modified when the sheet is protected.
 boolean isprintable()
          true if the object is printable
 void isprintable(boolean value)
          true if the object is printable
 boolean isrelative()
           
 void isrelative(boolean value)
           
 void remove()
          removes object.
 void scale(int scalewidth, int scaleheight)
          scales the shape.
 void setalternativetext(java.lang.string value)
          returns or sets the descriptive (alternative) text string for a shape object when the object is saved to a web page.
 void setalternativetexttitle(java.lang.string value)
          returns or sets the descriptive (alternative) text title string for a shape object when the object is saved to a web page.
 void setautosize(boolean value)
          true if the size of the specified object is changed automatically to fit text within its boundaries.
 void setbottomrow(int value)
          bottom row.
 void setbottomrowoffset(int value)
          bottom row offset.
 void setheight(int height)
          sets height of object.
 void sethtmlstring(java.lang.string value)
          sets the html string which contains data and some formattings in this shape.
 void setleft(int value)
          x of object
 void setleftcolumn(int value)
          left column.
 void setleftcolumnoffset(int columnoffset)
          sets left column offset.
 void setname(java.lang.string name)
          sets object name
 void setonaction(java.lang.string value)
          gets or sets macro-command that is called when action happens.
 void setresizebehave(resizebehavetype value)
          specifies all possible settings for how drawing object shall be resized when the rows and columns between its start and ending anchor are resized or inserted(comboboxshape and checkboxshape and radiobuttonshape set moveandresize type value is invalid)
 void setrightcolumn(int value)
          right column.
 void setrightcolumnoffset(int value)
          right column offset.
 void setrotation(int value)
          returns or sets the rotation of the shape, in degrees.
 void setshapetype(excelshapetype value)
          type of shape , read only.
 void settop(int value)
          top of object.
 void settoprow(int value)
          top row.
 void settoprowoffset(int toprowoffset)
          sets top row offset.256 means whole row offset
 void setupdatepositions(boolean value)
          indicates whether we have to update absolute positions after setting toprow, bottomrow, leftcolumn, rightcolumn.
 void setvisible(boolean value)
          determines whether the object is visible.
 void setwidth(int width)
          sets width of object.
 
methods inherited from class com.spire.xls.core.spreadsheet.xlsobject
dispose
 
constructor detail

xlsshape

public xlsshape(java.lang.object parent)
method detail

getname

public java.lang.string getname()
name of object.
specified by:
getname in interface ishape

setname

public void setname(java.lang.string name)
sets object name
specified by:
setname in interface ishape
parameters:
name - name to set.

getheight

public int getheight()
height of object.
specified by:
getheight in interface ishape

setheight

public void setheight(int height)
sets height of object.
specified by:
setheight in interface ishape

getid

public int getid()
id of object.
specified by:
getid in interface ishape

getshapeid

public int getshapeid()
gets / sets shape id.

getleft

public int getleft()
x of object
specified by:
getleft in interface ishape

setleft

public void setleft(int value)
x of object

gettop

public int gettop()
top of object.
specified by:
gettop in interface ishape

settop

public void settop(int value)
top of object.
specified by:
settop in interface ishape

getwidth

public int getwidth()
width of object.
specified by:
getwidth in interface ishape

setwidth

public void setwidth(int width)
sets width of object.
specified by:
setwidth in interface ishape

getshapetype

public excelshapetype getshapetype()
type of shape , read only.
specified by:
getshapetype in interface ishape

setshapetype

public void setshapetype(excelshapetype value)
type of shape , read only.

getvmlshape

public boolean getvmlshape()
indicates whether this is vml shape or not.

isrelative

public boolean isrelative()

isrelative

public void isrelative(boolean value)

getvisible

public boolean getvisible()
description copied from interface: ishape
determines whether the object is visible.
specified by:
getvisible in interface ishape

setvisible

public void setvisible(boolean value)
description copied from interface: ishape
determines whether the object is visible.
specified by:
setvisible in interface ishape

gethtmlstring

public java.lang.string gethtmlstring()
gets the html string which contains data and some formattings in this shape.
specified by:
gethtmlstring in interface ishape
returns:

sethtmlstring

public void sethtmlstring(java.lang.string value)
sets the html string which contains data and some formattings in this shape.
specified by:
sethtmlstring in interface ishape
parameters:
value -

getalternativetext

public java.lang.string getalternativetext()
returns or sets the descriptive (alternative) text string for a shape object when the object is saved to a web page. read/write string
specified by:
getalternativetext in interface ishape

setalternativetext

public void setalternativetext(java.lang.string value)
returns or sets the descriptive (alternative) text string for a shape object when the object is saved to a web page. read/write string

getfill

public ishapefill getfill()
represents fill properties.
specified by:
getfill in interface ishape

getupdatepositions

public boolean getupdatepositions()
indicates whether we have to update absolute positions after setting toprow, bottomrow, leftcolumn, rightcolumn.

setupdatepositions

public void setupdatepositions(boolean value)
indicates whether we have to update absolute positions after setting toprow, bottomrow, leftcolumn, rightcolumn.

hasfill

public boolean hasfill()
indicates whether xlsfill item was created. read-only.

hasfill

public void hasfill(boolean value)
indicates whether xlsfill item was created. read-only.

haslineformat

public boolean haslineformat()
indicates whether line item was created. read-only.

haslineformat

public void haslineformat(boolean value)
indicates whether line item was created. read-only.

isfliph

public boolean isfliph()
returns or sets if the shape flips horizontal.false is default;

isfliph

public void isfliph(boolean value)
returns or sets if the shape flips horizontal.false is default;

isflipv

public boolean isflipv()
returns or sets if the shape flips vertical.false is default;

isflipv

public void isflipv(boolean value)
returns or sets if the shape flips vertical.false is default;

isgroup

public boolean isgroup()
this shape is group shape.

getalternativetexttitle

public java.lang.string getalternativetexttitle()
returns or sets the descriptive (alternative) text title string for a shape object when the object is saved to a web page. read/write string

setalternativetexttitle

public void setalternativetexttitle(java.lang.string value)
returns or sets the descriptive (alternative) text title string for a shape object when the object is saved to a web page. read/write string

getonaction

public java.lang.string getonaction()
gets or sets macro-command that is called when action happens.
specified by:
getonaction in interface ishape

setonaction

public void setonaction(java.lang.string value)
gets or sets macro-command that is called when action happens.
specified by:
setonaction in interface ishape

islocked

public boolean islocked()
description copied from interface: ishape
true if the object is locked, false if the object can be modified when the sheet is protected.
specified by:
islocked in interface ishape

islocked

public void islocked(boolean value)
description copied from interface: ishape
true if the object is locked, false if the object can be modified when the sheet is protected.
specified by:
islocked in interface ishape

isprintable

public boolean isprintable()
description copied from interface: ishape
true if the object is printable
specified by:
isprintable in interface ishape

isprintable

public void isprintable(boolean value)
description copied from interface: ishape
true if the object is printable
specified by:
isprintable in interface ishape

getresizebehave

public resizebehavetype getresizebehave()
specifies all possible settings for how drawing object shall be resized when the rows and columns between its start and ending anchor are resized or inserted(comboboxshape and checkboxshape and radiobuttonshape set moveandresize type value is invalid)
specified by:
getresizebehave in interface ishape

setresizebehave

public void setresizebehave(resizebehavetype value)
specifies all possible settings for how drawing object shall be resized when the rows and columns between its start and ending anchor are resized or inserted(comboboxshape and checkboxshape and radiobuttonshape set moveandresize type value is invalid)
specified by:
setresizebehave in interface ishape

islockaspectratio

public boolean islockaspectratio()
true means that don't allow changes in aspect ratio.
specified by:
islockaspectratio in interface ishape

islockaspectratio

public void islockaspectratio(boolean value)
true means that don't allow changes in aspect ratio.
specified by:
islockaspectratio in interface ishape

getbottomrow

public int getbottomrow()
bottom row.

setbottomrow

public void setbottomrow(int value)
bottom row.

getbottomrowoffset

public int getbottomrowoffset()
bottom row offset.

setbottomrowoffset

public void setbottomrowoffset(int value)
bottom row offset.

getleftcolumn

public int getleftcolumn()
left column.

setleftcolumn

public void setleftcolumn(int value)
left column.

getleftcolumnoffset

public int getleftcolumnoffset()
left column offset. 1024 means whole column offset

setleftcolumnoffset

public void setleftcolumnoffset(int columnoffset)
sets left column offset. 1024 means whole column offset

getrightcolumn

public int getrightcolumn()
right column.

setrightcolumn

public void setrightcolumn(int value)
right column.

getrightcolumnoffset

public int getrightcolumnoffset()
right column offset.

setrightcolumnoffset

public void setrightcolumnoffset(int value)
right column offset.

gettoprow

public int gettoprow()
top row.

settoprow

public void settoprow(int value)
top row.

gettoprowoffset

public int gettoprowoffset()
top row offset.256 means whole row offset

settoprowoffset

public void settoprowoffset(int toprowoffset)
sets top row offset.256 means whole row offset

getline

public ishapelineformat getline()
represents line format properties. read only.

getautosize

public boolean getautosize()
true if the size of the specified object is changed automatically to fit text within its boundaries.

setautosize

public void setautosize(boolean value)
true if the size of the specified object is changed automatically to fit text within its boundaries.

getrotation

public int getrotation()
returns or sets the rotation of the shape, in degrees.
specified by:
getrotation in interface ishape

setrotation

public void setrotation(int value)
returns or sets the rotation of the shape, in degrees.
specified by:
setrotation in interface ishape

getshadow

public ishadow getshadow()
gets the shadow properties.
specified by:
getshadow in interface ishape

getthreed

public iformat3d getthreed()
gets the chart3 d properties.
specified by:
getthreed in interface ishape

remove

public void remove()
removes object.
specified by:
remove in interface ishape

scale

public void scale(int scalewidth,
                  int scaleheight)
scales the shape.
specified by:
scale in interface ishape
parameters:
scalewidth - width scale in percent.
scaleheight - height scale in percent.

deepclone

public java.lang.object deepclone(java.lang.object parent)
creates a clone of the current shape.
parameters:
parent - new parent for the shape object.
returns:
a copy of the current shape.

deepclone

public ishape deepclone(java.lang.object parent,
                        java.util.hashmap hashnewnames,
                        java.util.hashmap dicfontindexes,
                        boolean addtocollections)
creates a clone of the current shape.
parameters:
parent - new parent for the shape object.
hashnewnames - hashtable with new worksheet names.
dicfontindexes - dictionary with new font indexes.
returns:
a copy of the current shape.


网站地图