shapeobject-ag凯发旗舰厅



com.spire.doc.fields
class shapeobject

java.lang.object
  extended by com.spire.doc.ownerholder
      extended by com.spire.doc.documents.xml.documentserializable
          extended by com.spire.doc.documentobject
              extended by com.spire.doc.documentbase
                  extended by com.spire.doc.fields.paragraphbase
                      extended by com.spire.doc.fields.shape.shapebase
                          extended by com.spire.doc.fields.shapeobject
all implemented interfaces:
irunattrsource, icompositeobject, idocumentobject, iparagraphbase
direct known subclasses:
docoleobject, docpicture, shapegroup, textbox

public class shapeobject
extends shapebase

constructor summary
shapeobject(idocument doc)
          ctor.
shapeobject(idocument doc, shapetype shapetype)
          creates a new shape object.
 
method summary
 characterformat getcharacterformat()
          gets shape object's character format.
 documentobjectcollection getchildobjects()
          gets the child objects of the entity.
 documentobjecttype getdocumentobjecttype()
          gets the type of the document object.
 java.awt.color getfillcolor()
          gets the brush color that fills the closed path of the shape.
 shapelinestyle getlinestyle()
          gets the line style of the stroke.
 java.awt.color getstrokecolor()
          gets the color of a stroke.
 double getstrokeweight()
          defines the brush thickness that strokes the path of a shape in points.
 wordart getwordart()
          defines the text of the text path (of a wordart object).
 boolean hasimage()
          returns true if the shape has image bytes or links an image.
 void setfillcolor(java.awt.color value)
          sets the brush color that fills the closed path of the shape.
 void setlinestyle(shapelinestyle value)
          sets the line style of the stroke.
 void setstrokecolor(java.awt.color value)
          sets the color of a stroke.
 void setstrokeweight(double value)
          defines the brush thickness that strokes the path of a shape in points.
 
methods inherited from class com.spire.doc.fields.shape.shapebase
getallowoverlap, getbehindtext, getbottom, getdistancebottom, getdistanceleft, getdistanceright, getdistancetop, getheight, gethorizontalalignment, gethorizontalorigin, gethorizontalposition, getparentparagraph, getright, getrotation, getshapetype, gettextwrappingstyle, gettextwrappingtype, getverticalalignment, getverticalorigin, getverticalposition, getwidth, getzorder, haskey, isimage, localtoparent, removeshapeattribute, setallowoverlap, setbehindtext, setdistancebottom, setdistanceleft, setdistanceright, setdistancetop, setheight, sethorizontalalignment, sethorizontalorigin, sethorizontalposition, setrotation, setshapeattr, setshapeattribute, setshapetype, settextwrappingstyle, settextwrappingtype, setverticalalignment, setverticalorigin, setverticalposition, setwidth, setzorder
 
methods inherited from class com.spire.doc.fields.paragraphbase
applycharacterformat, applystyle, getancestor, getownerparagraph, getstylename, isdeleterevision, isinsertrevision
 
methods inherited from class com.spire.doc.documentobject
deepclone, getfirstchild, getlastchild, getnextsibling, getowner, getprevioussibling, iscomposite, tostring
 
methods inherited from class com.spire.doc.ownerholder
getdocument
 
methods inherited from interface com.spire.doc.interfaces.idocumentobject
deepclone, getdocument, getnextsibling, getowner, getprevioussibling, iscomposite
 
methods inherited from interface com.spire.doc.documents.irunattrsource
clearrunattrs, fetchinheritedrunattr, getdirectrunattr, getdirectrunattrbyindex, getdirectrunattrscount, setrunattr
 
constructor detail

shapeobject

public shapeobject(idocument doc)
ctor. use this internally only.
parameters:
doc - doc

shapeobject

public shapeobject(idocument doc,
                   shapetype shapetype)
creates a new shape object.
parameters:
doc - the owner document.
shapetype - the type of the shape to create.
method detail

getdocumentobjecttype

public documentobjecttype getdocumentobjecttype()
gets the type of the document object.
specified by:
getdocumentobjecttype in interface idocumentobject
overrides:
getdocumentobjecttype in class shapebase
returns:
the type of the document object.

getcharacterformat

public characterformat getcharacterformat()
gets shape object's character format.
overrides:
getcharacterformat in class paragraphbase
returns:
characterformat

getfillcolor

public java.awt.color getfillcolor()
gets the brush color that fills the closed path of the shape. the default value is color.white
returns:
color

setfillcolor

public void setfillcolor(java.awt.color value)
sets the brush color that fills the closed path of the shape.
parameters:
value - color

getstrokeweight

public double getstrokeweight()
defines the brush thickness that strokes the path of a shape in points. the default value is 0.75.
returns:
double

setstrokeweight

public void setstrokeweight(double value)
defines the brush thickness that strokes the path of a shape in points.
parameters:
value - double

getstrokecolor

public java.awt.color getstrokecolor()
gets the color of a stroke. the default value is color.black *
returns:
color

setstrokecolor

public void setstrokecolor(java.awt.color value)
sets the color of a stroke.
parameters:
value - color

getlinestyle

public shapelinestyle getlinestyle()
gets the line style of the stroke.

the default value is shapelinestyle.single

returns:
shapelinestyle

setlinestyle

public void setlinestyle(shapelinestyle value)
sets the line style of the stroke.
parameters:
value - shapelinestyle

hasimage

public boolean hasimage()
returns true if the shape has image bytes or links an image.
returns:
boolean

getwordart

public wordart getwordart()
defines the text of the text path (of a wordart object).
returns:
wordart

getchildobjects

public documentobjectcollection getchildobjects()
description copied from class: paragraphbase
gets the child objects of the entity.
specified by:
getchildobjects in interface icompositeobject
overrides:
getchildobjects in class shapebase
returns:
documentobjectcollection


网站地图