com.aspose.diagram
Class Shape

java.lang.Object
    extended by com.aspose.diagram.Shape

public class Shape 
extends java.lang.Object

Contains elements that define a shape in a Master, Page, or group shape element.


Constructor Summary
Shape()
           Constructor.
 
Property Getters/Setters Summary
ActiveXControlgetActiveXControl()
           Gets the ActiveX control.
ActCollectiongetActs()
           Contains a collection of Act elements.
AligngetAlign()
           Indicates the alignment of a shape with respect to the guide or guide point to which the shape is glued. The Align element appears only for shapes that are glued to guides or guide points.
CharCollectiongetChars()
           Contains a collection of Char elements.
java.lang.StringgetClippingPath()
voidsetClippingPath(java.lang.String)
          
ConnectionABCDCollectiongetConnectionABCDs()
           Contains a collection of ConnectionABCD elements.
ConnectionCollectiongetConnections()
           Contains a collection of Connection elements.
byte[]getControlData()
           Gets the data of control.
ControlCollectiongetControls()
           Contains a collection of Control elements.
java.lang.StringgetData1()
voidsetData1(java.lang.String)
           Contains an arbitrary string value that is used to supply additional information about a shape.
java.lang.StringgetData2()
voidsetData2(java.lang.String)
           Contains an arbitrary string value that is used to supply additional information about a shape.
java.lang.StringgetData3()
voidsetData3(java.lang.String)
           Contains an arbitrary string value that is used to supply additional information about a shape.
intgetDel()
voidsetDel(int)
           A flag indicating whether the element is deleted locally. A value of 1 indicates that the element is deleted locally. The value of the property is BOOL integer constant.
DiagramgetDiagram()
voidsetDiagram(Diagram)
           Root element of Visio objects hierarchy.
EventgetEvent()
voidsetEvent(Event)
           Contains elements that specify formulas that control shape events.
FieldCollectiongetFields()
           Contains a collection of Field elements.
FillgetFill()
           Contains the current fill formatting values for the shape and the shape's drop shadow, including pattern, foreground color, and background color.
StyleSheetgetFillStyle()
voidsetFillStyle(StyleSheet)
           StyleSheet from which this shape inherits fill formatting.
ForeigngetForeign()
           Contains elements specifying the width and height of an object from another program used in a Microsoft Visio document. Also includes elements specifying the distance the object's image is offset within its borders.
ForeignDatagetForeignData()
           Contains a MIME (Multipurpose Internet Mail Extensions) encoded BLOB of picture data, such as Windows metafile, bitmap, or OLE data.
GeomCollectiongetGeoms()
           Contains a collection of Geom elements.
GroupgetGroup()
           Contains elements that control how you add shapes to a group, move members of a group, and select groups.
booleanhasThemeColor()
           Gets whether the shape has theme color.
HelpgetHelp()
           Contains elements specifying the Shape element's Help file topic and copyright information.
HyperlinkCollectiongetHyperlinks()
           Contains a collection of Hyperlink elements.
longgetID()
voidsetID(long)
           The unique ID of the element within its parent element.
ImagegetImage()
           Contains the gamma, brightness, contrast, blur, sharpen, denoise, and transparency values for a bitmap.
ActCollectiongetInheritActs()
           Contains the actions for the shape inherit by the master shape.
CharCollectiongetInheritChars()
           Contains the char values for the shape inherit by the master shape.
FillgetInheritFill()
           Contains the fill formatting values for the shape inherit by the parent style and the master shape.
GeomCollectiongetInheritGeoms()
           Contains the Geoms values for the shape inherit by the master shape.
GroupgetInheritGroup()
          
LinegetInheritLine()
           Contains the line formatting values for the shape inherit by the parent style and the master shape.
ParaCollectiongetInheritParas()
           Contains the paras for the shape inherit by the parent style and the master shape.
PropCollectiongetInheritProps()
           Contains the props for the shape inherit by the master shape.
TextBlockgetInheritTextBlock()
           Contains the textblock values for the shape inherit by the parent style and the master shape.
UserCollectiongetInheritUsers()
           Contains the users for the shape inherit by the master shape.
LayerMemgetLayerMem()
           Contains the LayerMember element, which specifies each layer to which the shape is assigned.
LayoutgetLayout()
           Contains elements that control shape placement and connector routing settings.
LinegetLine()
           Contains elements that control line attributes for a shape, such as pattern, weight, and color. These elements determine whether the line ends are formatted (for example, with an arrowhead), the size of line end formats, radius of the rounding circle applied to the line, and line cap style (round or square).
StyleSheetgetLineStyle()
voidsetLineStyle(StyleSheet)
           StyleSheet from which this shape inherits line formatting
MastergetMaster()
voidsetMaster(Master)
           The Master from which the shape inherits its data.
ShapegetMasterShape()
voidsetMasterShape(Shape)
           This attribute may only be present in shapes that are members of a group shape, and the group is an instance of a master. The attribute contains an ID that references the corresponding sub-shape in the master.
MiscgetMisc()
           Contains elements specifying the Shape element's Help file topic and copyright information.
java.lang.StringgetName()
voidsetName(java.lang.String)
           The name of the element.
java.lang.StringgetNameU()
voidsetNameU(java.lang.String)
           The universal name of the element.
booleangetOneD()
           Determines whether the shape behaves as a one-dimensional (1-D) object. Read-only.
PagegetPage()
voidsetPage(Page)
           Root element of Visio objects hierarchy.
ParaCollectiongetParas()
           Contains a collection of Para elements.
ShapegetParentShape()
voidsetParentShape(Shape)
           Shape's parent.
voidsetPresetTheme(int)
           Apply a preset theme to this shape The value of the property is PresetThemeValue integer constant.
voidsetPresetThemeQuickStyle(int)
           Apply a preset theme variant quickstyle to this shape The value of the property is PresetQuickStyleValue integer constant.
voidsetPresetThemeVariant(int)
           Apply a preset theme variant to this shape The value of the property is PresetThemeVariantValue integer constant.
PropCollectiongetProps()
voidsetProps(PropCollection)
           Contains a collection of Prop elements.
ProtectiongetProtection()
           Locking helps prevent inadvertent changes to the shape but does not prevent Microsoft Visio from resetting values in other circumstances. It also does not protect against changes made in the ShapeSheet window.
ShapegetRootShape()
           Returns the top-level shape of an instance if this shape is part of a master instance. Read-only.
ScratchCollectiongetScratchs()
           Contains a collection of Scratch elements.
ShapeCollectiongetShapes()
           Contains a collection of Shape elements.
SmartTagDefCollectiongetSmartTagDefs()
           Contains a collection of SmartTagDef elements.
TabsCollectiongetTabsCollection()
           Contains a collection of Tab elements.
TextgetText()
voidsetText(Text)
           Contains the text of a shape.
TextBlockgetTextBlock()
           Contains elements that specify the alignment, margins, and default tab stop positions of text in a shape's text block.
StyleSheetgetTextStyle()
voidsetTextStyle(StyleSheet)
           StyleSheet from which this shape inherits text formatting.
TextXFormgetTextXForm()
           Contains elements that specify positioning information about a shape's text block.
ThreeDFormatgetThreeDFormat()
           Gets the ThreeDFormat.
booleangetTwoD()
voidsetTwoD(boolean)
           Determines whether the shape behaves as a two-dimensional (2-D) object.
intgetType()
voidsetType(int)
           The type of a shape. It may be one of the following values: Group, Shape, Guide, or Foreign. The value of the property is TypeValue integer constant.
java.util.UUIDgetUniqueID()
           A GUID (globally unique identifier) assigned to the shape.
UserCollectiongetUsers()
           Contains a collection of User elements.
XFormgetXForm()
voidsetXForm(XForm)
           Contains elements specifying general positioning information about a shape.
XForm1DgetXForm1D()
voidsetXForm1D(XForm1D)
           Contains x- and y-coordinates of the begin point and end point of a 1-D shape. This element appears for 1-D shapes only.
intgetZOrderIndex()
           Returns the index of a shape in the z-order except the guide shape.
 
Method Summary
voidbringForward()
           Brings the shape forward one position in the z-order.
voidbringToFront()
           Brings the shape to the front of the z-order.
voidcenterDrawing()
           Center the shape with respect to the extent of the page
long[]connectedShapes(int flag, java.lang.String categoryFilter)
           Returns an array that contains the identifiers (IDs) of the shapes that are connected to the shape.
voidconvertToGroup()
           Converts a selection or an object from another application (a linked or embedded object) to a group.
voidcopy(Shape source)
          
long[]dependsOnShapes()
           Returns an array that contains the identifiers of the shapes that are depends on a shape.
ConnectorRulegetConnectorRule()
           Returns a connectorRule that contains the shape id and connecton that are connected to the shape.
intgetConnectorsType()
           Get Connectors type
java.lang.StringgetDisplayText()
           Get the text displayed on the interface
java.lang.StringgetPureText()
           Get the text string
intgetRelationFlag(Shape shape)
           Returns RelationFlag that represents the relationship of one shape to another shape.
RelationShapeCollectiongetRelationShapeCollection()
           Returns RelationShapeCollection that represents the relationshapes of one shape.
long[]gluedShapes(int flag, java.lang.String categoryFilter, Shape otherShape)
           Returns an array that contains the identifiers of the shapes that are glued to a shape.
booleanisConnected(Shape shape)
           Indicates whether this two shapes are connected.
booleanisContain(Shape shape)
           Indicates whether this shape is contain another shape.
booleanisGlued(Shape shape)
           Indicates whether this two shapes are glued.
booleanisInGroup()
           Indicates whether this shape is in a group shape.
booleanisIntersect(Shape shape)
           Indicates whether this shape is intersect another shape.
voidmove(double dX, double dY)
           Moves shape on the dX and dY inches from current position.
voidmoveTo(double newPinX, double newPinY)
           Moves shape on new absolute position on the page.
voidrefreshData()
           Refreshes shape's position including xform ,connection and geom when changing shape's text or other's .
voidreplaceText(java.lang.String text, java.lang.String replaceText)
           Replace the text string of a shape .
voidsendBackward()
           Moves the shape back one position in the z-order.
voidsendToBack()
           Moves the shape to the back of the z-order.
voidsetAngle(double angle)
           Sets new angle of shape. The angle's unit is radian.
voidsetConnectorJumpValue(int code, int style)
           Set Jump code value and Jump style value for Connector
voidsetConnectorsType(int type)
           Set Connectors type
voidsetHeight(double height)
           Sets new height of shape.
voidsetPresetThemeStyleMatrics(int styleIndex, int colorIndex)
           pply a preset theme variant quickstyle to this shape, like theme styles options in shape styles dropdown list
voidsetWidth(double width)
           Sets new width of shape.
voidtoHTML(java.io.OutputStream stream, HTMLSaveOptions options)
           Creates the shape html and saves it to a stream in the specified format.
voidtoHTML(java.lang.String fileName, HTMLSaveOptions options)
           Creates the html and saves it to a file.
voidtoImage(java.io.OutputStream stream, ImageSaveOptions options)
           Creates the shape image and saves it to a stream in the specified format.
voidtoImage(java.lang.String imageFile, ImageSaveOptions options)
           Creates the shape image and saves it to a file. The extension of the file name determines the format of the image.
voidtoPdf(java.io.OutputStream stream)
           Creates the shape pdf and saves it to a stream.
voidtoPdf(java.lang.String fileName)
           Saves the shape to a pdf file.
voidtoSvg(java.lang.String fileName, SVGSaveOptions options)
           Saves the shape to a svg file.
voidungroup()
           Ungroup Shape
 

Constructor Detail

Shape

public Shape()
Constructor.

Property Getters/Setters Detail

getID/setID

public long getID() / public void setID(long value)
The unique ID of the element within its parent element.

getDel/setDel

public int getDel() / public void setDel(int value)
A flag indicating whether the element is deleted locally. A value of 1 indicates that the element is deleted locally. The value of the property is BOOL integer constant.

getUniqueID

public java.util.UUID getUniqueID()
A GUID (globally unique identifier) assigned to the shape.

getName/setName

public java.lang.String getName() / public void setName(java.lang.String value)
The name of the element.

getNameU/setNameU

public java.lang.String getNameU() / public void setNameU(java.lang.String value)
The universal name of the element.

getType/setType

public int getType() / public void setType(int value)
The type of a shape. It may be one of the following values: Group, Shape, Guide, or Foreign. The value of the property is TypeValue integer constant.

getLineStyle/setLineStyle

public StyleSheet getLineStyle() / public void setLineStyle(StyleSheet value)
StyleSheet from which this shape inherits line formatting

getFillStyle/setFillStyle

public StyleSheet getFillStyle() / public void setFillStyle(StyleSheet value)
StyleSheet from which this shape inherits fill formatting.

getTextStyle/setTextStyle

public StyleSheet getTextStyle() / public void setTextStyle(StyleSheet value)
StyleSheet from which this shape inherits text formatting.

getShapes

public ShapeCollection getShapes()
Contains a collection of Shape elements.

getText/setText

public Text getText() / public void setText(Text value)
Contains the text of a shape.

getXForm/setXForm

public XForm getXForm() / public void setXForm(XForm value)
Contains elements specifying general positioning information about a shape.

getLine

public Line getLine()
Contains elements that control line attributes for a shape, such as pattern, weight, and color. These elements determine whether the line ends are formatted (for example, with an arrowhead), the size of line end formats, radius of the rounding circle applied to the line, and line cap style (round or square).

getFill

public Fill getFill()
Contains the current fill formatting values for the shape and the shape's drop shadow, including pattern, foreground color, and background color.

hasThemeColor

public boolean hasThemeColor()
Gets whether the shape has theme color.

getInheritChars

public CharCollection getInheritChars()
Contains the char values for the shape inherit by the master shape.

getInheritProps

public PropCollection getInheritProps()
Contains the props for the shape inherit by the master shape.

getInheritActs

public ActCollection getInheritActs()
Contains the actions for the shape inherit by the master shape.

getInheritGroup

public Group getInheritGroup()

getInheritUsers

public UserCollection getInheritUsers()
Contains the users for the shape inherit by the master shape.

getInheritGeoms

public GeomCollection getInheritGeoms()
Contains the Geoms values for the shape inherit by the master shape.

getInheritParas

public ParaCollection getInheritParas()
Contains the paras for the shape inherit by the parent style and the master shape.

getInheritTextBlock

public TextBlock getInheritTextBlock()
Contains the textblock values for the shape inherit by the parent style and the master shape.

getInheritLine

public Line getInheritLine()
Contains the line formatting values for the shape inherit by the parent style and the master shape.

getInheritFill

public Fill getInheritFill()
Contains the fill formatting values for the shape inherit by the parent style and the master shape.

getXForm1D/setXForm1D

public XForm1D getXForm1D() / public void setXForm1D(XForm1D value)
Contains x- and y-coordinates of the begin point and end point of a 1-D shape. This element appears for 1-D shapes only.

getEvent/setEvent

public Event getEvent() / public void setEvent(Event value)
Contains elements that specify formulas that control shape events.

getLayerMem

public LayerMem getLayerMem()
Contains the LayerMember element, which specifies each layer to which the shape is assigned.

getForeign

public Foreign getForeign()
Contains elements specifying the width and height of an object from another program used in a Microsoft Visio document. Also includes elements specifying the distance the object's image is offset within its borders.

getTextBlock

public TextBlock getTextBlock()
Contains elements that specify the alignment, margins, and default tab stop positions of text in a shape's text block.

getTextXForm

public TextXForm getTextXForm()
Contains elements that specify positioning information about a shape's text block.

getAlign

public Align getAlign()
Indicates the alignment of a shape with respect to the guide or guide point to which the shape is glued. The Align element appears only for shapes that are glued to guides or guide points.

getProtection

public Protection getProtection()
Locking helps prevent inadvertent changes to the shape but does not prevent Microsoft Visio from resetting values in other circumstances. It also does not protect against changes made in the ShapeSheet window.

getHelp

public Help getHelp()
Contains elements specifying the Shape element's Help file topic and copyright information.

getMisc

public Misc getMisc()
Contains elements specifying the Shape element's Help file topic and copyright information.

getImage

public Image getImage()
Contains the gamma, brightness, contrast, blur, sharpen, denoise, and transparency values for a bitmap.

getGroup

public Group getGroup()
Contains elements that control how you add shapes to a group, move members of a group, and select groups.

getLayout

public Layout getLayout()
Contains elements that control shape placement and connector routing settings.

getChars

public CharCollection getChars()
Contains a collection of Char elements.

getParas

public ParaCollection getParas()
Contains a collection of Para elements.

getScratchs

public ScratchCollection getScratchs()
Contains a collection of Scratch elements.

getConnections

public ConnectionCollection getConnections()
Contains a collection of Connection elements.

getConnectionABCDs

public ConnectionABCDCollection getConnectionABCDs()
Contains a collection of ConnectionABCD elements.

getFields

public FieldCollection getFields()
Contains a collection of Field elements.

getControls

public ControlCollection getControls()
Contains a collection of Control elements.

getGeoms

public GeomCollection getGeoms()
Contains a collection of Geom elements.

getActs

public ActCollection getActs()
Contains a collection of Act elements.

getUsers

public UserCollection getUsers()
Contains a collection of User elements.

getProps/setProps

public PropCollection getProps() / public void setProps(PropCollection value)
Contains a collection of Prop elements.

getHyperlinks

public HyperlinkCollection getHyperlinks()
Contains a collection of Hyperlink elements.

getSmartTagDefs

public SmartTagDefCollection getSmartTagDefs()
Contains a collection of SmartTagDef elements.

getTabsCollection

public TabsCollection getTabsCollection()
Contains a collection of Tab elements.

getData1/setData1

public java.lang.String getData1() / public void setData1(java.lang.String value)
Contains an arbitrary string value that is used to supply additional information about a shape.

getData2/setData2

public java.lang.String getData2() / public void setData2(java.lang.String value)
Contains an arbitrary string value that is used to supply additional information about a shape.

getData3/setData3

public java.lang.String getData3() / public void setData3(java.lang.String value)
Contains an arbitrary string value that is used to supply additional information about a shape.

getClippingPath/setClippingPath

public java.lang.String getClippingPath() / public void setClippingPath(java.lang.String value)

getForeignData

public ForeignData getForeignData()
Contains a MIME (Multipurpose Internet Mail Extensions) encoded BLOB of picture data, such as Windows metafile, bitmap, or OLE data.

getMasterShape/setMasterShape

public Shape getMasterShape() / public void setMasterShape(Shape value)
This attribute may only be present in shapes that are members of a group shape, and the group is an instance of a master. The attribute contains an ID that references the corresponding sub-shape in the master.

getMaster/setMaster

public Master getMaster() / public void setMaster(Master value)
The Master from which the shape inherits its data.

getParentShape/setParentShape

public Shape getParentShape() / public void setParentShape(Shape value)
Shape's parent.

getRootShape

public Shape getRootShape()
Returns the top-level shape of an instance if this shape is part of a master instance. Read-only.

getDiagram/setDiagram

public Diagram getDiagram() / public void setDiagram(Diagram value)
Root element of Visio objects hierarchy.

getPage/setPage

public Page getPage() / public void setPage(Page value)
Root element of Visio objects hierarchy.

getOneD

public boolean getOneD()
Determines whether the shape behaves as a one-dimensional (1-D) object. Read-only.

getTwoD/setTwoD

public boolean getTwoD() / public void setTwoD(boolean value)
Determines whether the shape behaves as a two-dimensional (2-D) object.

getControlData

public byte[] getControlData()
Gets the data of control.

getActiveXControl

public ActiveXControl getActiveXControl()
Gets the ActiveX control.

getZOrderIndex

public int getZOrderIndex()
Returns the index of a shape in the z-order except the guide shape.

setPresetTheme

public void setPresetTheme(int value)
Apply a preset theme to this shape The value of the property is PresetThemeValue integer constant.

setPresetThemeVariant

public void setPresetThemeVariant(int value)
Apply a preset theme variant to this shape The value of the property is PresetThemeVariantValue integer constant.

setPresetThemeQuickStyle

public void setPresetThemeQuickStyle(int value)
Apply a preset theme variant quickstyle to this shape The value of the property is PresetQuickStyleValue integer constant.

getThreeDFormat

public ThreeDFormat getThreeDFormat()
Gets the ThreeDFormat.

Method Detail

convertToGroup

public void convertToGroup()
Converts a selection or an object from another application (a linked or embedded object) to a group.

getConnectorsType

public int getConnectorsType()
Get Connectors type

setConnectorJumpValue

public void setConnectorJumpValue(int code, int style)
                          throws java.lang.Exception
Set Jump code value and Jump style value for Connector
Parameters:
code - A ConLineJumpCodeValue value. Jump Code Value
style - A ConLineJumpStyleValue value. Jump Code Style

setConnectorsType

public void setConnectorsType(int type)
                      throws java.lang.Exception
Set Connectors type
Parameters:
type - A ConnectorsTypeValue value. Connectors type value

getRelationFlag

public int getRelationFlag(Shape shape)
Returns RelationFlag that represents the relationship of one shape to another shape.
Parameters:
shape - Shape

getRelationShapeCollection

public RelationShapeCollection getRelationShapeCollection()
Returns RelationShapeCollection that represents the relationshapes of one shape.

setPresetThemeStyleMatrics

public void setPresetThemeStyleMatrics(int styleIndex, int colorIndex)
pply a preset theme variant quickstyle to this shape, like theme styles options in shape styles dropdown list
Parameters:
styleIndex - A PresetStyleMatricsValue value. the row of style matrics
colorIndex - A PresetColorMatricsValue value. the column of style matrics

copy

public void copy(Shape source)
         throws java.lang.Exception

bringForward

public void bringForward()
                 throws java.lang.Exception
Brings the shape forward one position in the z-order.

sendBackward

public void sendBackward()
                 throws java.lang.Exception
Moves the shape back one position in the z-order.

bringToFront

public void bringToFront()
Brings the shape to the front of the z-order.

sendToBack

public void sendToBack()
Moves the shape to the back of the z-order.

getConnectorRule

public ConnectorRule getConnectorRule()
                              throws java.lang.Exception
Returns a connectorRule that contains the shape id and connecton that are connected to the shape.
Returns:
ConnectorRule.

connectedShapes

public long[] connectedShapes(int flag, java.lang.String categoryFilter)
                      throws java.lang.Exception
Returns an array that contains the identifiers (IDs) of the shapes that are connected to the shape.
Parameters:
flag - A ConnectedShapesFlags value. Filters the array of returned shape IDs by the directionality of the connectors. See Remarks for possible valuesConnectedShapesFlags.
categoryFilter - Filters the array of returned shape IDs by limiting it to the IDs of shapes that match the specified categoryjava.lang.String.
Returns:
IDs arraylong.

isInGroup

public boolean isInGroup()
Indicates whether this shape is in a group shape.

isContain

public boolean isContain(Shape shape)
                 throws java.lang.Exception
Indicates whether this shape is contain another shape.

isIntersect

public boolean isIntersect(Shape shape)
                   throws java.lang.Exception
Indicates whether this shape is intersect another shape.

isConnected

public boolean isConnected(Shape shape)
                   throws java.lang.Exception
Indicates whether this two shapes are connected.
Parameters:
shape - shape

centerDrawing

public void centerDrawing()
Center the shape with respect to the extent of the page

isGlued

public boolean isGlued(Shape shape)
               throws java.lang.Exception
Indicates whether this two shapes are glued.
Parameters:
shape - shape

refreshData

public void refreshData()
                throws java.lang.Exception
Refreshes shape's position including xform ,connection and geom when changing shape's text or other's . We will gather shape's data such as shape's text then calculate shape's position. This method is only used to refresh shape's data .

gluedShapes

public long[] gluedShapes(int flag, java.lang.String categoryFilter, Shape otherShape)
                  throws java.lang.Exception
Returns an array that contains the identifiers of the shapes that are glued to a shape.
Parameters:
flag - A GluedShapesFlags value. The dimensionality and directionality of the connection points of the shapes to return.See Remarks for possible valuesGluedShapesFlags.
categoryFilter - Filters the array of returned shape IDs by limiting it to the IDs of shapes that match the specified categoryjava.lang.String.
otherShape - Optional: additional shape to which returned shapes must also be glued, can be Shape or null.
Returns:
IDs arraylong.

dependsOnShapes

public long[] dependsOnShapes()
                      throws java.lang.Exception
Returns an array that contains the identifiers of the shapes that are depends on a shape.
Returns:
IDs arraylong.

setWidth

public void setWidth(double width)
             throws java.lang.Exception
Sets new width of shape.
Parameters:
width - New widthdouble.

setHeight

public void setHeight(double height)
              throws java.lang.Exception
Sets new height of shape.
Parameters:
height - New heightdouble.

setAngle

public void setAngle(double angle)
             throws java.lang.Exception
Sets new angle of shape. The angle's unit is radian.
Parameters:
angle - New angle which unit is radian not degreedouble.

moveTo

public void moveTo(double newPinX, double newPinY)
           throws java.lang.Exception
Moves shape on new absolute position on the page.
Parameters:
newPinX - New x-coordinate of the shape's pin (center of rotation) in relation to the origin of its parent.double.
newPinY - New y-coordinate of the shape's pin (center of rotation) in relation to the origin of its parent.double.

move

public void move(double dX, double dY)
         throws java.lang.Exception
Moves shape on the dX and dY inches from current position.
Parameters:
dX - X offsetdouble.
dY - Y offsetdouble.

getDisplayText

public java.lang.String getDisplayText()
Get the text displayed on the interface

getPureText

public java.lang.String getPureText()
Get the text string

ungroup

public void ungroup()
            throws java.lang.Exception
Ungroup Shape

replaceText

public void replaceText(java.lang.String text, java.lang.String replaceText)
Replace the text string of a shape .

toPdf

public void toPdf(java.io.OutputStream stream)
          throws java.lang.Exception
Creates the shape pdf and saves it to a stream.
Parameters:
stream - The output stream.

toPdf

public void toPdf(java.lang.String fileName)
          throws java.lang.Exception
Saves the shape to a pdf file.
Parameters:
fileName - the pdf file name with full path

toImage

public void toImage(java.lang.String imageFile, ImageSaveOptions options)
            throws java.lang.Exception
Creates the shape image and saves it to a file. The extension of the file name determines the format of the image.

The format of the image is specified by using the extension of the file name. For example, if you specify "myfile.png", then the image will be saved in the PNG format. The following file extensions are recognized: .bmp, .gif, .png, .jpg, .jpeg, .tiff, .tif, .emf.

Parameters:
imageFile - The image file name with full path.
options - Additional image creation options

toImage

public void toImage(java.io.OutputStream stream, ImageSaveOptions options)
            throws java.lang.Exception
Creates the shape image and saves it to a stream in the specified format.
Parameters:
stream - The output stream.
options - Additional image creation options

toSvg

public void toSvg(java.lang.String fileName, SVGSaveOptions options)
          throws java.lang.Exception
Saves the shape to a svg file.
Parameters:
fileName - the svg file name with full path
options - Svg save options

toHTML

public void toHTML(java.lang.String fileName, HTMLSaveOptions options)
           throws java.lang.Exception
Creates the html and saves it to a file.
Parameters:
fileName - The file name with full path.
options - html save options

toHTML

public void toHTML(java.io.OutputStream stream, HTMLSaveOptions options)
           throws java.lang.Exception
Creates the shape html and saves it to a stream in the specified format.
Parameters:
stream - The output stream.
options - Addtional html creation options

See Also:
          Aspose.Diagram Documentation - the home page for the Aspose.Diagram Product Documentation.
          Aspose.Diagram Support Forum - our preferred method of support.