<divid=Content><divclass="CClass"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxPopupMenuHandler"></a>mxPopupMenuHandler</h1><divclass=CBody><p>Event handler that creates popupmenus.</p><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#mxPopupMenuHandler">mxPopupMenuHandler</a></td><tdclass=SDescription>Event handler that creates popupmenus.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxPopupMenuHandler.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxPopupMenuHandler.mxPopupMenuHandler"id=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">mxPopupMenuHandler</a></td><tdclass=SDescription>Constructs an event handler that creates a <ahref="../util/mxPopupMenu-js.html#mxPopupMenu"class=LClassid=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">mxPopupMenu</a>.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxPopupMenuHandler.Variables">Variables</a></td><tdclass=SDescription></td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxPopupMenuHandler.graph"id=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">graph</a></td><tdclass=SDescription>Reference to the enclosing <ahref="../view/mxGraph-js.html#mxGraph"class=LClassid=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')">mxGraph</a>.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxPopupMenuHandler.selectOnPopup"id=link5onMouseOver="ShowTip(event, 'tt5', 'link5')"onMouseOut="HideTip('tt5')">selectOnPopup</a></td><tdclass=SDescription>Specifies if cells should be selected if a popupmenu is displayed for them. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxPopupMenuHandler.clearSelectionOnBackground"id=link6onMouseOver="ShowTip(event, 'tt6', 'link6')"onMouseOut="HideTip('tt6')">clearSelectionOnBackground</a></td><tdclass=SDescription>Specifies if cells should be deselected if a popupmenu is displayed for the diagram background. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxPopupMenuHandler.triggerX"id=link7onMouseOver="ShowTip(event, 'tt7', 'link7')"onMouseOut="HideTip('tt7')">triggerX</a></td><tdclass=SDescription>X-coordinate of the mouse down event.</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxPopupMenuHandler.triggerY"id=link8onMouseOver="ShowTip(event, 'tt8', 'link8')"onMouseOut="HideTip('tt8')">triggerY</a></td><tdclass=SDescription>Y-coordinate of the mouse down event.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxPopupMenuHandler.screenX"id=link9onMouseOver="ShowTip(event, 'tt9', 'link9')"onMouseOut="HideTip('tt9')">screenX</a></td><tdclass=SDescription>Screen X-coordinate of the mouse down event.</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxPopupMenuHandler.screenY"id=link10onMouseOver="ShowTip(event, 'tt10', 'link10')"onMouseOut="HideTip('tt10')">screenY</a></td><tdclass=SDescription>Screen Y-coordinate of the mouse down event.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxPopupMenuHandler.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxPopupMenuHandler.init"id=link11onMouseOver="ShowTip(event, 'tt11', 'link11')"onMouseOut="HideTip('tt11')">init</a></td><tdclass=SDescription>Initializes the shapes required for this vertex handler.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxPopupMenuHandler.isSelectOnPopup"id=link12onMouseOver="ShowTip(event, 'tt12', 'link12')"onMouseOut="HideTip('tt12')">isSelectOnPopup</a></td><tdclass=SDescription>Hook for returning if a cell should be selected for a given <ahref="../util/mxMouseEvent-js.html
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenuHandler.graph"></a>graph</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxPopupMenuHandler.prototype.graph</td></tr></table></blockquote><p>Reference to the enclosing <ahref="../view/mxGraph-js.html#mxGraph"class=LClassid=link20onMouseOver="ShowTip(event, 'tt4', 'link20')"onMouseOut="HideTip('tt4')">mxGraph</a>.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenuHandler.selectOnPopup"></a>selectOnPopup</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxPopupMenuHandler.prototype.selectOnPopup</td></tr></table></blockquote><p>Specifies if cells should be selected if a popupmenu is displayed for them. Default is true.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenuHandler.clearSelectionOnBackground"></a>clearSelectionOnBackground</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxPopupMenuHandler.prototype.clearSelectionOnBackground</td></tr></table></blockquote><p>Specifies if cells should be deselected if a popupmenu is displayed for the diagram background. Default is true.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenuHandler.triggerX"></a>triggerX</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxPopupMenuHandler.prototype.triggerX</td></tr></table></blockquote><p>X-coordinate of the mouse down event.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenuHandler.triggerY"></a>triggerY</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxPopupMenuHandler.prototype.triggerY</td></tr></table></blockquote><p>Y-coordinate of the mouse down event.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenuHandler.screenX"></a>screenX</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxPopupMenuHandler.prototype.screenX</td></tr></table></blockquote><p>Screen X-coordinate of the mouse down event.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenuHandler.screenY"></a>screenY</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxPopupMenuHandler.prototype.screenY</td></tr></table></blockquote><p>Screen Y-coordinate of the mouse down event.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenuHandler.init"></a>init</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxPopupMenuHandler.prototype.init = function()</td></tr></table></blockquote><p>Initializes the shapes required for this vertex handler.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenuHandler.isSelectOnPopup"></a>isSelectOnPopup</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxPopupMenuHandler.prototype.isSelectOnPopup = function(</td><tdclass="PParameter prettyprint "nowrap>me</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Hook for returning if a cell should be selected for a given <ahref="../util/mxMouseEvent-js.html#mxMouseEvent"class=LClassid=link21onMouseOver="ShowTip(event, 'tt13', 'link21')"onMouseOut="HideTip('tt13')">mxMouseEvent</a>. This implementation returns <ahref="#mxPopupMenuHandler.selectOnPopup"class=LVariableid=link22onMouseOver="ShowTip(event, 'tt5', 'link22')"onMouseOut="HideTip('tt5')">selectOnPopup</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenuHandler.mouseDown"></a>mouseDown</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxPopupMenuHandler.prototype.mouseDown = function(</td><tdclass="PParameter prettyprint "nowrap>sender,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>me</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Handles the event by initiating the panning. By consuming the event all subsequent events of the gesture are redirected to this handler.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenuHandler.mouseMove"></a>mouseMove</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxPopupMenuHandler.prototype.mouseMove = function(</td><tdclass="PParameter prettyprint "nowrap>sender,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>me</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Handles the event by updating the panning on the graph.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenuHandler.mouseUp"></a>mouseUp</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxPopupMenuHandler.prototype.mouseUp = function(</td><tdclass="PParameter prettyprint "nowrap>sender,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>me</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Handles the event by setting the translation on the view or showing the popupmenu.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenuHandler.getCellForPopupEvent"></a>getCellForPopupEvent</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxPopupMenuHandler.prototype.getCellForPopupEvent = function(</td><tdclass="PParameter prettyprint "nowrap>me</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Hook to return the cell for the mouse up popup trigger handling.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenuHandler.destroy"></a>destroy</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxPopupMenuHandler.prototype.destroy = function()</td></tr></table></blockquote><p>Destroys the handler and all its resources and DOM nodes.</p></div></div></div>
<divclass=CToolTipid="tt1"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function mxPopupMenuHandler(</td><tdclass="PParameter prettyprint "nowrap>graph,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>factoryMethod</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Constructs an event handler that creates a mxPopupMenu.</div></div><divclass=CToolTipid="tt2"><divclass=CClass>Basic popup menu. </div></div><divclass=CToolTipid="tt3"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxPopupMenuHandler.prototype.graph</td></tr></table></blockquote>Reference to the enclosing mxGraph.</div></div><divclass=CToolTipid="tt4"><divclass=CClass>Extends mxEventSource to implement a graph component for the browser. </div></div><divclass=CToolTipid="tt5"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxPopupMenuHandler.prototype.selectOnPopup</td></tr></table></blockquote>Specifies if cells should be selected if a popupmenu is displayed for them. </div></div><divclass=CToolTipid="tt6"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxPopupMenuHandler.prototype.clearSelectionOnBackground</td></tr></table></blockquote>Specifies if cells should be deselected if a popupmenu is displayed for the diagram background. </div></div><divclass=CToolTipid="tt7"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxPopupMenuHandler.prototype.triggerX</td></tr></table></blockquote>X-coordinate of the mouse down event.</div></div><divclass=CToolTipid="tt8"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxPopupMenuHandler.prototype.triggerY</td></tr></table></blockquote>Y-coordinate of the mouse down event.</div></div><divclass=CToolTipid="tt9"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxPopupMenuHandler.prototype.screenX</td></tr></table></blockquote>Screen X-coordinate of the mouse down event.</div></div><divclass=CToolTipid="tt10"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxPopupMenuHandler.prototype.screenY</td></tr></table></blockquote>Screen Y-coordinate of the mouse down event.</div></div><divclass=CToolTipid="tt11"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxPopupMenuHandler.prototype.init = function()</td></tr></table></blockquote>Initializes the shapes required for this vertex handler.</div></div><divclass=CToolTipid="tt12"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxPopupMenuHandler.prototype.isSelectOnPopup = function(</td><tdclass="PParameter prettyprint "nowrap>me</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Hook for returning if a cell should be selected for a given mxMouseEvent. </div></div><divclass=CToolTipid="tt13"><divclass=CClass>Base class for all mouse events in mxGraph. </div></div><divclass=CToolTipid="tt14"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxPopupMenuHandler.prototype.mouseDown = function(</td><tdclass="PParameter prettyprint "nowrap>sender,</td></tr><tr><td></td><tdclass="PParameter