125 lines
90 KiB
HTML
125 lines
90 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
|
|
|
<html><head><title>/home/gaudenz/project/mxgraph2/build/mxgraph/php/src/canvas/mxGdCanvas.php</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="CFile"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="mxGdCanvas.php"></a>mxGdCanvas.php</h1><div class=CBody><!--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="#mxGdCanvas.php" >mxGdCanvas.php</a></td><td class=SDescription></td></tr><tr class="SGroup"><td class=SEntry><a href="#Variables" >Variables</a></td><td class=SDescription></td></tr><tr class="SVariable SIndent1 SMarked"><td class=SEntry><a href="#antialias" >antialias</a></td><td class=SDescription>Specifies if image aspect should be preserved in drawImage. </td></tr><tr class="SClass"><td class=SEntry><a href="#mxGdCanvas" >mxGdCanvas</a></td><td class=SDescription>Canvas for drawing graphs using the GD library. </td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#mxGdCanvas.Variables" >Variables</a></td><td class=SDescription></td></tr><tr class="SVariable SIndent2 SMarked"><td class=SEntry><a href="#mxGdCanvas.antialias" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">antialias</a></td><td class=SDescription>Specifies if antialiasing should be enabled. </td></tr><tr class="SVariable SIndent2"><td class=SEntry><a href="#mxGdCanvas.enableTtf" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">enableTtf</a></td><td class=SDescription>Specifies if truetype fonts are enabled if available. </td></tr><tr class="SVariable SIndent2 SMarked"><td class=SEntry><a href="#mxGdCanvas.shadowColor" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">shadowColor</a></td><td class=SDescription>Holds the color object for the shadow color defined in <a href="../util/mxConstants-php.html#mxConstants.W3C_SHADOWCOLOR" class=LVariable id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">mxConstants.W3C_SHADOWCOLOR</a>.</td></tr><tr class="SVariable SIndent2"><td class=SEntry><a href="#mxGdCanvas.imageCache" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">imageCache</a></td><td class=SDescription>Holds the image cache.</td></tr><tr class="SVariable SIndent2 SMarked"><td class=SEntry><a href="#mxGdCanvas.image" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">image</a></td><td class=SDescription>Holds the image.</td></tr><tr class="SVariable SIndent2"><td class=SEntry><a href="#mxGdCanvas.height" >height</a></td><td class=SDescription>Holds the height.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#mxGdCanvas.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGdCanvas.mxGdCanvas" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')">mxGdCanvas</a></td><td class=SDescription>Constructs a new GD canvas. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGdCanvas.loadImage" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')">loadImage</a></td><td class=SDescription>Returns an image instance for the given URL. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGdCanvas.drawCell" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')">drawCell</a></td><td class=SDescription>Draws the given cell state.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGdCanvas.drawLabel" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')">drawLabel</a></td><td class=SDescription>Draws the given label.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGdCanvas.drawMarker" id=link11 onMouseOver="ShowTip(event, 'tt11', 'link11')" onMouseOut="HideTip('tt11')">drawMarker</a></td><td class=SDescription>Draws the specified marker.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGdCanvas.getImage" id=link12 onMouseOver="ShowTip(event, 'tt12', 'link12')" onMouseOut="HideTip('tt12')">getImage</a></td><td class=SDescription>Returns an image that represents this canvas.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGdCanvas.setImage" id=link13 onMouseOver="ShowTip(event, 'tt13', 'link13')" onMouseOut="HideTip('tt13')">setImage</a></td><td class=SDescription>Sets the image that represents the canvas.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGdCanvas.getImageForStyle" id=link14 onMouseOver="ShowTip(event, 'tt14', 'link14')" onMouseOut="HideTip('tt14')">getImageForStyle</a></td><td class=SDescription>Returns an image that represents this canvas.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGdCanvas.drawLine" id=link15 onMouseOver="ShowTip(event, 'tt15', 'link15')" onMouseOut="HideTip('tt15')">drawLine</a></td><td class=SDescription>Draws the given line.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGdCanvas.drawShape" id=link16 onMouseOver="ShowTip(event, 'tt16', 'link16')" onMouseOut="HideTip('tt16')">drawShape</a></td><td class=SDescription>Draws the given shape.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGdCanvas.drawPolygon" id=link17 onMouseOver="ShowTip(event, 'tt17', 'link17')" onMouseOut="HideTip('tt17')">drawPolygon</a></td><td class=SDescription>Draws the given polygon.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGdCanvas.drawRect" id=link18 onMouseOver="ShowTip(event, 'tt18', 'link18')" onMouseOut="HideTip('tt18')">drawRect</a></td><td class=SDescription>Draws then given rectangle. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGdCanvas.drawOval" id=link19 onMouseOver="ShowTip(event, 'tt19', 'link19')" onMouseOut="HideTip('tt19')">drawOval</a></td><td class=SDescription>Draws then given ellipse.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGdCanvas.drawRhombus" id=link20 onMouseOver="ShowTip(event, 'tt20', 'link20')" onMouseOut="HideTip('tt20')">drawRhombus</a></td><td class=SDescription>Draws then given rhombus.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGdCanvas.drawTriangle" id=link21 onMouseOver="ShowTip(event, 'tt21', 'link21')" onMouseOut="HideTip('tt21')">drawTriangle</a></td><td class=SDescription>Draws then given triangle.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGdCanvas.drawHexagon" id=link22 onMouseOver="ShowTip(event, 'tt22', 'link22')" onMouseOut="HideTip('tt22')">drawHexagon</a></td><td class=SDescription>Draws then given haxagon.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGdCanvas.drawCylinder" id=link23 onMouseOver="ShowTip(event, 'tt23', 'link23')" onMouseOut="HideTip('tt23')">drawCylinder</a></td><td class=SDescription>Draws then given cylinder.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGdCanvas.drawCloud" id=link24 onMouseOver="ShowTip(event, 'tt24', 'link24')" onMouseOut="HideTip('tt24')">drawCloud</a></td><td class=SDescription>Draws then given cloud.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGdCanvas.drawActor" id=link25 onMouseOver="ShowTip(event, 'tt25', 'link25')" onMouseOut="HideTip('tt25')">drawActor</a></td><td class=SDescription>Draws then given cloud.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGdCanvas.drawImage" id=link26 onMouseOver="ShowTip(event, 'tt26', 'link26')" onMouseOut="HideTip('tt26')">drawImage</a></td><td class=SDescription>Draws a given image.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGdCanvas.drawText" id=link27 onMouseOver="ShowTip(event, 'tt27', 'link27')" onMouseOut="HideTip('tt27')">drawText</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGdCanvas.getTrueTypeFont" id=link28 onMouseOver="ShowTip(event, 'tt28', 'link28')" onMouseOut="HideTip('tt28')">getTrueTypeFont</a></td><td class=SDescription>Returns the truetype font to be used to draw the text with the given style.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGdCanvas.getTrueTypeFontSize" id=link29 onMouseOver="ShowTip(event, 'tt29', 'link29')" onMouseOut="HideTip('tt29')">getTrueTypeFontSize</a></td><td class=SDescription>Returns the truetype font size to be used to draw the text with the given style. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGdCanvas.drawTtfText" id=link30 onMouseOver="ShowTip(event, 'tt30', 'link30')" onMouseOut="HideTip('tt30')">drawTtfText</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGdCanvas.drawTtxTextLine" >drawTtxTextLine</a></td><td class=SDescription>Draws a single line of the given true type font text. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGdCanvas.getFixedFontSize" id=link31 onMouseOver="ShowTip(event, 'tt31', 'link31')" onMouseOut="HideTip('tt31')">getFixedFontSize</a></td><td class=SDescription>Returns the fixed font size for GD (1 t0 5) for the given font properties</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGdCanvas.drawString" >drawString</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGdCanvas.drawFixedTextLine" id=link32 onMouseOver="ShowTip(event, 'tt32', 'link32')" onMouseOut="HideTip('tt32')">drawFixedTextLine</a></td><td class=SDescription>Draws the given fixed text line.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGdCanvas.getColor" id=link33 onMouseOver="ShowTip(event, 'tt33', 'link33')" onMouseOut="HideTip('tt33')">getColor</a></td><td class=SDescription>Allocates the given color and returns a reference to it. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGdCanvas.offset" id=link34 onMouseOver="ShowTip(event, 'tt34', 'link34')" onMouseOut="HideTip('tt34')">offset</a></td><td class=SDescription>Creates a new array of x, y sequences where the each coordinate is translated by dx and dy, respectively.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGdCanvas.destroy" id=link35 onMouseOver="ShowTip(event, 'tt35', 'link35')" onMouseOut="HideTip('tt35')">destroy</a></td><td class=SDescription>Destroys all allocated resources.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxGdCanvas.drawGraph" id=link36 onMouseOver="ShowTip(event, 'tt36', 'link36')" onMouseOut="HideTip('tt36')">drawGraph</a></td><td class=SDescription>Draws the given graph using this canvas.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
|
|
|
|
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Variables"></a>Variables</h3></div></div>
|
|
|
|
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="antialias"></a>antialias</h3><div class=CBody><p>Specifies if image aspect should be preserved in drawImage. Default is true.</p></div></div></div>
|
|
|
|
<div class="CClass"><div class=CTopic><h2 class=CTitle><a name="mxGdCanvas"></a>mxGdCanvas</h2><div class=CBody><p>Canvas for drawing graphs using the GD library. This class requires GD support (GDLib). Note that rounded corners, gradients and word wrapping are not supported by GD.</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="SGroup"><td class=SEntry><a href="#mxGdCanvas.Variables" >Variables</a></td><td class=SDescription></td></tr><tr class="SVariable SIndent1 SMarked"><td class=SEntry><a href="#mxGdCanvas.antialias" id=link37 onMouseOver="ShowTip(event, 'tt1', 'link37')" onMouseOut="HideTip('tt1')">antialias</a></td><td class=SDescription>Specifies if antialiasing should be enabled. </td></tr><tr class="SVariable SIndent1"><td class=SEntry><a href="#mxGdCanvas.enableTtf" id=link38 onMouseOver="ShowTip(event, 'tt2', 'link38')" onMouseOut="HideTip('tt2')">enableTtf</a></td><td class=SDescription>Specifies if truetype fonts are enabled if available. </td></tr><tr class="SVariable SIndent1 SMarked"><td class=SEntry><a href="#mxGdCanvas.shadowColor" id=link39 onMouseOver="ShowTip(event, 'tt3', 'link39')" onMouseOut="HideTip('tt3')">shadowColor</a></td><td class=SDescription>Holds the color object for the shadow color defined in <a href="../util/mxConstants-php.html#mxConstants.W3C_SHADOWCOLOR" class=LVariable id=link40 onMouseOver="ShowTip(event, 'tt4', 'link40')" onMouseOut="HideTip('tt4')">mxConstants.W3C_SHADOWCOLOR</a>.</td></tr><tr class="SVariable SIndent1"><td class=SEntry><a href="#mxGdCanvas.imageCache" id=link41 onMouseOver="ShowTip(event, 'tt5', 'link41')" onMouseOut="HideTip('tt5')">imageCache</a></td><td class=SDescription>Holds the image cache.</td></tr><tr class="SVariable SIndent1 SMarked"><td class=SEntry><a href="#mxGdCanvas.image" id=link42 onMouseOver="ShowTip(event, 'tt6', 'link42')" onMouseOut="HideTip('tt6')">image</a></td><td class=SDescription>Holds the image.</td></tr><tr class="SVariable SIndent1"><td class=SEntry><a href="#mxGdCanvas.height" >height</a></td><td class=SDescription>Holds the height.</td></tr><tr class="SGroup"><td class=SEntry><a href="#mxGdCanvas.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#mxGdCanvas.mxGdCanvas" id=link43 onMouseOver="ShowTip(event, 'tt7', 'link43')" onMouseOut="HideTip('tt7')">mxGdCanvas</a></td><td class=SDescription>Constructs a new GD canvas. </td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#mxGdCanvas.loadImage" id=link44 onMouseOver="ShowTip(event, 'tt8', 'link44')" onMouseOut="HideTip('tt8')">loadImage</a></td><td class=SDescription>Returns an image instance for the given URL. </td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#mxGdCanvas.drawCell" id=link45 onMouseOver="ShowTip(event, 'tt9', 'link45')" onMouseOut="HideTip('tt9')">drawCell</a></td><td class=SDescription>Draws the given cell state.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#mxGdCanvas.drawLabel" id=link46 onMouseOver="ShowTip(event, 'tt10', 'link46')" onMouseOut="HideTip('tt10')">drawLabel</a></td><td class=SDescription>Draws the given label.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#mxGdCanvas.drawMarker" id=link47 onMouseOver="ShowTip(event, 'tt11', 'link47')" onMouseOut="HideTip('tt11')">drawMarker</a></td><td class=SDescription>Draws the specified marker.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#mxGdCanvas.getImage" id=link48 onMouseOver="ShowTip(event, 'tt12', 'link48')" onMouseOut="HideTip('tt12')">getImage</a></td><td class=SDescription>Returns an image that represents this canvas.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#mxGdCanvas.setImage" id=link49 onMouseOver="ShowTip(event, 'tt13', 'link49')" onMouseOut="HideTip('tt13')">setImage</a></td><td class=SDescription>Sets the image that represents the canvas.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#mxGdCanvas.getImageForStyle" id=link50 onMouseOver="ShowTip(event, 'tt14', 'link50')" onMouseOut="HideTip('tt14')">getImageForStyle</a></td><td class=SDescription>Returns an image that represents this canvas.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#mxGdCanvas.drawLine" id=link51 onMouseOver="ShowTip(event, 'tt15', 'link51')" onMouseOut="HideTip('tt15')">drawLine</a></td><td class=SDescription>Draws the given line.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#mxGdCanvas.drawShape" id=link52 onMouseOver="ShowTip(event, 'tt16', 'link52')" onMouseOut="HideTip('tt16')">drawShape</a></td><td class=SDescription>Draws the given shape.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#mxGdCanvas.drawPolygon" id=link53 onMouseOver="ShowTip(event, 'tt17', 'link53')" onMouseOut="HideTip('tt17')">drawPolygon</a></td><td class=SDescription>Draws the given polygon.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#mxGdCanvas.drawRect" id=link54 onMouseOver="ShowTip(event, 'tt18', 'link54')" onMouseOut="HideTip('tt18')">drawRect</a></td><td class=SDescription>Draws then given rectangle. </td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#mxGdCanvas.drawOval" id=link55 onMouseOver="ShowTip(event, 'tt19', 'link55')" onMouseOut="HideTip('tt19')">drawOval</a></td><td class=SDescription>Draws then given ellipse.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#mxGdCanvas.drawRhombus" id=link56 onMouseOver="ShowTip(event, 'tt20', 'link56')" onMouseOut="HideTip('tt20')">drawRhombus</a></td><td class=SDescription>Draws then given rhombus.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#mxGdCanvas.drawTriangle" id=link57 onMouseOver="ShowTip(event, 'tt21', 'link57')" onMouseOut="HideTip('tt21')">drawTriangle</a></td><td class=SDescription>Draws then given triangle.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#mxGdCanvas.drawHexagon" id=link58 onMouseOver="ShowTip(event, 'tt22', 'link58')" onMouseOut="HideTip('tt22')">drawHexagon</a></td><td class=SDescription>Draws then given haxagon.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#mxGdCanvas.drawCylinder" id=link59 onMouseOver="ShowTip(event, 'tt23', 'link59')" onMouseOut="HideTip('tt23')">drawCylinder</a></td><td class=SDescription>Draws then given cylinder.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#mxGdCanvas.drawCloud" id=link60 onMouseOver="ShowTip(event, 'tt24', 'link60')" onMouseOut="HideTip('tt24')">drawCloud</a></td><td class=SDescription>Draws then given cloud.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#mxGdCanvas.drawActor" id=link61 onMouseOver="ShowTip(event, 'tt25', 'link61')" onMouseOut="HideTip('tt25')">drawActor</a></td><td class=SDescription>Draws then given cloud.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#mxGdCanvas.drawImage" id=link62 onMouseOver="ShowTip(event, 'tt26', 'link62')" onMouseOut="HideTip('tt26')">drawImage</a></td><td class=SDescription>Draws a given image.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#mxGdCanvas.drawText" id=link63 onMouseOver="ShowTip(event, 'tt27', 'link63')" onMouseOut="HideTip('tt27')">drawText</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#mxGdCanvas.getTrueTypeFont" id=link64 onMouseOver="ShowTip(event, 'tt28', 'link64')" onMouseOut="HideTip('tt28')">getTrueTypeFont</a></td><td class=SDescription>Returns the truetype font to be used to draw the text with the given style.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#mxGdCanvas.getTrueTypeFontSize" id=link65 onMouseOver="ShowTip(event, 'tt29', 'link65')" onMouseOut="HideTip('tt29')">getTrueTypeFontSize</a></td><td class=SDescription>Returns the truetype font size to be used to draw the text with the given style. </td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#mxGdCanvas.drawTtfText" id=link66 onMouseOver="ShowTip(event, 'tt30', 'link66')" onMouseOut="HideTip('tt30')">drawTtfText</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#mxGdCanvas.drawTtxTextLine" >drawTtxTextLine</a></td><td class=SDescription>Draws a single line of the given true type font text. </td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#mxGdCanvas.getFixedFontSize" id=link67 onMouseOver="ShowTip(event, 'tt31', 'link67')" onMouseOut="HideTip('tt31')">getFixedFontSize</a></td><td class=SDescription>Returns the fixed font size for GD (1 t0 5) for the given font properties</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#mxGdCanvas.drawString" >drawString</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#mxGdCanvas.drawFixedTextLine" id=link68 onMouseOver="ShowTip(event, 'tt32', 'link68')" onMouseOut="HideTip('tt32')">drawFixedTextLine</a></td><td class=SDescription>Draws the given fixed text line.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#mxGdCanvas.getColor" id=link69 onMouseOver="ShowTip(event, 'tt33', 'link69')" onMouseOut="HideTip('tt33')">getColor</a></td><td class=SDescription>Allocates the given color and returns a reference to it. </td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#mxGdCanvas.offset" id=link70 onMouseOver="ShowTip(event, 'tt34', 'link70')" onMouseOut="HideTip('tt34')">offset</a></td><td class=SDescription>Creates a new array of x, y sequences where the each coordinate is translated by dx and dy, respectively.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#mxGdCanvas.destroy" id=link71 onMouseOver="ShowTip(event, 'tt35', 'link71')" onMouseOut="HideTip('tt35')">destroy</a></td><td class=SDescription>Destroys all allocated resources.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#mxGdCanvas.drawGraph" id=link72 onMouseOver="ShowTip(event, 'tt36', 'link72')" onMouseOut="HideTip('tt36')">drawGraph</a></td><td class=SDescription>Draws the given graph using this canvas.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
|
|
|
|
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.Variables"></a>Variables</h3></div></div>
|
|
|
|
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.antialias"></a>antialias</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>var $antialias</td></tr></table></blockquote><p>Specifies if antialiasing should be enabled. Default is false. NOTE: GD has a known bug where strokeWidths are ignored if this is enabled.</p></div></div></div>
|
|
|
|
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.enableTtf"></a>enableTtf</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>var $enableTtf</td></tr></table></blockquote><p>Specifies if truetype fonts are enabled if available. Default is <a href="../util/mxConstants-php.html#mxConstants.TTF_ENABLED" class=LVariable id=link73 onMouseOver="ShowTip(event, 'tt37', 'link73')" onMouseOut="HideTip('tt37')">mxConstants.TTF_ENABLED</a>.</p></div></div></div>
|
|
|
|
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.shadowColor"></a>shadowColor</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>var $shadowColor</td></tr></table></blockquote><p>Holds the color object for the shadow color defined in <a href="../util/mxConstants-php.html#mxConstants.W3C_SHADOWCOLOR" class=LVariable id=link74 onMouseOver="ShowTip(event, 'tt4', 'link74')" onMouseOut="HideTip('tt4')">mxConstants.W3C_SHADOWCOLOR</a>.</p></div></div></div>
|
|
|
|
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.imageCache"></a>imageCache</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>var $imageCache</td></tr></table></blockquote><p>Holds the image cache.</p></div></div></div>
|
|
|
|
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.image"></a>image</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>var $image</td></tr></table></blockquote><p>Holds the image.</p></div></div></div>
|
|
|
|
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.height"></a>height</h3><div class=CBody><p>Holds the height.</p></div></div></div>
|
|
|
|
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.Functions"></a>Functions</h3></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.mxGdCanvas"></a>mxGdCanvas</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>function mxGdCanvas(</td><td class=PParameter nowrap>$width</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> 0,</td></tr><tr><td></td><td class=PParameter nowrap>$height</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> 0,</td></tr><tr><td></td><td class=PParameter nowrap>$scale</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> 1,</td></tr><tr><td></td><td class=PParameter nowrap>$background</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$imageBasePath</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> ""</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Constructs a new GD canvas. Use a HTML color definition for the optional background parameter, eg. white or #FFFFFF. The buffered <a href="#mxGdCanvas.image" class=LVariable id=link75 onMouseOver="ShowTip(event, 'tt6', 'link75')" onMouseOut="HideTip('tt6')">image</a> is only created if the given width and height are greater than 0.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.loadImage"></a>loadImage</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>function loadImage(</td><td class=PParameter nowrap>$image</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns an image instance for the given URL. If the URL has been loaded before than an instance of the same instance is returned as in the previous call.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.drawCell"></a>drawCell</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>function drawCell(</td><td class=PParameter nowrap>$state</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws the given cell state.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.drawLabel"></a>drawLabel</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>function drawLabel(</td><td class=PParameter nowrap>$text,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$state,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$html</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws the given label.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.drawMarker"></a>drawMarker</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>function drawMarker(</td><td class=PParameter nowrap>$type,</td></tr><tr><td></td><td class=PParameter nowrap>$p0,</td></tr><tr><td></td><td class=PParameter nowrap>$pe,</td></tr><tr><td></td><td class=PParameter nowrap>$size,</td></tr><tr><td></td><td class=PParameter nowrap>$stroke</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws the specified marker.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.getImage"></a>getImage</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>function getImage()</td></tr></table></blockquote><p>Returns an image that represents this canvas.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.setImage"></a>setImage</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>function setImage(</td><td class=PParameter nowrap>$img</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the image that represents the canvas.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.getImageForStyle"></a>getImageForStyle</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>function getImageForStyle(</td><td class=PParameter nowrap>$style</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns an image that represents this canvas.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.drawLine"></a>drawLine</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>function drawLine(</td><td class=PParameter nowrap>$x0,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$y0,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$x1,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$y1,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$stroke</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$dashed</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws the given line.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.drawShape"></a>drawShape</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>function drawShape(</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>$style</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws the given shape.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.drawPolygon"></a>drawPolygon</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>function drawPolygon(</td><td class=PParameter nowrap>$points,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$fill</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$stroke</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$shadow</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws the given polygon.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.drawRect"></a>drawRect</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>function drawRect(</td><td class=PParameter nowrap>$x,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$y,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$w,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$h,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$fill</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$stroke</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$shadow</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false,</td></tr><tr><td></td><td class=PParameter nowrap>$rounded</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false,</td></tr><tr><td></td><td class=PParameter nowrap>$dashed</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws then given rectangle. Rounded is currently ignored.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.drawOval"></a>drawOval</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>function drawOval(</td><td class=PParameter nowrap>$x,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$y,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$w,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$h,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$fill</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$stroke</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$shadow</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws then given ellipse.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.drawRhombus"></a>drawRhombus</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>function drawRhombus(</td><td class=PParameter nowrap>$x,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$y,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$w,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$h,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$fill</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$stroke</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$shadow</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws then given rhombus.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.drawTriangle"></a>drawTriangle</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>function drawTriangle(</td><td class=PParameter nowrap>$x,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$y,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$w,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$h,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$fill</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$stroke</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$shadow</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false,</td></tr><tr><td></td><td class=PParameter nowrap>$direction</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws then given triangle.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.drawHexagon"></a>drawHexagon</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>function drawHexagon(</td><td class=PParameter nowrap>$x,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$y,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$w,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$h,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$fill</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$stroke</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$shadow</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false,</td></tr><tr><td></td><td class=PParameter nowrap>$direction</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws then given haxagon.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.drawCylinder"></a>drawCylinder</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>function drawCylinder(</td><td class=PParameter nowrap>$x,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$y,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$w,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$h,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$fill</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$stroke</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$shadow</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws then given cylinder.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.drawCloud"></a>drawCloud</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>function drawCloud(</td><td class=PParameter nowrap>$x,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$y,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$w,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$h,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$fill</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$stroke</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$shadow</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%>false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws then given cloud.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.drawActor"></a>drawActor</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>function drawActor(</td><td class=PParameter nowrap>$x,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$y,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$w,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$h,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$fill</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$stroke</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$shadow</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%>false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws then given cloud.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.drawImage"></a>drawImage</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>function drawImage(</td><td class=PParameter nowrap>$x,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$y,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$w,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$h,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$image,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$aspect</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> true,</td></tr><tr><td></td><td class=PParameter nowrap>$flipH</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false,</td></tr><tr><td></td><td class=PParameter nowrap>$flipV</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws a given image.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.drawText"></a>drawText</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>function drawText(</td><td class=PParameter nowrap>$string,</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>$style</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.getTrueTypeFont"></a>getTrueTypeFont</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>function getTrueTypeFont(</td><td class=PParameter nowrap>$style</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the truetype font to be used to draw the text with the given style.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.getTrueTypeFontSize"></a>getTrueTypeFontSize</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>function getTrueTypeFontSize(</td><td class=PParameter nowrap>$style</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the truetype font size to be used to draw the text with the given style. This returns the fontSize in the style of the default fontsize multiplied with <ttfSizeFactor>.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.drawTtfText"></a>drawTtfText</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>function drawTtfText(</td><td class=PParameter nowrap>$string,</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>$style</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.drawTtxTextLine"></a>drawTtxTextLine</h3><div class=CBody><p>Draws a single line of the given true type font text. The w and h are the width and height of the complete text box that contains this line.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.getFixedFontSize"></a>getFixedFontSize</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>function getFixedFontSize(</td><td class=PParameter nowrap>$fontSize,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$fontFamily,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$fontStyle</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%>null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the fixed font size for GD (1 t0 5) for the given font properties</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.drawString"></a>drawString</h3></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.drawFixedTextLine"></a>drawFixedTextLine</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>function drawFixedTextLine(</td><td class=PParameter nowrap>$text,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$font,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$left,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$top,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$color,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$horizontal</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> true</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws the given fixed text line.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.getColor"></a>getColor</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>function getColor(</td><td class=PParameter nowrap>$hex,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$default</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Allocates the given color and returns a reference to it. Supported color names are black, red, green, blue, orange, yellow, pink, turqoise, white, gray and any hex codes between 000000 and FFFFFF.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.offset"></a>offset</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>function offset(</td><td class=PParameter nowrap>$points,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$dx</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$dy</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Creates a new array of x, y sequences where the each coordinate is translated by dx and dy, respectively.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.destroy"></a>destroy</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>function destroy()</td></tr></table></blockquote><p>Destroys all allocated resources.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGdCanvas.drawGraph"></a>drawGraph</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>public static function drawGraph(</td><td class=PParameter nowrap>$graph,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$clip</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$bg</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws the given graph using this canvas.</p></div></div></div>
|
|
|
|
</div><!--Content-->
|
|
|
|
|
|
<div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
|
|
|
|
|
|
<div id=Menu><div class=MEntry><div class=MFile><a href="../index-txt.html">API Specification</a></div></div><div class=MEntry><div class=MFile id=MSelected>canvas/<wbr>mxGdCanvas.php</div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Io</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MFile><a href="../io/mxCellCodec-php.html">mxCellCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxCodec-php.html">mxCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxCodecRegistry-php.html">mxCodecRegistry</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxModelCodec-php.html">mxModelCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxObjectCodec-php.html">mxObjectCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxStylesheetCodec-php.html">mxStylesheetCodec</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent2')">Model</a><div class=MGroupContent id=MGroupContent2><div class=MEntry><div class=MFile><a href="../model/mxCell-php.html">mxCell</a></div></div><div class=MEntry><div class=MFile><a href="../model/mxCellPath-php.html">mxCellPath</a></div></div><div class=MEntry><div class=MFile><a href="../model/mxGeometry-php.html">mxGeometry</a></div></div><div class=MEntry><div class=MFile><a href="../model/mxGraphModel-php.html">mxGraphModel</a></div></div></div></div></div><div class=MEntry><div class=MFile><a href="../reader/mxGraphViewHtmlReader-php.html">mxGraphViewHtmlReader</a></div></div><div class=MEntry><div class=MFile><a href="../reader/mxGraphViewImageReader-php.html">mxGraphViewImageReader</a></div></div><div class=MEntry><div class=MFile><a href="mxHtmlCanvas-php.html">mxHtmlCanvas</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent3')">Util</a><div class=MGroupContent id=MGroupContent3><div class=MEntry><div class=MFile><a href="../util/mxConstants-php.html">mxConstants</a></div></div><div class=MEntry><div class=MFile><a href="../util/mxEvent-php.html">mxEvent</a></div></div><div class=MEntry><div class=MFile><a href="../util/mxEventObject-php.html">mxEventObject</a></div></div><div class=MEntry><div class=MFile><a href="../util/mxEventSource-php.html">mxEventSource</a></div></div><div class=MEntry><div class=MFile><a href="../util/mxImageBundle-php.html">mxImageBundle</a></div></div><div class=MEntry><div class=MFile><a href="../util/mxLog-php.html">mxLog</a></div></div><div class=MEntry><div class=MFile><a href="../util/mxPoint-php.html">mxPoint</a></div></div><div class=MEntry><div class=MFile><a href="../util/mxRectangle-php.html">mxRectangle</a></div></div><div class=MEntry><div class=MFile><a href="../util/mxUtils-php.html">mxUtils</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent4')">View</a><div class=MGroupContent id=MGroupContent4><div class=MEntry><div class=MFile><a href="../view/mxCellState-php.html">mxCellState</a></div></div><div class=MEntry><div class=MFile><a href="../view/mxConnectionConstraint-php.html">mxConnectionConstraint</a></div></div><div class=MEntry><div class=MFile><a href="../view/mxEdgeStyle-php.html">mxEdgeStyleFunction</a></div></div><div class=MEntry><div class=MFile><a href="../view/mxGraph-php.html">mxGraph</a></div></div><div class=MEntry><div class=MFile><a href="../view/mxGraphView-php.html">mxGraphView</a></div></div><div class=MEntry><div class=MFile><a href="../view/mxPerimeter-php.html">mxPerimeterFunction</a></div></div><div class=MEntry><div class=MFile><a href="../view/mxStyleRegistry-php.html">mxStyleRegistry</a></div></div><div class=MEntry><div class=MFile><a href="../view/mxStylesheet-php.html">mxStylesheet</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent5')">Index</a><div class=MGroupContent id=MGroupContent5><div class=MEntry><div class=MIndex><a href="../../index/General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Classes.html">Classes</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Files.html">Files</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Functions.html">Functions</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Interfaces.html">Interfaces</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Variables.html">Variables</a></div></div></div></div></div><script type="text/javascript"><!--
|
|
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="Files">Files</option><option value="Functions">Functions</option><option value="Interfaces">Interfaces</option><option value="Variables">Variables</option></select></div><script language=JavaScript><!--
|
|
HideAllBut([1, 2, 3], 6);// --></script></div><!--Menu-->
|
|
|
|
|
|
|
|
<!--START_ND_TOOLTIPS-->
|
|
<div class=CToolTip id="tt1"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>var $antialias</td></tr></table></blockquote>Specifies if antialiasing should be enabled. </div></div><div class=CToolTip id="tt2"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>var $enableTtf</td></tr></table></blockquote>Specifies if truetype fonts are enabled if available. </div></div><div class=CToolTip id="tt3"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>var $shadowColor</td></tr></table></blockquote>Holds the color object for the shadow color defined in mxConstants.W3C_SHADOWCOLOR.</div></div><div class=CToolTip id="tt4"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>public static $W3C_SHADOWCOLOR</td></tr></table></blockquote>Defines the color to be used to draw shadows in DOM documents.</div></div><div class=CToolTip id="tt5"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>var $imageCache</td></tr></table></blockquote>Holds the image cache.</div></div><div class=CToolTip id="tt6"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>var $image</td></tr></table></blockquote>Holds the image.</div></div><div class=CToolTip id="tt7"><div class=CFunction><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>function mxGdCanvas(</td><td class=PParameter nowrap>$width</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> 0,</td></tr><tr><td></td><td class=PParameter nowrap>$height</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> 0,</td></tr><tr><td></td><td class=PParameter nowrap>$scale</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> 1,</td></tr><tr><td></td><td class=PParameter nowrap>$background</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$imageBasePath</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> ""</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Constructs a new GD canvas. </div></div><div class=CToolTip id="tt8"><div class=CFunction><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>function loadImage(</td><td class=PParameter nowrap>$image</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns an image instance for the given URL. </div></div><div class=CToolTip id="tt9"><div class=CFunction><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>function drawCell(</td><td class=PParameter nowrap>$state</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Draws the given cell state.</div></div><div class=CToolTip id="tt10"><div class=CFunction><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>function drawLabel(</td><td class=PParameter nowrap>$text,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$state,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$html</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Draws the given label.</div></div><div class=CToolTip id="tt11"><div class=CFunction><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>function drawMarker(</td><td class=PParameter nowrap>$type,</td></tr><tr><td></td><td class=PParameter nowrap>$p0,</td></tr><tr><td></td><td class=PParameter nowrap>$pe,</td></tr><tr><td></td><td class=PParameter nowrap>$size,</td></tr><tr><td></td><td class=PParameter nowrap>$stroke</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Draws the specified marker.</div></div><div class=CToolTip id="tt12"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>function getImage()</td></tr></table></blockquote>Returns an image that represents this canvas.</div></div><div class=CToolTip id="tt13"><div class=CFunction><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>function setImage(</td><td class=PParameter nowrap>$img</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the image that represents the canvas.</div></div><div class=CToolTip id="tt14"><div class=CFunction><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>function getImageForStyle(</td><td class=PParameter nowrap>$style</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns an image that represents this canvas.</div></div><div class=CToolTip id="tt15"><div class=CFunction><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>function drawLine(</td><td class=PParameter nowrap>$x0,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$y0,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$x1,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$y1,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$stroke</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$dashed</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Draws the given line.</div></div><div class=CToolTip id="tt16"><div class=CFunction><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>function drawShape(</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>$style</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Draws the given shape.</div></div><div class=CToolTip id="tt17"><div class=CFunction><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>function drawPolygon(</td><td class=PParameter nowrap>$points,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$fill</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$stroke</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$shadow</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Draws the given polygon.</div></div><div class=CToolTip id="tt18"><div class=CFunction><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>function drawRect(</td><td class=PParameter nowrap>$x,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$y,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$w,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$h,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$fill</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$stroke</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$shadow</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false,</td></tr><tr><td></td><td class=PParameter nowrap>$rounded</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false,</td></tr><tr><td></td><td class=PParameter nowrap>$dashed</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Draws then given rectangle. </div></div><div class=CToolTip id="tt19"><div class=CFunction><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>function drawOval(</td><td class=PParameter nowrap>$x,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$y,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$w,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$h,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$fill</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$stroke</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$shadow</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Draws then given ellipse.</div></div><div class=CToolTip id="tt20"><div class=CFunction><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>function drawRhombus(</td><td class=PParameter nowrap>$x,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$y,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$w,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$h,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$fill</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$stroke</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$shadow</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Draws then given rhombus.</div></div><div class=CToolTip id="tt21"><div class=CFunction><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>function drawTriangle(</td><td class=PParameter nowrap>$x,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$y,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$w,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$h,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$fill</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$stroke</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$shadow</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false,</td></tr><tr><td></td><td class=PParameter nowrap>$direction</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Draws then given triangle.</div></div><div class=CToolTip id="tt22"><div class=CFunction><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>function drawHexagon(</td><td class=PParameter nowrap>$x,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$y,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$w,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$h,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$fill</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$stroke</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$shadow</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false,</td></tr><tr><td></td><td class=PParameter nowrap>$direction</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Draws then given haxagon.</div></div><div class=CToolTip id="tt23"><div class=CFunction><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>function drawCylinder(</td><td class=PParameter nowrap>$x,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$y,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$w,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$h,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$fill</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$stroke</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$shadow</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Draws then given cylinder.</div></div><div class=CToolTip id="tt24"><div class=CFunction><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>function drawCloud(</td><td class=PParameter nowrap>$x,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$y,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$w,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$h,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$fill</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$stroke</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$shadow</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%>false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Draws then given cloud.</div></div><div class=CToolTip id="tt25"><div class=CFunction><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>function drawActor(</td><td class=PParameter nowrap>$x,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$y,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$w,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$h,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$fill</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$stroke</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$shadow</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%>false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Draws then given cloud.</div></div><div class=CToolTip id="tt26"><div class=CFunction><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>function drawImage(</td><td class=PParameter nowrap>$x,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$y,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$w,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$h,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$image,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$aspect</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> true,</td></tr><tr><td></td><td class=PParameter nowrap>$flipH</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false,</td></tr><tr><td></td><td class=PParameter nowrap>$flipV</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> false</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Draws a given image.</div></div><div class=CToolTip id="tt27"><div class=CFunction><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>function drawText(</td><td class=PParameter nowrap>$string,</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>$style</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote></div></div><div class=CToolTip id="tt28"><div class=CFunction><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>function getTrueTypeFont(</td><td class=PParameter nowrap>$style</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the truetype font to be used to draw the text with the given style.</div></div><div class=CToolTip id="tt29"><div class=CFunction><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>function getTrueTypeFontSize(</td><td class=PParameter nowrap>$style</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the truetype font size to be used to draw the text with the given style. </div></div><div class=CToolTip id="tt30"><div class=CFunction><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>function drawTtfText(</td><td class=PParameter nowrap>$string,</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>$style</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote></div></div><div class=CToolTip id="tt31"><div class=CFunction><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>function getFixedFontSize(</td><td class=PParameter nowrap>$fontSize,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$fontFamily,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$fontStyle</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%>null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the fixed font size for GD (1 t0 5) for the given font properties</div></div><div class=CToolTip id="tt32"><div class=CFunction><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>function drawFixedTextLine(</td><td class=PParameter nowrap>$text,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$font,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$left,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$top,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$color,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$horizontal</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> true</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Draws the given fixed text line.</div></div><div class=CToolTip id="tt33"><div class=CFunction><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>function getColor(</td><td class=PParameter nowrap>$hex,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$default</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Allocates the given color and returns a reference to it. </div></div><div class=CToolTip id="tt34"><div class=CFunction><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>function offset(</td><td class=PParameter nowrap>$points,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$dx</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$dy</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Creates a new array of x, y sequences where the each coordinate is translated by dx and dy, respectively.</div></div><div class=CToolTip id="tt35"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>function destroy()</td></tr></table></blockquote>Destroys all allocated resources.</div></div><div class=CToolTip id="tt36"><div class=CFunction><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>public static function drawGraph(</td><td class=PParameter nowrap>$graph,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$clip</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$bg</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Draws the given graph using this canvas.</div></div><div class=CToolTip id="tt37"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>public static $TTF_ENABLED</td></tr></table></blockquote>Whether TrueType fonts should be enabled in the mxGdCanvas by default. </div></div><!--END_ND_TOOLTIPS-->
|
|
|
|
|
|
|
|
|
|
<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> |