maxGraph/docs/js-api/files/util/mxAbstractCanvas2D-js.html

149 lines
81 KiB
HTML
Raw Normal View History

2013-05-23 16:14:48 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><title>mxAbstractCanvas2D</title><link rel="stylesheet" type="text/css" href="../../styles/main.css"><script language=JavaScript src="../../javascript/main.js"></script><script language=JavaScript src="../../javascript/prettify.js"></script><script language=JavaScript src="../../javascript/searchdata.js"></script></head><body class="ContentPage" onLoad="NDOnLoad();prettyPrint();"><script language=JavaScript><!--
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
<!-- Generated by Natural Docs, version 1.5 -->
<!-- http://www.naturaldocs.org -->
<!-- saved from url=(0026)http://www.naturaldocs.org -->
<div id=Content><div class="CClass"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="mxAbstractCanvas2D"></a>mxAbstractCanvas2D</h1><div class=CBody><p>Base class for all canvases.&nbsp; A description of the public API is available in <a href="mxXmlCanvas2D-js.html#mxXmlCanvas2D" class=LClass id=link54 onMouseOver="ShowTip(event, 'tt53', 'link54')" onMouseOut="HideTip('tt53')">mxXmlCanvas2D</a>.&nbsp; All color values of <a href="mxConstants-js.html#mxConstants.NONE" class=LVariable id=link55 onMouseOver="ShowTip(event, 'tt54', 'link55')" onMouseOut="HideTip('tt54')">mxConstants.NONE</a> will be converted to null in the state.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#mxAbstractCanvas2D" >mxAbstractCanvas2D</a></td><td class=SDescription>Base class for all canvases. </td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#mxAbstractCanvas2D.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxAbstractCanvas2D.mxAbstractCanvas2D" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">mxAbstractCanvas2D</a></td><td class=SDescription>Constructs a new abstract canvas.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#mxAbstractCanvas2D.Variables" >Variables</a></td><td class=SDescription></td></tr><tr class="SVariable SIndent2 SMarked"><td class=SEntry><a href="#mxAbstractCanvas2D.converter" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">converter</a></td><td class=SDescription>Holds the <a href="mxUrlConverter-js.html#mxUrlConverter" class=LClass id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">mxUrlConverter</a> to convert image URLs.</td></tr><tr class="SVariable SIndent2"><td class=SEntry><a href="#mxAbstractCanvas2D.state" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">state</a></td><td class=SDescription>Holds the current state.</td></tr><tr class="SVariable SIndent2 SMarked"><td class=SEntry><a href="#mxAbstractCanvas2D.states" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">states</a></td><td class=SDescription>Stack of states.</td></tr><tr class="SVariable SIndent2"><td class=SEntry><a href="#mxAbstractCanvas2D.path" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">path</a></td><td class=SDescription>Holds the current path as an array.</td></tr><tr class="SVariable SIndent2 SMarked"><td class=SEntry><a href="#mxAbstractCanvas2D.rotateHtml" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')">rotateHtml</a></td><td class=SDescription>Switch for rotation of HTML. </td></tr><tr class="SVariable SIndent2"><td class=SEntry><a href="#mxAbstractCanvas2D.lastX" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')">lastX</a></td><td class=SDescription>Holds the last x coordinate.</td></tr><tr class="SVariable SIndent2 SMarked"><td class=SEntry><a href="#mxAbstractCanvas2D.lastY" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')">lastY</a></td><td class=SDescription>Holds the last y coordinate.</td></tr><tr class="SVariable SIndent2"><td class=SEntry><a href="#mxAbstractCanvas2D.moveOp" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')">moveOp</a></td><td class=SDescription>Contains the string used for moving in paths. </td></tr><tr class="SVariable SIndent2 SMarked"><td class=SEntry><a href="#mxAbstractCanvas2D.lineOp" id=link11 onMouseOver="ShowTip(event, 'tt11', 'link11')" onMouseOut="HideTip('tt11')">lineOp</a></td><td class=SDescription>Contains the string used for moving in paths. </td></tr><tr class="SVariable SIndent2"><td class=SEntry><a href="#mxAbstractCanvas2D.quadOp" id=link12 onMouseOver="ShowTip(event, 'tt12', 'link12')" onMouseOut="Hide
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.Functions"></a>Functions</h3></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.mxAbstractCanvas2D"></a>mxAbstractCanvas2D</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>function mxAbstractCanvas2D()</td></tr></table></blockquote><p>Constructs a new abstract canvas.</p></div></div></div>
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.Variables"></a>Variables</h3></div></div>
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.converter"></a>converter</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>this.converter</td></tr></table></blockquote><p>Holds the <a href="mxUrlConverter-js.html#mxUrlConverter" class=LClass id=link56 onMouseOver="ShowTip(event, 'tt3', 'link56')" onMouseOut="HideTip('tt3')">mxUrlConverter</a> to convert image URLs.</p></div></div></div>
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.state"></a>state</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.state</td></tr></table></blockquote><p>Holds the current state.</p></div></div></div>
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.states"></a>states</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.states</td></tr></table></blockquote><p>Stack of states.</p></div></div></div>
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.path"></a>path</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.path</td></tr></table></blockquote><p>Holds the current path as an array.</p></div></div></div>
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.rotateHtml"></a>rotateHtml</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.rotateHtml</td></tr></table></blockquote><p>Switch for rotation of HTML.&nbsp; Default is false.</p></div></div></div>
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.lastX"></a>lastX</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.lastX</td></tr></table></blockquote><p>Holds the last x coordinate.</p></div></div></div>
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.lastY"></a>lastY</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.lastY</td></tr></table></blockquote><p>Holds the last y coordinate.</p></div></div></div>
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.moveOp"></a>moveOp</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.moveOp</td></tr></table></blockquote><p>Contains the string used for moving in paths.&nbsp; Default is &lsquo;M&rsquo;.</p></div></div></div>
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.lineOp"></a>lineOp</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.lineOp</td></tr></table></blockquote><p>Contains the string used for moving in paths.&nbsp; Default is &lsquo;L&rsquo;.</p></div></div></div>
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.quadOp"></a>quadOp</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.quadOp</td></tr></table></blockquote><p>Contains the string used for quadratic paths.&nbsp; Default is &lsquo;Q&rsquo;.</p></div></div></div>
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.curveOp"></a>curveOp</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.curveOp</td></tr></table></blockquote><p>Contains the string used for bezier curves.&nbsp; Default is &lsquo;C&rsquo;.</p></div></div></div>
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.closeOp"></a>closeOp</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.closeOp</td></tr></table></blockquote><p>Holds the operator for closing curves.&nbsp; Default is &lsquo;Z&rsquo;.</p></div></div></div>
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.pointerEvents"></a>pointerEvents</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.pointerEvents</td></tr></table></blockquote><p>Boolean value that specifies if events should be handled.&nbsp; Default is false.</p></div></div></div>
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.Functions"></a>Functions</h3></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.createUrlConverter"></a>createUrlConverter</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.createUrlConverter = function()</td></tr></table></blockquote><p>Create a new <a href="mxUrlConverter-js.html#mxUrlConverter" class=LClass id=link57 onMouseOver="ShowTip(event, 'tt3', 'link57')" onMouseOut="HideTip('tt3')">mxUrlConverter</a> and returns it.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.reset"></a>reset</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.reset = function()</td></tr></table></blockquote><p>Resets the state of this canvas.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.createState"></a>createState</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.createState = function()</td></tr></table></blockquote><p>Creates the state of the this canvas.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.format"></a>format</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.format = function(</td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Rounds all numbers to integers.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.addOp"></a>addOp</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.addOp = function()</td></tr></table></blockquote><p>Adds the given operation to the path.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.rotatePoint"></a>rotatePoint</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.rotatePoint = function(</td><td class=PParameter nowrap>x,</td></tr><tr><td></td><td class=PParameter nowrap>y,</td></tr><tr><td></td><td class=PParameter nowrap>theta,</td></tr><tr><td></td><td class=PParameter nowrap>cx,</td></tr><tr><td></td><td class=PParameter nowrap>cy</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Rotates the given point and returns the result as an <a href="mxPoint-js.html#mxPoint" class=LClass id=link58 onMouseOver="ShowTip(event, 'tt22', 'link58')" onMouseOut="HideTip('tt22')">mxPoint</a>.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.save"></a>save</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.save = function()</td></tr></table></blockquote><p>Saves the current state.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.restore"></a>restore</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.restore = function()</td></tr></table></blockquote><p>Restores the current state.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.scale"></a>scale</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.scale = function(</td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Scales the current state.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.translate"></a>translate</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.translate = function(</td><td class=PParameter nowrap>dx,</td></tr><tr><td></td><td class=PParameter nowrap>dy</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Translates the current state.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.setAlpha"></a>setAlpha</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.setAlpha = function(</td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current alpha.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.setFillColor"></a>setFillColor</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.setFillColor = function(</td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current fill color.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.setGradient"></a>setGradient</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.setGradient = function(</td><td class=PParameter nowrap>color1,</td></tr><tr><td></td><td class=PParameter nowrap>color2,</td></tr><tr><td></td><td class=PParameter nowrap>x,</td></tr><tr><td></td><td class=PParameter nowrap>y,</td></tr><tr><td></td><td class=PParameter nowrap>w,</td></tr><tr><td></td><td class=PParameter nowrap>h,</td></tr><tr><td></td><td class=PParameter nowrap>direction,</td></tr><tr><td></td><td class=PParameter nowrap>alpha1,</td></tr><tr><td></td><td class=PParameter nowrap>alpha2</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current gradient.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.setStrokeColor"></a>setStrokeColor</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.setStrokeColor = function(</td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current stroke color.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.setStrokeWidth"></a>setStrokeWidth</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.setStrokeWidth = function(</td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current stroke width.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.setDashed"></a>setDashed</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.setDashed = function(</td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Enables or disables dashed lines.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.setDashPattern"></a>setDashPattern</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.setDashPattern = function(</td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current dash pattern.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.setLineCap"></a>setLineCap</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.setLineCap = function(</td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current line cap.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.setLineJoin"></a>setLineJoin</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.setLineJoin = function(</td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current line join.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.setMiterLimit"></a>setMiterLimit</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.setMiterLimit = function(</td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current miter limit.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.setFontColor"></a>setFontColor</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.setFontColor = function(</td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current font color.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.setFontColor"></a>setFontColor</h3><div class=CBody><p>Sets the current font color.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.setFontColor"></a>setFontColor</h3><div class=CBody><p>Sets the current font color.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.setFontSize"></a>setFontSize</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.setFontSize = function(</td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current font size.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.setFontFamily"></a>setFontFamily</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.setFontFamily = function(</td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current font family.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.setFontStyle"></a>setFontStyle</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.setFontStyle = function(</td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the current font style.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.setShadow"></a>setShadow</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.setShadow = function(</td><td class=PParameter nowrap>enabled</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Enables or disables and configures the current shadow.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.setShadowColor"></a>setShadowColor</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.setShadowColor = function(</td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Enables or disables and configures the current shadow.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.setShadowAlpha"></a>setShadowAlpha</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.setShadowAlpha = function(</td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Enables or disables and configures the current shadow.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.setShadowOffset"></a>setShadowOffset</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.setShadowOffset = function(</td><td class=PParameter nowrap>dx,</td></tr><tr><td></td><td class=PParameter nowrap>dy</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Enables or disables and configures the current shadow.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.begin"></a>begin</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.begin = function()</td></tr></table></blockquote><p>Starts a new path.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.moveTo"></a>moveTo</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.moveTo = function(</td><td class=PParameter nowrap>x,</td></tr><tr><td></td><td class=PParameter nowrap>y</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Moves the current path the given coordinates.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.lineTo"></a>lineTo</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.lineTo = function(</td><td class=PParameter nowrap>x,</td></tr><tr><td></td><td class=PParameter nowrap>y</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws a line to the given coordinates.&nbsp; Uses moveTo with the op argument.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.quadTo"></a>quadTo</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.quadTo = function(</td><td class=PParameter nowrap>x1,</td></tr><tr><td></td><td class=PParameter nowrap>y1,</td></tr><tr><td></td><td class=PParameter nowrap>x2,</td></tr><tr><td></td><td class=PParameter nowrap>y2</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Adds a quadratic curve to the current path.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.curveTo"></a>curveTo</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.curveTo = function(</td><td class=PParameter nowrap>x1,</td></tr><tr><td></td><td class=PParameter nowrap>y1,</td></tr><tr><td></td><td class=PParameter nowrap>x2,</td></tr><tr><td></td><td class=PParameter nowrap>y2,</td></tr><tr><td></td><td class=PParameter nowrap>x3,</td></tr><tr><td></td><td class=PParameter nowrap>y3</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Adds a bezier curve to the current path.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.arcTo"></a>arcTo</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.arcTo = function(</td><td class=PParameter nowrap>rx,</td></tr><tr><td></td><td class=PParameter nowrap>ry,</td></tr><tr><td></td><td class=PParameter nowrap>angle,</td></tr><tr><td></td><td class=PParameter nowrap>largeArcFlag,</td></tr><tr><td></td><td class=PParameter nowrap>sweepFlag,</td></tr><tr><td></td><td class=PParameter nowrap>x,</td></tr><tr><td></td><td class=PParameter nowrap>y</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Adds the given arc to the current path.&nbsp; This is a synthetic operation that is broken down into curves.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.close"></a>close</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxAbstractCanvas2D.prototype.close = function(</td><td class=PParameter nowrap>x1,</td></tr><tr><td></td><td class=PParameter nowrap>y1,</td></tr><tr><td></td><td class=PParameter nowrap>x2,</td></tr><tr><td></td><td class=PParameter nowrap>y2,</td></tr><tr><td></td><td class=PParameter nowrap>x3,</td></tr><tr><td></td><td class=PParameter nowrap>y3</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Closes the current path.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxAbstractCanvas2D.end"></a>end</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.end = function()</td></tr></table></blockquote><p>Empty implementation for backwards compatibility.&nbsp; This will be removed.</p></div></div></div>
</div><!--Content-->
<div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
2014-01-08 16:23:20 +00:00
<div id=Menu><div class=MEntry><div class=MFile><a href="../index-txt.html">API Specification</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Editor</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MFile><a href="../editor/mxDefaultKeyHandler-js.html">mxDefaultKeyHandler</a></div></div><div class=MEntry><div class=MFile><a href="../editor/mxDefaultPopupMenu-js.html">mxDefaultPopupMenu</a></div></div><div class=MEntry><div class=MFile><a href="../editor/mxDefaultToolbar-js.html">mxDefaultToolbar</a></div></div><div class=MEntry><div class=MFile><a href="../editor/mxEditor-js.html">mxEditor</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent2')">Handler</a><div class=MGroupContent id=MGroupContent2><div class=MEntry><div class=MFile><a href="../handler/mxCellHighlight-js.html">mxCellHighlight</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxCellMarker-js.html">mxCellMarker</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxCellTracker-js.html">mxCellTracker</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxConnectionHandler-js.html">mxConnectionHandler</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxConstraintHandler-js.html">mxConstraintHandler</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxEdgeHandler-js.html">mxEdgeHandler</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxEdgeSegmentHandler-js.html">mxEdgeSegmentHandler.js</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxElbowEdgeHandler-js.html">mxElbowEdgeHandler</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxGraphHandler-js.html">mxGraphHandler</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxKeyHandler-js.html">mxKeyHandler</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxPanningHandler-js.html">mxPanningHandler</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxPopupMenuHandler-js.html">mxPanningHandler</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxRubberband-js.html">mxRubberband</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxSelectionCellsHandler-js.html">mxSelectionCellsHandler</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxTooltipHandler-js.html">mxTooltipHandler</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxVertexHandler-js.html">mxVertexHandler</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent3')">Io</a><div class=MGroupContent id=MGroupContent3><div class=MEntry><div class=MFile><a href="../io/mxCellCodec-js.html">mxCellCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxChildChangeCodec-js.html">mxChildChangeCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxCodec-js.html">mxCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxCodecRegistry-js.html">mxCodecRegistry</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxDefaultKeyHandlerCodec-js.html">mxDefaultKeyHandlerCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxDefaultPopupMenuCodec-js.html">mxDefaultPopupMenuCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxDefaultToolbarCodec-js.html">mxDefaultToolbarCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxEditorCodec-js.html">mxEditorCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxGenericChangeCodec-js.html">mxGenericChangeCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxGraphCodec-js.html">mxGraphCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxGraphViewCodec-js.html">mxGraphViewCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxModelCodec-js.html">mxModelCodec</a></d
2013-05-23 16:14:48 +00:00
var searchPanel = new SearchPanel("searchPanel", "HTML", "../../search");
--></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option id=MSearchEverything selected value="General">Everything</option><option value="Classes">Classes</option><option value="Cookies">Cookies</option><option value="Events">Events</option><option value="Files">Files</option><option value="Functions">Functions</option><option value="Variables">Variables</option></select></div><script language=JavaScript><!--
HideAllBut([10], 13);// --></script></div><!--Menu-->
<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>function mxAbstractCanvas2D()</td></tr></table></blockquote>Constructs a new abstract canvas.</div></div><div class=CToolTip id="tt2"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>this.converter</td></tr></table></blockquote>Holds the mxUrlConverter to convert image URLs.</div></div><div class=CToolTip id="tt3"><div class=CClass>Converts relative and absolute URLs to absolute URLs with protocol and domain.</div></div><div class=CToolTip id="tt4"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.state</td></tr></table></blockquote>Holds the current state.</div></div><div class=CToolTip id="tt5"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.states</td></tr></table></blockquote>Stack of states.</div></div><div class=CToolTip id="tt6"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.path</td></tr></table></blockquote>Holds the current path as an array.</div></div><div class=CToolTip id="tt7"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.rotateHtml</td></tr></table></blockquote>Switch for rotation of HTML. </div></div><div class=CToolTip id="tt8"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.lastX</td></tr></table></blockquote>Holds the last x coordinate.</div></div><div class=CToolTip id="tt9"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.lastY</td></tr></table></blockquote>Holds the last y coordinate.</div></div><div class=CToolTip id="tt10"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.moveOp</td></tr></table></blockquote>Contains the string used for moving in paths. </div></div><div class=CToolTip id="tt11"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.lineOp</td></tr></table></blockquote>Contains the string used for moving in paths. </div></div><div class=CToolTip id="tt12"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.quadOp</td></tr></table></blockquote>Contains the string used for quadratic paths. </div></div><div class=CToolTip id="tt13"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.curveOp</td></tr></table></blockquote>Contains the string used for bezier curves. </div></div><div class=CToolTip id="tt14"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.closeOp</td></tr></table></blockquote>Holds the operator for closing curves. </div></div><div class=CToolTip id="tt15"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.pointerEvents</td></tr></table></blockquote>Boolean value that specifies if events should be handled. </div></div><div class=CToolTip id="tt16"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxAbstractCanvas2D.prototype.createUrlConverter = function()</td></tr></table></blockquote>Create a new mxUrlConverter and returns it.</div></div><div class=CToolTip id="tt17"><div class=CFunction><b
<div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div>
<script language=JavaScript><!--
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>