Window

Inheritance: java.lang.Object

public class Window

Represents an open window in a Microsoft Visio instance. This element contains information necessary to exactly re-create a user interface window in the application workspace when the DatadiagramML file is initially opened by Visio.

Constructors

ConstructorDescription
Window()Constructor.

Methods

MethodDescription
equals(Object arg0)
getClass()
getContainer()ID of container: Page, Sheet, or Master.
getContainerType()May be one of the following values: Document, Page, or Master.
getDocument()File path of the document displayed in this window.
getDynamicGridEnabled()Specifies whether the dynamic grid feature is enabled for a document or window.
getGlueSettings()Specifies the objects that shapes glue to when glue is enabled in the document.
getID()The unique ID of the element within its parent element.
getMaster()Master ID if this window is displaying a master.
getPage()Page ID if this window is displaying a page.
getParentWindow()ID of window in which this stencil window is contained.
getReadOnly()Read-only flag if this stencil is not a document stencil.
getSheet()ID of sheet in container.
getShowConnectionPoints()Specifies whether connection points are shown in a window.
getShowGrid()Specifies whether a grid is shown in the drawing window.
getShowGuides()Specifies whether guides are shown in the drawing window.
getShowPageBreaks()Specifies whether page breaks are shown in a window.
getShowRulers()Specifies whether rulers are shown in the drawing window.
getSnapAngles()Contains a collection of SnapAngle elements.
getSnapExtensions()Specifies whether a specific snap extension setting is enabled or disabled for the active window.
getSnapSettings()Specifies the objects that shapes snap to when snap is active in the window.
getStencilGroup()Specifies the group of merged stencil windows of which the window is a member.
getStencilGroupPos()Contains an integer that specifies the relative position of a stencil within a group in a window.
getTabSplitterPos()Specifies the width of the page tab control of a drawing window (as a fraction of the total width of the drawing window).
getViewCenterX()Optional double.
getViewCenterY()Optional double.
getViewScale()Optional double.
getWindowHeight()Height of the window rectangle.
getWindowLeft()Left coordinate of the window rectangle.
getWindowState()This attribute can be a sum of the following values.
getWindowTop()Top coordinate of the window rectangle.
getWindowType()An enumerated value that may be one of the following: Drawing, Sheet, Stencil, or Icon.A Window element of WindowType=‘Stencil’ must appear after its parent drawing window (WindowType=‘Drawing’) and before any other drawing window elements.
getWindowWidth()Width of the window rectangle.
hashCode()
notify()
notifyAll()
setContainer(int value)For the description of this property, please see getContainer()
setContainerType(int value)For the description of this property, please see getContainerType()
setDocument(String value)For the description of this property, please see getDocument()
setDynamicGridEnabled(int value)For the description of this property, please see getDynamicGridEnabled()
setGlueSettings(int value)For the description of this property, please see getGlueSettings()
setID(int value)For the description of this property, please see getID()
setMaster(Master value)For the description of this property, please see getMaster()
setPage(Page value)For the description of this property, please see getPage()
setParentWindow(int value)For the description of this property, please see getParentWindow()
setReadOnly(int value)For the description of this property, please see getReadOnly()
setSheet(int value)For the description of this property, please see getSheet()
setShowConnectionPoints(int value)For the description of this property, please see getShowConnectionPoints()
setShowGrid(int value)For the description of this property, please see getShowGrid()
setShowGuides(int value)For the description of this property, please see getShowGuides()
setShowPageBreaks(int value)For the description of this property, please see getShowPageBreaks()
setShowRulers(int value)For the description of this property, please see getShowRulers()
setSnapExtensions(int value)For the description of this property, please see getSnapExtensions()
setSnapSettings(int value)For the description of this property, please see getSnapSettings()
setStencilGroup(String value)For the description of this property, please see getStencilGroup()
setStencilGroupPos(int value)For the description of this property, please see getStencilGroupPos()
setTabSplitterPos(double value)For the description of this property, please see getTabSplitterPos()
setViewCenterX(double value)For the description of this property, please see getViewCenterX()
setViewCenterY(double value)For the description of this property, please see getViewCenterY()
setViewScale(double value)For the description of this property, please see getViewScale()
setWindowHeight(long value)For the description of this property, please see getWindowHeight()
setWindowLeft(int value)For the description of this property, please see getWindowLeft()
setWindowState(int value)For the description of this property, please see getWindowState()
setWindowTop(int value)For the description of this property, please see getWindowTop()
setWindowType(int value)For the description of this property, please see getWindowType()
setWindowWidth(long value)For the description of this property, please see getWindowWidth()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

Window()

public Window()

Constructor.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getContainer()

public int getContainer()

ID of container: Page, Sheet, or Master. Only relevant and necessary if ContainerType is specified.

Returns: int

getContainerType()

public int getContainerType()

May be one of the following values: Document, Page, or Master. Only relevant when WindowType is specified as Drawing or Sheet.

Returns: int

getDocument()

public String getDocument()

File path of the document displayed in this window. This attribute is relevant for windows whose WindowType is specified as Stencil.

Returns: java.lang.String

getDynamicGridEnabled()

public int getDynamicGridEnabled()

Specifies whether the dynamic grid feature is enabled for a document or window.

Returns: int

getGlueSettings()

public int getGlueSettings()

Specifies the objects that shapes glue to when glue is enabled in the document.

Returns: int

getID()

public int getID()

The unique ID of the element within its parent element.

Returns: int

getMaster()

public Master getMaster()

Master ID if this window is displaying a master.

Returns: Master

getPage()

public Page getPage()

Page ID if this window is displaying a page. Relevant only when WindowType is specified as Drawing and ContainerType is specified as Page.

Returns: Page

getParentWindow()

public int getParentWindow()

ID of window in which this stencil window is contained. Relevant only when WindowType is specified as Stencil.

Returns: int

getReadOnly()

public int getReadOnly()

Read-only flag if this stencil is not a document stencil.

Returns: int

getSheet()

public int getSheet()

ID of sheet in container. Relevant only when Container is specified as Sheet.

Returns: int

getShowConnectionPoints()

public int getShowConnectionPoints()

Specifies whether connection points are shown in a window.

Returns: int

getShowGrid()

public int getShowGrid()

Specifies whether a grid is shown in the drawing window.

Returns: int

getShowGuides()

public int getShowGuides()

Specifies whether guides are shown in the drawing window.

Returns: int

getShowPageBreaks()

public int getShowPageBreaks()

Specifies whether page breaks are shown in a window.

Returns: int

getShowRulers()

public int getShowRulers()

Specifies whether rulers are shown in the drawing window.

Returns: int

getSnapAngles()

public FloatPointNumCollection getSnapAngles()

Contains a collection of SnapAngle elements.

Returns: FloatPointNumCollection

getSnapExtensions()

public int getSnapExtensions()

Specifies whether a specific snap extension setting is enabled or disabled for the active window. The value can be a sum of the values in the following table.

Returns: int

getSnapSettings()

public int getSnapSettings()

Specifies the objects that shapes snap to when snap is active in the window. The value may be a sum of the values in the following table.

Returns: int

getStencilGroup()

public String getStencilGroup()

Specifies the group of merged stencil windows of which the window is a member. This attribute is relevant only for Window elements whose WindowType attribute is Stencil, and only if the stencil window is part of a merged group of stencil windows. All stencil windows that are part of the same merged group have the same StencilGroup element value.

Returns: java.lang.String

getStencilGroupPos()

public int getStencilGroupPos()

Contains an integer that specifies the relative position of a stencil within a group in a window.

Returns: int

getTabSplitterPos()

public double getTabSplitterPos()

Specifies the width of the page tab control of a drawing window (as a fraction of the total width of the drawing window).

Returns: double

getViewCenterX()

public double getViewCenterX()

Optional double.

Returns: double

getViewCenterY()

public double getViewCenterY()

Optional double.

Returns: double

getViewScale()

public double getViewScale()

Optional double.

Returns: double

getWindowHeight()

public long getWindowHeight()

Height of the window rectangle.

Returns: long

getWindowLeft()

public int getWindowLeft()

Left coordinate of the window rectangle.

Returns: int

getWindowState()

public int getWindowState()

This attribute can be a sum of the following values.

Returns: int

getWindowTop()

public int getWindowTop()

Top coordinate of the window rectangle.

Returns: int

getWindowType()

public int getWindowType()

An enumerated value that may be one of the following: Drawing, Sheet, Stencil, or Icon.A Window element of WindowType=‘Stencil’ must appear after its parent drawing window (WindowType=‘Drawing’) and before any other drawing window elements.

Returns: int

getWindowWidth()

public long getWindowWidth()

Width of the window rectangle.

Returns: long

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setContainer(int value)

public void setContainer(int value)

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

Parameters:

ParameterTypeDescription
valueint

setContainerType(int value)

public void setContainerType(int value)

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

Parameters:

ParameterTypeDescription
valueint

setDocument(String value)

public void setDocument(String value)

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

Parameters:

ParameterTypeDescription
valuejava.lang.String

setDynamicGridEnabled(int value)

public void setDynamicGridEnabled(int value)

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

Parameters:

ParameterTypeDescription
valueint

setGlueSettings(int value)

public void setGlueSettings(int value)

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

Parameters:

ParameterTypeDescription
valueint

setID(int value)

public void setID(int value)

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

Parameters:

ParameterTypeDescription
valueint

setMaster(Master value)

public void setMaster(Master value)

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

Parameters:

ParameterTypeDescription
valueMaster

setPage(Page value)

public void setPage(Page value)

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

Parameters:

ParameterTypeDescription
valuePage

setParentWindow(int value)

public void setParentWindow(int value)

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

Parameters:

ParameterTypeDescription
valueint

setReadOnly(int value)

public void setReadOnly(int value)

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

Parameters:

ParameterTypeDescription
valueint

setSheet(int value)

public void setSheet(int value)

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

Parameters:

ParameterTypeDescription
valueint

setShowConnectionPoints(int value)

public void setShowConnectionPoints(int value)

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

Parameters:

ParameterTypeDescription
valueint

setShowGrid(int value)

public void setShowGrid(int value)

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

Parameters:

ParameterTypeDescription
valueint

setShowGuides(int value)

public void setShowGuides(int value)

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

Parameters:

ParameterTypeDescription
valueint

setShowPageBreaks(int value)

public void setShowPageBreaks(int value)

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

Parameters:

ParameterTypeDescription
valueint

setShowRulers(int value)

public void setShowRulers(int value)

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

Parameters:

ParameterTypeDescription
valueint

setSnapExtensions(int value)

public void setSnapExtensions(int value)

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

Parameters:

ParameterTypeDescription
valueint

setSnapSettings(int value)

public void setSnapSettings(int value)

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

Parameters:

ParameterTypeDescription
valueint

setStencilGroup(String value)

public void setStencilGroup(String value)

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

Parameters:

ParameterTypeDescription
valuejava.lang.String

setStencilGroupPos(int value)

public void setStencilGroupPos(int value)

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

Parameters:

ParameterTypeDescription
valueint

setTabSplitterPos(double value)

public void setTabSplitterPos(double value)

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

Parameters:

ParameterTypeDescription
valuedouble

setViewCenterX(double value)

public void setViewCenterX(double value)

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

Parameters:

ParameterTypeDescription
valuedouble

setViewCenterY(double value)

public void setViewCenterY(double value)

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

Parameters:

ParameterTypeDescription
valuedouble

setViewScale(double value)

public void setViewScale(double value)

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

Parameters:

ParameterTypeDescription
valuedouble

setWindowHeight(long value)

public void setWindowHeight(long value)

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

Parameters:

ParameterTypeDescription
valuelong

setWindowLeft(int value)

public void setWindowLeft(int value)

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

Parameters:

ParameterTypeDescription
valueint

setWindowState(int value)

public void setWindowState(int value)

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

Parameters:

ParameterTypeDescription
valueint

setWindowTop(int value)

public void setWindowTop(int value)

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

Parameters:

ParameterTypeDescription
valueint

setWindowType(int value)

public void setWindowType(int value)

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

Parameters:

ParameterTypeDescription
valueint

setWindowWidth(long value)

public void setWindowWidth(long value)

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

Parameters:

ParameterTypeDescription
valuelong

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