Master

Inheritance: java.lang.Object

public class Master

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.

Constructors

ConstructorDescription
Master()Constructor.

Methods

MethodDescription
deepClone()Creates deep copy of this instance.
dispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
equals(Object arg0)
getAlignName()Specifies whether the master’s text in the stencil window is aligned left, right, or center.
getBaseID()A GUID (globally unique identifier) that identifies the master across documents.
getClass()
getConnects()Contains a Connect element for each connection between two shapes in a drawing.
getHidden()Specifies whether the master is hidden in the user interface.
getID()The unique ID of the element within its parent element.
getIcon()Specifies a MIME (Multipurpose Internet Mail Extensions) encoded binary icon (in .ico format) for a Master or MasterShortcut element in a document.
getIconSize()The size of the element’s icon.
getIconUpdate()Specifies whether the icon is automatically generated from the master itself.
getMatchByName()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.
getName()The name of the element.
getNameU()The universal name of the element.
getPageSheet()Contains elements that define the page sheet for a Page or Master element.
getPatternFlags()The PatternFlags attribute determines whether a master behaves as a custom pattern.
getPrompt()The status bar and tool tip prompt for the element.
getShapes()Collection of Shape objects.
getUniqueID()A GUID that identifies the master within the document.
hashCode()
notify()
notifyAll()
setAlignName(int value)For the description of this property, please see getAlignName()
setBaseID(UUID value)For the description of this property, please see getBaseID()
setHidden(int value)For the description of this property, please see getHidden()
setID(int value)For the description of this property, please see getID()
setIcon(byte[] value)For the description of this property, please see getIcon()
setIconSize(int value)For the description of this property, please see getIconSize()
setIconUpdate(int value)For the description of this property, please see getIconUpdate()
setMatchByName(int value)For the description of this property, please see getMatchByName()
setName(String value)For the description of this property, please see getName()
setNameU(String value)For the description of this property, please see getNameU()
setPatternFlags(int value)For the description of this property, please see getPatternFlags()
setPrompt(String value)For the description of this property, please see getPrompt()
setUniqueID(UUID value)For the description of this property, please see getUniqueID()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

Master()

public Master()

Constructor.

deepClone()

public Object deepClone()

Creates deep copy of this instance.

Returns: java.lang.Object -

dispose()

public void dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getAlignName()

public int getAlignName()

Specifies whether the master’s text in the stencil window is aligned left, right, or center.

Returns: int

getBaseID()

public UUID getBaseID()

A GUID (globally unique identifier) that identifies the master across documents.

Returns: java.util.UUID

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getConnects()

public ConnectCollection getConnects()

Contains a Connect element for each connection between two shapes in a drawing.

Returns: ConnectCollection

getHidden()

public int getHidden()

Specifies whether the master is hidden in the user interface.

Returns: int

getID()

public int getID()

The unique ID of the element within its parent element.

Returns: int

getIcon()

public byte[] getIcon()

Specifies a MIME (Multipurpose Internet Mail Extensions) encoded binary icon (in .ico format) for a Master or MasterShortcut element in a document.

Returns: byte[]

getIconSize()

public int getIconSize()

The size of the element’s icon.

Returns: int

getIconUpdate()

public int getIconUpdate()

Specifies whether the icon is automatically generated from the master itself.

Returns: int

getMatchByName()

public int getMatchByName()

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.

Returns: int

getName()

public String getName()

The name of the element.

Returns: java.lang.String

getNameU()

public String getNameU()

The universal name of the element.

Returns: java.lang.String

getPageSheet()

public PageSheet getPageSheet()

Contains elements that define the page sheet for a Page or Master element.

Returns: PageSheet

getPatternFlags()

public int getPatternFlags()

The PatternFlags attribute determines whether a master behaves as a custom pattern.

Returns: int

getPrompt()

public String getPrompt()

The status bar and tool tip prompt for the element.

Returns: java.lang.String

getShapes()

public ShapeCollection getShapes()

Collection of Shape objects.

Returns: ShapeCollection

getUniqueID()

public UUID getUniqueID()

A GUID that identifies the master within the document.

Returns: java.util.UUID

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setAlignName(int value)

public void setAlignName(int value)

For the description of this property, please see getAlignName()

Parameters:

ParameterTypeDescription
valueint

setBaseID(UUID value)

public void setBaseID(UUID value)

For the description of this property, please see getBaseID()

Parameters:

ParameterTypeDescription
valuejava.util.UUID

setHidden(int value)

public void setHidden(int value)

For the description of this property, please see getHidden()

Parameters:

ParameterTypeDescription
valueint

setID(int value)

public void setID(int value)

For the description of this property, please see getID()

Parameters:

ParameterTypeDescription
valueint

setIcon(byte[] value)

public void setIcon(byte[] value)

For the description of this property, please see getIcon()

Parameters:

ParameterTypeDescription
valuebyte[]

setIconSize(int value)

public void setIconSize(int value)

For the description of this property, please see getIconSize()

Parameters:

ParameterTypeDescription
valueint

setIconUpdate(int value)

public void setIconUpdate(int value)

For the description of this property, please see getIconUpdate()

Parameters:

ParameterTypeDescription
valueint

setMatchByName(int value)

public void setMatchByName(int value)

For the description of this property, please see getMatchByName()

Parameters:

ParameterTypeDescription
valueint

setName(String value)

public void setName(String value)

For the description of this property, please see getName()

Parameters:

ParameterTypeDescription
valuejava.lang.String

setNameU(String value)

public void setNameU(String value)

For the description of this property, please see getNameU()

Parameters:

ParameterTypeDescription
valuejava.lang.String

setPatternFlags(int value)

public void setPatternFlags(int value)

For the description of this property, please see getPatternFlags()

Parameters:

ParameterTypeDescription
valueint

setPrompt(String value)

public void setPrompt(String value)

For the description of this property, please see getPrompt()

Parameters:

ParameterTypeDescription
valuejava.lang.String

setUniqueID(UUID value)

public void setUniqueID(UUID value)

For the description of this property, please see getUniqueID()

Parameters:

ParameterTypeDescription
valuejava.util.UUID

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int