<!-- saved from url=(0026)http://www.naturaldocs.org -->
<divid=Content><divclass="CClass"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxWindow"></a>mxWindow</h1><divclass=CBody><p>Basic window inside a document.</p><h4class=CHeading>Examples</h4><p>Creating a simple window.</p><blockquote><preclass="prettyprint">var tb = document.createElement('div');
var wnd = new mxWindow('Title', tb, 100, 100, 200, 200, true, true);
wnd.setVisible(true);</pre></blockquote><p>Creating a window that contains an iframe.</p><blockquote><preclass="prettyprint">var frame = document.createElement('iframe');
wnd.setVisible(true);</pre></blockquote><p>To limit the movement of a window, eg. to keep it from being moved beyond the top, left corner the following method can be overridden (recommended):</p><blockquote><preclass="prettyprint">wnd.setLocation = function(x, y)
};</pre></blockquote><h4class=CHeading>Or the following event handler can be used</h4><blockquote><preclass="prettyprint">wnd.addListener(mxEvent.MOVE, function(e)
});</pre></blockquote><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#mxWindow">mxWindow</a></td><tdclass=SDescription>Basic window inside a document.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxWindow.Events">Events</a></td><tdclass=SDescription></td></tr><trclass="SEvent SIndent2 SMarked"><tdclass=SEntry><ahref="#mxWindow.mxEvent.MOVE_START">mxEvent.<wbr>MOVE_START</a></td><tdclass=SDescription>Fires before the window is moved. </td></tr><trclass="SEvent SIndent2"><tdclass=SEntry><ahref="#mxWindow.mxEvent.MOVE">mxEvent.MOVE</a></td><tdclass=SDescription>Fires while the window is being moved. </td></tr><trclass="SEvent SIndent2 SMarked"><tdclass=SEntry><ahref="#mxWindow.mxEvent.MOVE_END">mxEvent.<wbr>MOVE_END</a></td><tdclass=SDescription>Fires after the window is moved. </td></tr><trclass="SEvent SIndent2"><tdclass=SEntry><ahref="#mxWindow.mxEvent.RESIZE_START">mxEvent.<wbr>RESIZE_START</a></td><tdclass=SDescription>Fires before the window is resized. </td></tr><trclass="SEvent SIndent2 SMarked"><tdclass=SEntry><ahref="#mxWindow.mxEvent.RESIZE">mxEvent.<wbr>RESIZE</a></td><tdclass=SDescription>Fires while the window is being resized. </td></tr><trclass="SEvent SIndent2"><tdclass=SEntry><ahref="#mxWindow.mxEvent.RESIZE_END">mxEvent.<wbr>RESIZE_END</a></td><tdclass=SDescription>Fires after the window is resized. </td></tr><trclass="SEvent SIndent2 SMarked"><tdclass=SEntry><ahref="#mxWindow.mxEvent.MAXIMIZE">mxEvent.<wbr>MAXIMIZE</a></td><tdclass=SDescription>Fires after the window is maximized. </td></tr><trclass="SEvent SIndent2"><tdclass=SEntry><ahref="#mxWindow.mxEvent.MINIMIZE">mxEvent.<wbr>MINIMIZE</a></td><tdclass=SDescription>Fires after the window is minimized. </td></tr><trclass="SEvent SIndent2 SMarked"><tdclass=SEntry><ahref="#mxWindow.mxEvent.NORMALIZE">mxEvent.<wbr>NORMALIZE</a></td><tdclass=SDescription>Fires after the window is normalized, that is, it returned from maximized or minimized state. </td></tr><trclass="SEvent SIndent2"><tdclass=SEntry><ahref="#mxWindow.mxEvent.ACTIVATE">mxEvent.<wbr>ACTIVATE</a></td><tdclass=SDescription>Fires after a window is activated. </td></tr><trclass="SEvent SIndent2 SMarked"><tdclass=SEntry><ahref="#mxWindow.mxEvent.SHOW">mxEvent.SHOW</a></td><tdclass=SDescription>Fires after the window is shown. </td></tr><trclass="SEvent SIndent2"><tdclass=SEntry><ahref="#mxWindow.mxEvent.HIDE">mxEvent.HIDE</a></td><tdclass=SDescription>Fires after the window is hidden. </td></tr><trclass="SEvent SIndent2 SMarked"><tdclass=SEntry><ahref="#mxWindow.mxEvent.CLOSE">mxEvent.<wbr>CLOSE</a></td><tdclass=SDescription>Fires before the window is closed. </td></tr><trclass="SEvent SIndent2"><tdclass=SEntry><ahref="#mxWindow.mxEvent.DESTROY">mxEvent.<wbr>DESTROY</a></td><tdclass=SDescription>Fires before the window is destroyed. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxWindow.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxWindow.mxWindow"id=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">mxWindow</a></td><tdclass=SDescription>Constructs a new window with the given dimension and title to display the specified content. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxWindow.Variables">Variables</a></td><tdclass=SDescription></td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxWindow.closeImage"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">closeImage</a></td><tdclass=SDescription>URL of the image to be used for the close icon in the titlebar.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxWindow.minimizeImage"id=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">minimizeImage</a></td><td
<divclass="CEvent"><divclass=CTopic><h3class=CTitle><aname="mxWindow.mxEvent.MOVE_START"></a>mxEvent.<wbr>MOVE_START</h3><divclass=CBody><p>Fires before the window is moved. The <code>event</code> property contains the corresponding mouse event.</p></div></div></div>
<divclass="CEvent"><divclass=CTopic><h3class=CTitle><aname="mxWindow.mxEvent.MOVE"></a>mxEvent.MOVE</h3><divclass=CBody><p>Fires while the window is being moved. The <code>event</code> property contains the corresponding mouse event.</p></div></div></div>
<divclass="CEvent"><divclass=CTopic><h3class=CTitle><aname="mxWindow.mxEvent.MOVE_END"></a>mxEvent.<wbr>MOVE_END</h3><divclass=CBody><p>Fires after the window is moved. The <code>event</code> property contains the corresponding mouse event.</p></div></div></div>
<divclass="CEvent"><divclass=CTopic><h3class=CTitle><aname="mxWindow.mxEvent.RESIZE_START"></a>mxEvent.<wbr>RESIZE_START</h3><divclass=CBody><p>Fires before the window is resized. The <code>event</code> property contains the corresponding mouse event.</p></div></div></div>
<divclass="CEvent"><divclass=CTopic><h3class=CTitle><aname="mxWindow.mxEvent.RESIZE"></a>mxEvent.<wbr>RESIZE</h3><divclass=CBody><p>Fires while the window is being resized. The <code>event</code> property contains the corresponding mouse event.</p></div></div></div>
<divclass="CEvent"><divclass=CTopic><h3class=CTitle><aname="mxWindow.mxEvent.RESIZE_END"></a>mxEvent.<wbr>RESIZE_END</h3><divclass=CBody><p>Fires after the window is resized. The <code>event</code> property contains the corresponding mouse event.</p></div></div></div>
<divclass="CEvent"><divclass=CTopic><h3class=CTitle><aname="mxWindow.mxEvent.MAXIMIZE"></a>mxEvent.<wbr>MAXIMIZE</h3><divclass=CBody><p>Fires after the window is maximized. The <code>event</code> property contains the corresponding mouse event.</p></div></div></div>
<divclass="CEvent"><divclass=CTopic><h3class=CTitle><aname="mxWindow.mxEvent.MINIMIZE"></a>mxEvent.<wbr>MINIMIZE</h3><divclass=CBody><p>Fires after the window is minimized. The <code>event</code> property contains the corresponding mouse event.</p></div></div></div>
<divclass="CEvent"><divclass=CTopic><h3class=CTitle><aname="mxWindow.mxEvent.NORMALIZE"></a>mxEvent.<wbr>NORMALIZE</h3><divclass=CBody><p>Fires after the window is normalized, that is, it returned from maximized or minimized state. The <code>event</code> property contains the corresponding mouse event.</p></div></div></div>
<divclass="CEvent"><divclass=CTopic><h3class=CTitle><aname="mxWindow.mxEvent.ACTIVATE"></a>mxEvent.<wbr>ACTIVATE</h3><divclass=CBody><p>Fires after a window is activated. The <code>previousWindow</code> property contains the previous window. The event sender is the active window.</p></div></div></div>
<divclass="CEvent"><divclass=CTopic><h3class=CTitle><aname="mxWindow.mxEvent.SHOW"></a>mxEvent.SHOW</h3><divclass=CBody><p>Fires after the window is shown. This event has no properties.</p></div></div></div>
<divclass="CEvent"><divclass=CTopic><h3class=CTitle><aname="mxWindow.mxEvent.HIDE"></a>mxEvent.HIDE</h3><divclass=CBody><p>Fires after the window is hidden. This event has no properties.</p></div></div></div>
<divclass="CEvent"><divclass=CTopic><h3class=CTitle><aname="mxWindow.mxEvent.CLOSE"></a>mxEvent.<wbr>CLOSE</h3><divclass=CBody><p>Fires before the window is closed. The <code>event</code> property contains the corresponding mouse event.</p></div></div></div>
<divclass="CEvent"><divclass=CTopic><h3class=CTitle><aname="mxWindow.mxEvent.DESTROY"></a>mxEvent.<wbr>DESTROY</h3><divclass=CBody><p>Fires before the window is destroyed. This event has no properties.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.mxWindow"></a>mxWindow</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function mxWindow(</td><tdclass=PParameternowrap>title,</td></tr><tr><td></td><tdclass=PParameternowrap>content,</td></tr><tr><td></td><tdclass=PParameternowrap>x,</td></tr><tr><td></td><tdclass=PParameternowrap>y,</td></tr><tr><td></td><tdclass=PParameternowrap>width,</td></tr><tr><td></td><tdclass=PParameternowrap>height,</td></tr><tr><td></td><tdclass=PParameternowrap>minimizable,</td></tr><tr><td></td><tdclass=PParameternowrap>movable,</td></tr><tr><td></td><tdclass=PParameternowrap>replaceNode,</td></tr><tr><td></td><tdclass=PParameternowrap>style</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Constructs a new window with the given dimension and title to display the specified content. The window elements use the given style as a prefix for the classnames of the respective window elements, namely, the window title and window pane. The respective postfixes are appended to the given stylename as follows:</p><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>style</td><tdclass=CDLDescription>Base style for the window.</td></tr><tr><tdclass=CDLEntry>style+Title</td><tdclass=CDLDescription>Style for the window title.</td></tr><tr><tdclass=CDLEntry>style+Pane</td><tdclass=CDLDescription>Style for the window pane.</td></tr></table><p>The default value for style is mxWindow, resulting in the following classnames for the window elements: mxWindow, mxWindowTitle and mxWindowPane.</p><p>If replaceNode is given then the window replaces the given DOM node in the document.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>title</td><tdclass=CDLDescription>String that represents the title of the new window.</td></tr><tr><tdclass=CDLEntry>content</td><tdclass=CDLDescription>DOM node that is used as the window content.</td></tr><tr><tdclass=CDLEntry>x</td><tdclass=CDLDescription>X-coordinate of the window location.</td></tr><tr><tdclass=CDLEntry>y</td><tdclass=CDLDescription>Y-coordinate of the window location.</td></tr><tr><tdclass=CDLEntry>width</td><tdclass=CDLDescription>Width of the window.</td></tr><tr><tdclass=CDLEntry>height</td><tdclass=CDLDescription>Optional height of the window. Default is to match the height of the content at the specified width.</td></tr><tr><tdclass=CDLEntry>minimizable</td><tdclass=CDLDescription>Optional boolean indicating if the window is minimizable. Default is true.</td></tr><tr><tdclass=CDLEntry>movable</td><tdclass=CDLDescription>Optional boolean indicating if the window is movable. Default is true.</td></tr><tr><tdclass=CDLEntry>replaceNode</td><tdclass=CDLDescription>Optional DOM node that the window should replace.</td></tr><tr><tdclass=CDLEntry>style</td><tdclass=CDLDescription>Optional base classname for the window elements. Default is mxWindow.</td></tr></table></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxWindow.closeImage"></a>closeImage</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.closeImage</td></tr></table></blockquote><p>URL of the image to be used for the close icon in the titlebar.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxWindow.minimizeImage"></a>minimizeImage</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.minimizeImage</td></tr></table></blockquote><p>URL of the image to be used for the minimize icon in the titlebar.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxWindow.normalizeImage"></a>normalizeImage</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.normalizeImage</td></tr></table></blockquote><p>URL of the image to be used for the normalize icon in the titlebar.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxWindow.maximizeImage"></a>maximizeImage</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.maximizeImage</td></tr></table></blockquote><p>URL of the image to be used for the maximize icon in the titlebar.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxWindow.normalizeImage"></a>normalizeImage</h3><divclass=CBody><p>URL of the image to be used for the resize icon.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxWindow.visible"></a>visible</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.visible</td></tr></table></blockquote><p>Boolean flag that represents the visible state of the window.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxWindow.content"></a>content</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.content</td></tr></table></blockquote><p>Reference to the DOM node that represents the window content.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxWindow.minimumSize"></a>minimumSize</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.minimumSize</td></tr></table></blockquote><p><ahref="mxRectangle-js.html#mxRectangle"class=LClassid=link41onMouseOver="ShowTip(event, 'tt9', 'link41')"onMouseOut="HideTip('tt9')">mxRectangle</a> that specifies the minimum width and height of the window. Default is (50, 40).</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxWindow.title"></a>title</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.title</td></tr></table></blockquote><p>Reference to the DOM node (TD) that contains the title.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxWindow.content"></a>content</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.content</td></tr></table></blockquote><p>Reference to the DOM node that represents the window content.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxWindow.destroyOnClose"></a>destroyOnClose</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.destroyOnClose</td></tr></table></blockquote><p>Specifies if the window should be destroyed when it is closed. If this is false then the window is hidden using <ahref="#mxWindow.setVisible"class=LFunctionid=link42onMouseOver="ShowTip(event, 'tt34', 'link42')"onMouseOut="HideTip('tt34')">setVisible</a>. Default is true.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.init"></a>init</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxWindow.prototype.init = function(</td><tdclass=PParameternowrap>x,</td></tr><tr><td></td><tdclass=PParameternowrap>y,</td></tr><tr><td></td><tdclass=PParameternowrap>width,</td></tr><tr><td></td><tdclass=PParameternowrap>height,</td></tr><tr><td></td><tdclass=PParameternowrap>style</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Initializes the DOM tree that represents the window.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.setTitle"></a>setTitle</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxWindow.prototype.setTitle = function(</td><tdclass=PParameternowrap>title</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the window title to the given string. HTML markup inside the title will be escaped.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.setScrollable"></a>setScrollable</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxWindow.prototype.setScrollable = function(</td><tdclass=PParameternowrap>scrollable</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets if the window contents should be scrollable.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.activate"></a>activate</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.activate = function()</td></tr></table></blockquote><p>Puts the window on top of all other windows.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.getElement"></a>getElement</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.getElement = function()</td></tr></table></blockquote><p>Returuns the outermost DOM node that makes up the window.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.fit"></a>fit</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.fit = function()</td></tr></table></blockquote><p>Makes sure the window is inside the client area of the window.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.isResizable"></a>isResizable</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.isResizable = function()</td></tr></table></blockquote><p>Returns true if the window is resizable.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.setResizable"></a>setResizable</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxWindow.prototype.setResizable = function(</td><tdclass=PParameternowrap>resizable</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets if the window should be resizable. To avoid interference with some built-in features of IE10 and later, the use of the following code is recommended if there are resizable <ahref="#mxWindow.mxWindow"class=LFunctionid=link43onMouseOver="ShowTip(event, 'tt1', 'link43')"onMouseOut="HideTip('tt1')">mxWindow</a>s in the page:</p><blockquote><preclass="prettyprint">if (mxClient.IS_POINTER)
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.setSize"></a>setSize</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxWindow.prototype.setSize = function(</td><tdclass=PParameternowrap>width,</td></tr><tr><td></td><tdclass=PParameternowrap>height</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the size of the window.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.setMinimizable"></a>setMinimizable</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxWindow.prototype.setMinimizable = function(</td><tdclass=PParameternowrap>minimizable</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets if the window is minimizable.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.getMinimumSize"></a>getMinimumSize</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.getMinimumSize = function()</td></tr></table></blockquote><p>Returns an <ahref="mxRectangle-js.html#mxRectangle"class=LClassid=link44onMouseOver="ShowTip(event, 'tt9', 'link44')"onMouseOut="HideTip('tt9')">mxRectangle</a> that specifies the size for the minimized window. A width or height of 0 means keep the existing width or height. This implementation returns the height of the window title and keeps the width.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.installMinimizeHandler"></a>installMinimizeHandler</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.installMinimizeHandler = function()</td></tr></table></blockquote><p>Installs the event listeners required for minimizing the window.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.setMaximizable"></a>setMaximizable</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxWindow.prototype.setMaximizable = function(</td><tdclass=PParameternowrap>maximizable</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets if the window is maximizable.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.installMaximizeHandler"></a>installMaximizeHandler</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.installMaximizeHandler = function()</td></tr></table></blockquote><p>Installs the event listeners required for maximizing the window.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.installMoveHandler"></a>installMoveHandler</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.installMoveHandler = function()</td></tr></table></blockquote><p>Installs the event listeners required for moving the window.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.setLocation"></a>setLocation</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxWindow.prototype.setLocation = function(</td><tdclass=PParameternowrap>x,</td></tr><tr><td></td><tdclass=PParameternowrap>y</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the upper, left corner of the window.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.getX"></a>getX</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.getX = function()</td></tr></table></blockquote><p>Returns the current position on the x-axis.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.getY"></a>getY</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.getY = function()</td></tr></table></blockquote><p>Returns the current position on the y-axis.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.installCloseHandler"></a>installCloseHandler</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.installCloseHandler = function()</td></tr></table></blockquote><p>Adds the <ahref="#mxWindow.closeImage"class=LVariableid=link45onMouseOver="ShowTip(event, 'tt2', 'link45')"onMouseOut="HideTip('tt2')">closeImage</a> as a new image node in <closeImg> and installs the <close> event.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.setImage"></a>setImage</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxWindow.prototype.setImage = function(</td><tdclass=PParameternowrap>image</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the image associated with the window.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>image</td><tdclass=CDLDescription>URL of the image to be used.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.setClosable"></a>setClosable</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxWindow.prototype.setClosable = function(</td><tdclass=PParameternowrap>closable</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the image associated with the window.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>closable</td><tdclass=CDLDescription>Boolean specifying if the window should be closable.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.isVisible"></a>isVisible</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.isVisible = function()</td></tr></table></blockquote><p>Returns true if the window is visible.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.setVisible"></a>setVisible</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxWindow.prototype.setVisible = function(</td><tdclass=PParameternowrap>visible</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Shows or hides the window depending on the given flag.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>visible</td><tdclass=CDLDescription>Boolean indicating if the window should be made visible.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.show"></a>show</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.show = function()</td></tr></table></blockquote><p>Shows the window.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.hide"></a>hide</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.hide = function()</td></tr></table></blockquote><p>Hides the window.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxWindow.destroy"></a>destroy</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.destroy = function()</td></tr></table></blockquote><p>Destroys the window and removes all associated resources. Fires a <ahref="#mxWindow.destroy"class=LFunctionid=link46onMouseOver="ShowTip(event, 'tt37', 'link46')"onMouseOut="HideTip('tt37')">destroy</a> event prior to destroying the window.</p></div></div></div>
<divclass=CToolTipid="tt1"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function mxWindow(</td><tdclass=PParameternowrap>title,</td></tr><tr><td></td><tdclass=PParameternowrap>content,</td></tr><tr><td></td><tdclass=PParameternowrap>x,</td></tr><tr><td></td><tdclass=PParameternowrap>y,</td></tr><tr><td></td><tdclass=PParameternowrap>width,</td></tr><tr><td></td><tdclass=PParameternowrap>height,</td></tr><tr><td></td><tdclass=PParameternowrap>minimizable,</td></tr><tr><td></td><tdclass=PParameternowrap>movable,</td></tr><tr><td></td><tdclass=PParameternowrap>replaceNode,</td></tr><tr><td></td><tdclass=PParameternowrap>style</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Constructs a new window with the given dimension and title to display the specified content. </div></div><divclass=CToolTipid="tt2"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.closeImage</td></tr></table></blockquote>URL of the image to be used for the close icon in the titlebar.</div></div><divclass=CToolTipid="tt3"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.minimizeImage</td></tr></table></blockquote>URL of the image to be used for the minimize icon in the titlebar.</div></div><divclass=CToolTipid="tt4"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.normalizeImage</td></tr></table></blockquote>URL of the image to be used for the normalize icon in the titlebar.</div></div><divclass=CToolTipid="tt5"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.maximizeImage</td></tr></table></blockquote>URL of the image to be used for the maximize icon in the titlebar.</div></div><divclass=CToolTipid="tt6"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.visible</td></tr></table></blockquote>Boolean flag that represents the visible state of the window.</div></div><divclass=CToolTipid="tt7"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.content</td></tr></table></blockquote>Reference to the DOM node that represents the window content.</div></div><divclass=CToolTipid="tt8"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.minimumSize</td></tr></table></blockquote>mxRectangle that specifies the minimum width and height of the window. </div></div><divclass=CToolTipid="tt9"><divclass=CClass>Extends mxPoint to implement a 2-dimensional rectangle with double precision coordinates.</div></div><divclass=CToolTipid="tt10"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.title</td></tr></table></blockquote>Reference to the DOM node (TD) that contains the title.</div></div><divclass=CToolTipid="tt11"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxWindow.prototype.destroyOnClose</td></tr></table></blockquote>Specifies if the window should be destroyed when it is closed. </div></div><divclass=CToolTipid="tt12"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxWindow.prototype.init = function(</td><tdclass=PParameternowrap>x,</td></tr><tr><td></td><tdclass=PParameternowrap>y,</td></tr><tr><td></td><tdclass=PParameternowrap>width,</td></tr><tr><td