com.aspose.diagram
Class Master

java.lang.Object
    extended by com.aspose.diagram.Master
All Implemented Interfaces:
java.lang.Cloneable

public class Master 
extends java.lang.Object

Contains elements that define a master for the document. A master is a shape on a stencil that you use repeatedly to create drawings. When you drag a shape from a stencil onto the drawing page, the shape becomes an instance of that master, and a local copy of the master is included in the document.


Constructor Summary
Master()
           Constructor.
 
Property Getters/Setters Summary
intgetAlignName()
voidsetAlignName(int)
           Specifies whether the master's text in the stencil window is aligned left, right, or center. The value of the property is AlignNameValue integer constant.
java.util.UUIDgetBaseID()
           A GUID (globally unique identifier) that identifies the master across documents.
ConnectCollectiongetConnects()
           Contains a Connect element for each connection between two shapes in a drawing.
intgetHidden()
voidsetHidden(int)
           Specifies whether the master is hidden in the user interface. The value of the property is BOOL integer constant.
byte[]getIcon()
voidsetIcon(byte[])
           Specifies a MIME (Multipurpose Internet Mail Extensions) encoded binary icon (in .ico format) for a Master or MasterShortcut element in a document.
intgetIconSize()
voidsetIconSize(int)
           The size of the element's icon. The value of the property is IconSizeValue integer constant.
intgetIconUpdate()
voidsetIconUpdate(int)
           Specifies whether the icon is automatically generated from the master itself. The value of the property is BOOL integer constant.
intgetID()
voidsetID(int)
           The unique ID of the element within its parent element.
intgetMatchByName()
voidsetMatchByName(int)
           The MatchByName attribute determines how Microsoft Visio decides if a document master is already present when an instance of a master is dropped on the drawing page. It allows changes made to a document master to apply to new instances of the master, even if the instances are dragged from a stand-alone stencil file. The value of the property is BOOL integer constant.
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.
PageSheetgetPageSheet()
           Contains elements that define the page sheet for a Page or Master element.
intgetPatternFlags()
voidsetPatternFlags(int)
           The PatternFlags attribute determines whether a master behaves as a custom pattern.
java.lang.StringgetPrompt()
voidsetPrompt(java.lang.String)
           The status bar and tool tip prompt for the element.
ShapeCollectiongetShapes()
           Collection of Shape objects.
java.util.UUIDgetUniqueID()
           A GUID that identifies the master within the document.
 
Method Summary
java.lang.ObjectdeepClone()
           Creates deep copy of this instance.
voiddispose()
           Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 

Constructor Detail

Master

public Master()
Constructor.

Property Getters/Setters Detail

getID/setID

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

getBaseID

public java.util.UUID getBaseID()
A GUID (globally unique identifier) that identifies the master across documents.

getUniqueID

public java.util.UUID getUniqueID()
A GUID that identifies the master within the document.

getMatchByName/setMatchByName

public int getMatchByName() / public void setMatchByName(int value)
The MatchByName attribute determines how Microsoft Visio decides if a document master is already present when an instance of a master is dropped on the drawing page. It allows changes made to a document master to apply to new instances of the master, even if the instances are dragged from a stand-alone stencil file. The value of the property is BOOL integer constant.

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.

getIconSize/setIconSize

public int getIconSize() / public void setIconSize(int value)
The size of the element's icon. The value of the property is IconSizeValue integer constant.

getPatternFlags/setPatternFlags

public int getPatternFlags() / public void setPatternFlags(int value)
The PatternFlags attribute determines whether a master behaves as a custom pattern.

getPrompt/setPrompt

public java.lang.String getPrompt() / public void setPrompt(java.lang.String value)
The status bar and tool tip prompt for the element.

getHidden/setHidden

public int getHidden() / public void setHidden(int value)
Specifies whether the master is hidden in the user interface. The value of the property is BOOL integer constant.

getIconUpdate/setIconUpdate

public int getIconUpdate() / public void setIconUpdate(int value)
Specifies whether the icon is automatically generated from the master itself. The value of the property is BOOL integer constant.

getAlignName/setAlignName

public int getAlignName() / public void setAlignName(int value)
Specifies whether the master's text in the stencil window is aligned left, right, or center. The value of the property is AlignNameValue integer constant.

getShapes

public ShapeCollection getShapes()
Collection of Shape objects.

getConnects

public ConnectCollection getConnects()
Contains a Connect element for each connection between two shapes in a drawing.

getIcon/setIcon

public byte[] getIcon() / public void setIcon(byte[] value)
Specifies a MIME (Multipurpose Internet Mail Extensions) encoded binary icon (in .ico format) for a Master or MasterShortcut element in a document.

getPageSheet

public PageSheet getPageSheet()
Contains elements that define the page sheet for a Page or Master element.

Method Detail

dispose

public void dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

deepClone

public java.lang.Object deepClone()
                throws java.lang.Exception
Creates deep copy of this instance.
Returns:

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