com.aspose.diagram

  • java.lang.Object
    • 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()
void
setAlignName(intvalue)
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()
void
setHidden(intvalue)
Specifies whether the master is hidden in the user interface. The value of the property is BOOL integer constant.
byte[]getIcon()
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.
intgetIconSize()
void
setIconSize(intvalue)
The size of the element's icon. The value of the property is IconSizeValue integer constant.
intgetIconUpdate()
void
setIconUpdate(intvalue)
Specifies whether the icon is automatically generated from the master itself. The value of the property is BOOL integer constant.
intgetID()
void
setID(intvalue)
The unique ID of the element within its parent element.
intgetMatchByName()
void
setMatchByName(intvalue)
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()
void
setName(java.lang.Stringvalue)
The name of the element.
java.lang.StringgetNameU()
void
setNameU(java.lang.Stringvalue)
The universal name of the element.
PageSheetgetPageSheet()
Contains elements that define the page sheet for a Page or Master element.
intgetPatternFlags()
void
setPatternFlags(intvalue)
The PatternFlags attribute determines whether a master behaves as a custom pattern.
java.lang.StringgetPrompt()
void
setPrompt(java.lang.Stringvalue)
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.
 

    • 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.
      • 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

      • deepClone

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