|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.spire.doc.OwnerHolder
com.spire.doc.documents.xml.DocumentSerializable
com.spire.doc.DocumentObject
com.spire.doc.DocumentBase
com.spire.doc.fields.ParagraphBase
com.spire.doc.fields.shape.ShapeBase
com.spire.doc.fields.ShapeObject
public class ShapeObject
| 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.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 |
|---|
public ShapeObject(IDocument doc)
doc - doc
public ShapeObject(IDocument doc,
ShapeType shapeType)
doc - The owner document.shapeType - The type of the shape to create.| Method Detail |
|---|
public DocumentObjectType getDocumentObjectType()
getDocumentObjectType in interface IDocumentObjectgetDocumentObjectType in class ShapeBasepublic CharacterFormat getCharacterFormat()
getCharacterFormat in class ParagraphBasepublic java.awt.Color getFillColor()
Color.WHITE
public void setFillColor(java.awt.Color value)
value - Colorpublic double getStrokeWeight()
public void setStrokeWeight(double value)
value - doublepublic java.awt.Color getStrokeColor()
Color.BLACK *
public void setStrokeColor(java.awt.Color value)
value - Colorpublic ShapeLineStyle getLineStyle()
The default value is ShapeLineStyle.Single
public void setLineStyle(ShapeLineStyle value)
value - ShapeLineStylepublic boolean hasImage()
public WordArt getWordArt()
public DocumentObjectCollection getChildObjects()
ParagraphBase
getChildObjects in interface ICompositeObjectgetChildObjects in class ShapeBase
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||