119 lines
76 KiB
HTML
119 lines
76 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
|
|
|
<html><head><title>mxUtils</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="mxUtils"></a>mxUtils</h1><div class=CBody><p>Helper methods.</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="#mxUtils" >mxUtils</a></td><td class=SDescription>Helper methods.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#mxUtils.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxUtils.getLabelSize" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">getLabelSize</a></td><td class=SDescription>Returns the size of the given label.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxUtils.getLabelPaintBounds" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">getLabelPaintBounds</a></td><td class=SDescription>Returns the paint bounds for the given label.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxUtils.getScaledLabelBounds" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">getScaledLabelBounds</a></td><td class=SDescription>Returns the bounds for a label for the given location and size, taking into account the alignment and spacing in the specified style, as well as the width and height of the rectangle that contains the label. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxUtils.getSizeForString" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">getSizeForString</a></td><td class=SDescription>Returns an <a href="mxRectangle-php.html#mxRectangle" class=LClass id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">mxRectangle</a> with the size (width and height in pixels) of the given string. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxUtils.flipImage" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">flipImage</a></td><td class=SDescription>Flips the given image horizontally and/or vertically and returns a new image instance.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxUtils.toRadians" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')">toRadians</a></td><td class=SDescription>Converts the given degree to radians.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxUtils.getBoundingBox" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')">getBoundingBox</a></td><td class=SDescription>Returns the bounding box for the rotated rectangle.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxUtils.getRotatedPoint" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')">getRotatedPoint</a></td><td class=SDescription>Rotates the given point by the given cos and sin.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxUtils.translatePoints" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')">translatePoints</a></td><td class=SDescription>Creates a new list of new points obtained by translating the points in the given list by the given vector. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxUtils.contains" id=link11 onMouseOver="ShowTip(event, 'tt11', 'link11')" onMouseOut="HideTip('tt11')">contains</a></td><td class=SDescription>Returns true if the specified point (x, y) is contained in the given rectangle.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxUtils.intersection" id=link12 onMouseOver="ShowTip(event, 'tt12', 'link12')" onMouseOut="HideTip('tt12')">intersection</a></td><td class=SDescription>Returns the intersection of two lines as an <a href="mxPoint-php.html#mxPoint" class=LClass id=link13 onMouseOver="ShowTip(event, 'tt13', 'link13')" onMouseOut="HideTip('tt13')">mxPoint</a>.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxUtils.encodeImage" id=link14 onMouseOver="ShowTip(event, 'tt14', 'link14')" onMouseOut="HideTip('tt14')">encodeImage</a></td><td class=SDescription>Encodes the given image using the GD image encoding routines. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxUtils.getStylename" id=link15 onMouseOver="ShowTip(event, 'tt15', 'link15')" onMouseOut="HideTip('tt15')">getStylename</a></td><td class=SDescription>Returns the stylename in a style of the form [stylename;|key=value;] or an empty string if the given style does not contain a stylename.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxUtils.getStylenames" id=link16 onMouseOver="ShowTip(event, 'tt16', 'link16')" onMouseOut="HideTip('tt16')">getStylenames</a></td><td class=SDescription>Returns the stylenames in a style of the form [stylename;|key=value;] or an empty array if the given style does not contain any stylenames.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxUtils.indexOfStylename" id=link17 onMouseOver="ShowTip(event, 'tt17', 'link17')" onMouseOut="HideTip('tt17')">indexOfStylename</a></td><td class=SDescription>Returns the index of the given stylename in the given style. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxUtils.addStylename" id=link18 onMouseOver="ShowTip(event, 'tt18', 'link18')" onMouseOut="HideTip('tt18')">addStylename</a></td><td class=SDescription>Adds the specified stylename to the given style if it does not already contain the stylename.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxUtils.removeStylename" id=link19 onMouseOver="ShowTip(event, 'tt19', 'link19')" onMouseOut="HideTip('tt19')">removeStylename</a></td><td class=SDescription>Removes all occurrences of the specified stylename in the given style and returns the updated style. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxUtils.removeAllStylenames" id=link20 onMouseOver="ShowTip(event, 'tt20', 'link20')" onMouseOut="HideTip('tt20')">removeAllStylenames</a></td><td class=SDescription>Removes all stylenames from the given style and returns the updated style.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxUtils.setCellStyles" id=link21 onMouseOver="ShowTip(event, 'tt21', 'link21')" onMouseOut="HideTip('tt21')">setCellStyles</a></td><td class=SDescription>Assigns the value for the given key in the styles of the given cells, or removes the key from the styles if the value is null.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxUtils.setStyle" id=link22 onMouseOver="ShowTip(event, 'tt22', 'link22')" onMouseOut="HideTip('tt22')">setStyle</a></td><td class=SDescription>Adds or removes the given key, value pair to the style and returns the new style. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxUtils.setCellStyleFlags" id=link23 onMouseOver="ShowTip(event, 'tt23', 'link23')" onMouseOut="HideTip('tt23')">setCellStyleFlags</a></td><td class=SDescription>Sets or toggles the flag bit for the given key in the cell’s styles. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxUtils.setStyleFlag" id=link24 onMouseOver="ShowTip(event, 'tt24', 'link24')" onMouseOut="HideTip('tt24')">setStyleFlag</a></td><td class=SDescription>Sets or removes the given key from the specified style and returns the new style. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxUtils.getValue" id=link25 onMouseOver="ShowTip(event, 'tt25', 'link25')" onMouseOut="HideTip('tt25')">getValue</a></td><td class=SDescription>Returns the value for key in dictionary or the given default value if no value is defined for the key.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxUtils.getNumber" id=link26 onMouseOver="ShowTip(event, 'tt26', 'link26')" onMouseOut="HideTip('tt26')">getNumber</a></td><td class=SDescription>Returns the value for key in dictionary or 0 if no value is defined for the key.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxUtils.indexOf" id=link27 onMouseOver="ShowTip(event, 'tt27', 'link27')" onMouseOut="HideTip('tt27')">indexOf</a></td><td class=SDescription>Returns the index of obj in array or -1 if the array does not contains the given object.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxUtils.readFile" id=link28 onMouseOver="ShowTip(event, 'tt28', 'link28')" onMouseOut="HideTip('tt28')">readFile</a></td><td class=SDescription>Reads the given filename into a string. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxUtils.isNode" id=link29 onMouseOver="ShowTip(event, 'tt29', 'link29')" onMouseOut="HideTip('tt29')">isNode</a></td><td class=SDescription>Returns true if the given value is an XML node with the node name and if the optional attribute has the specified value.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxUtils.loadImage" id=link30 onMouseOver="ShowTip(event, 'tt30', 'link30')" onMouseOut="HideTip('tt30')">loadImage</a></td><td class=SDescription>Loads an image from the local filesystem, a data URI or any other URL.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxUtils.createXmlDocument" id=link31 onMouseOver="ShowTip(event, 'tt31', 'link31')" onMouseOut="HideTip('tt31')">createXmlDocument</a></td><td class=SDescription>Returns a new, empty XML document.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxUtils.loadXmlDocument" id=link32 onMouseOver="ShowTip(event, 'tt32', 'link32')" onMouseOut="HideTip('tt32')">loadXmlDocument</a></td><td class=SDescription>Returns a new DOM document for the given URI.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxUtils.parseXml" id=link33 onMouseOver="ShowTip(event, 'tt33', 'link33')" onMouseOut="HideTip('tt33')">parseXml</a></td><td class=SDescription>Returns a new DOM document for the given XML string.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxUtils.evaluate" id=link34 onMouseOver="ShowTip(event, 'tt34', 'link34')" onMouseOut="HideTip('tt34')">evaluate</a></td><td class=SDescription>Evaluates an expression to a class member. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxUtils.findNode" id=link35 onMouseOver="ShowTip(event, 'tt35', 'link35')" onMouseOut="HideTip('tt35')">findNode</a></td><td class=SDescription>Returns the first node where attr equals value. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mxUtils.getTrueTypeFont" id=link36 onMouseOver="ShowTip(event, 'tt36', 'link36')" onMouseOut="HideTip('tt36')">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="#mxUtils.getTrueTypeFontSize" id=link37 onMouseOver="ShowTip(event, 'tt37', 'link37')" onMouseOut="HideTip('tt37')">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="#mxUtils.getFixedFontSize" id=link38 onMouseOver="ShowTip(event, 'tt38', 'link38')" onMouseOut="HideTip('tt38')">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="#mxUtils.stackTrace" id=link39 onMouseOver="ShowTip(event, 'tt39', 'link39')" onMouseOut="HideTip('tt39')">stackTrace</a></td><td class=SDescription>Prints a simple stack trace in the error log.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
|
|
|
|
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="mxUtils.Functions"></a>Functions</h3></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.getLabelSize"></a>getLabelSize</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>static function getLabelSize(</td><td class=PParameter nowrap>$label,</td></tr><tr><td></td><td class=PParameter nowrap>$style</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the size of the given label.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.getLabelPaintBounds"></a>getLabelPaintBounds</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>static function getLabelPaintBounds(</td><td class=PParameter nowrap>$label,</td></tr><tr><td></td><td class=PParameter nowrap>$style,</td></tr><tr><td></td><td class=PParameter nowrap>$isHtml,</td></tr><tr><td></td><td class=PParameter nowrap>$offset,</td></tr><tr><td></td><td class=PParameter nowrap>$vertexBounds,</td></tr><tr><td></td><td class=PParameter nowrap>$scale</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the paint bounds for the given label.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.getScaledLabelBounds"></a>getScaledLabelBounds</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>static function getScaledLabelBounds(</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>$size,</td></tr><tr><td></td><td class=PParameter nowrap>$outerWidth,</td></tr><tr><td></td><td class=PParameter nowrap>$outerHeight,</td></tr><tr><td></td><td class=PParameter nowrap>$style,</td></tr><tr><td></td><td class=PParameter nowrap>$scale</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the bounds for a label for the given location and size, taking into account the alignment and spacing in the specified style, as well as the width and height of the rectangle that contains the label. (For edge labels this width and height is 0.) The scale is used to scale the given size and the spacings in the specified style.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.getSizeForString"></a>getSizeForString</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>static function getSizeForString(</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>$fontSize</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> 0,</td></tr><tr><td></td><td class=PParameter nowrap>$fontFamily</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 an <a href="mxRectangle-php.html#mxRectangle" class=LClass id=link40 onMouseOver="ShowTip(event, 'tt5', 'link40')" onMouseOut="HideTip('tt5')">mxRectangle</a> with the size (width and height in pixels) of the given string. The string may contain HTML markup. Newlines should be converted to <br> before calling this method.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>text</td><td class=CDLDescription>String whose size should be returned.</td></tr><tr><td class=CDLEntry>fontSize</td><td class=CDLDescription>Integer that specifies the font size in pixels. Default is <a href="mxConstants-php.html#mxConstants.DEFAULT_FONTSIZE" class=LVariable id=link41 onMouseOver="ShowTip(event, 'tt40', 'link41')" onMouseOut="HideTip('tt40')">mxConstants.DEFAULT_FONTSIZE</a>.</td></tr><tr><td class=CDLEntry>fontFamily</td><td class=CDLDescription>String that specifies the name of the font famil.y Default is <a href="mxConstants-php.html#mxConstants.DEFAULT_FONTFAMILY" class=LVariable id=link42 onMouseOver="ShowTip(event, 'tt41', 'link42')" onMouseOut="HideTip('tt41')">mxConstants.DEFAULT_FONTFAMILY</a>.</td></tr></table></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.flipImage"></a>flipImage</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>static function flipImage(</td><td class=PParameter nowrap>$img,</td></tr><tr><td></td><td class=PParameter nowrap>$flipH,</td></tr><tr><td></td><td class=PParameter nowrap>$flipV</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Flips the given image horizontally and/or vertically and returns a new image instance.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.toRadians"></a>toRadians</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>static function toRadians(</td><td class=PParameter nowrap>$deg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Converts the given degree to radians.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.getBoundingBox"></a>getBoundingBox</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>static function getBoundingBox(</td><td class=PParameter nowrap>$rect,</td></tr><tr><td></td><td class=PParameter nowrap>$rotation</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the bounding box for the rotated rectangle.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.getRotatedPoint"></a>getRotatedPoint</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>static function getRotatedPoint(</td><td class=PParameter nowrap>$pt,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$cos,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$sin,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$cx</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Rotates the given point by the given cos and sin.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.translatePoints"></a>translatePoints</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>static function translatePoints(</td><td class=PParameter nowrap>$pts,</td></tr><tr><td></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>Creates a new list of new points obtained by translating the points in the given list by the given vector. Elements that are not mxPoints are added to the result as-is.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.contains"></a>contains</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>static function contains(</td><td class=PParameter nowrap>$state,</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>Returns true if the specified point (x, y) is contained in the given rectangle.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bounds</td><td class=CDLDescription><a href="mxRectangle-php.html#mxRectangle" class=LClass id=link43 onMouseOver="ShowTip(event, 'tt5', 'link43')" onMouseOut="HideTip('tt5')">mxRectangle</a> that represents the area.</td></tr><tr><td class=CDLEntry>x</td><td class=CDLDescription>X-coordinate of the point.</td></tr><tr><td class=CDLEntry>y</td><td class=CDLDescription>Y-coordinate of the point.</td></tr></table></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.intersection"></a>intersection</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>static function intersection(</td><td class=PParameter nowrap>$x0,</td></tr><tr><td></td><td class=PParameter nowrap>$y0,</td></tr><tr><td></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>Returns the intersection of two lines as an <a href="mxPoint-php.html#mxPoint" class=LClass id=link44 onMouseOver="ShowTip(event, 'tt13', 'link44')" onMouseOut="HideTip('tt13')">mxPoint</a>.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>x0</td><td class=CDLDescription>X-coordinate of the first line’s startpoint.</td></tr><tr><td class=CDLEntry>y0</td><td class=CDLDescription>X-coordinate of the first line’s startpoint.</td></tr><tr><td class=CDLEntry>x1</td><td class=CDLDescription>X-coordinate of the first line’s endpoint.</td></tr><tr><td class=CDLEntry>y1</td><td class=CDLDescription>Y-coordinate of the first line’s endpoint.</td></tr><tr><td class=CDLEntry>x2</td><td class=CDLDescription>X-coordinate of the second line’s startpoint.</td></tr><tr><td class=CDLEntry>y2</td><td class=CDLDescription>Y-coordinate of the second line’s startpoint.</td></tr><tr><td class=CDLEntry>x3</td><td class=CDLDescription>X-coordinate of the second line’s endpoint.</td></tr><tr><td class=CDLEntry>y3</td><td class=CDLDescription>Y-coordinate of the second line’s endpoint.</td></tr></table></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.encodeImage"></a>encodeImage</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>static function encodeImage(</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>$format</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%>null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Encodes the given image using the GD image encoding routines. Supported formats are gif, jpg and png (default).</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>image</td><td class=CDLDescription>GD image to be encoded.</td></tr><tr><td class=CDLEntry>format</td><td class=CDLDescription>String that defines the encoding format. Default is png.</td></tr></table></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.getStylename"></a>getStylename</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>static function getStylename(</td><td class=PParameter nowrap>$style</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the stylename in a style of the form [stylename;|key=value;] or an empty string if the given style does not contain a stylename.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>style</td><td class=CDLDescription>String of the form [stylename;|key=value;].</td></tr></table></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.getStylenames"></a>getStylenames</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>static function getStylenames(</td><td class=PParameter nowrap>$style</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the stylenames in a style of the form [stylename;|key=value;] or an empty array if the given style does not contain any stylenames.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>style</td><td class=CDLDescription>String of the form [stylename;|key=value;].</td></tr></table></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.indexOfStylename"></a>indexOfStylename</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>static function indexOfStylename(</td><td class=PParameter nowrap>$style,</td></tr><tr><td></td><td class=PParameter nowrap>$stylename</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the index of the given stylename in the given style. This returns -1 if the given stylename does not occur (as a stylename) in the given style, otherwise it returns the index of the first character.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.addStylename"></a>addStylename</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>static function addStylename(</td><td class=PParameter nowrap>$style,</td></tr><tr><td></td><td class=PParameter nowrap>$stylename</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Adds the specified stylename to the given style if it does not already contain the stylename.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.removeStylename"></a>removeStylename</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>static function removeStylename(</td><td class=PParameter nowrap>$style,</td></tr><tr><td></td><td class=PParameter nowrap>$stylename</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Removes all occurrences of the specified stylename in the given style and returns the updated style. Trailing semicolons are preserved.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.removeAllStylenames"></a>removeAllStylenames</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>static function removeAllStylenames(</td><td class=PParameter nowrap>$style</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Removes all stylenames from the given style and returns the updated style.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.setCellStyles"></a>setCellStyles</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>static function setCellStyles(</td><td class=PParameter nowrap>$model,</td></tr><tr><td></td><td class=PParameter nowrap>$cells,</td></tr><tr><td></td><td class=PParameter nowrap>$key,</td></tr><tr><td></td><td class=PParameter nowrap>$value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Assigns the value for the given key in the styles of the given cells, or removes the key from the styles if the value is null.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>model</td><td class=CDLDescription><a href="../model/mxGraphModel-php.html#mxGraphModel" class=LClass id=link45 onMouseOver="ShowTip(event, 'tt42', 'link45')" onMouseOut="HideTip('tt42')">mxGraphModel</a> to execute the transaction in.</td></tr><tr><td class=CDLEntry>cells</td><td class=CDLDescription>Array of <a href="../model/mxCell-php.html#mxCell" class=LClass id=link46 onMouseOver="ShowTip(event, 'tt43', 'link46')" onMouseOut="HideTip('tt43')">mxCells</a> to be updated.</td></tr><tr><td class=CDLEntry>key</td><td class=CDLDescription>Key of the style to be changed.</td></tr><tr><td class=CDLEntry>value</td><td class=CDLDescription>New value for the given key.</td></tr></table></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.setStyle"></a>setStyle</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>static function setStyle(</td><td class=PParameter nowrap>$style,</td></tr><tr><td></td><td class=PParameter nowrap>$key,</td></tr><tr><td></td><td class=PParameter nowrap>$value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Adds or removes the given key, value pair to the style and returns the new style. If value is null or zero length then the key is removed from the style.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>style</td><td class=CDLDescription>String of the form stylename[;key=value]</td></tr><tr><td class=CDLEntry>key</td><td class=CDLDescription>Key of the style to be changed.</td></tr><tr><td class=CDLEntry>value</td><td class=CDLDescription>New value for the given key.</td></tr></table></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.setCellStyleFlags"></a>setCellStyleFlags</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>static function setCellStyleFlags(</td><td class=PParameter nowrap>$model,</td></tr><tr><td></td><td class=PParameter nowrap>$cells,</td></tr><tr><td></td><td class=PParameter nowrap>$key,</td></tr><tr><td></td><td class=PParameter nowrap>$flag,</td></tr><tr><td></td><td class=PParameter nowrap>$value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets or toggles the flag bit for the given key in the cell’s styles. If value is null then the flag is toggled.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint">var cells = graph.getSelectionCells();
|
|
mxUtils.setCellStyleFlags(graph.model,
|
|
cells,
|
|
mxConstants.STYLE_FONTSTYLE,
|
|
mxConstants.FONT_BOLD);</pre></blockquote><p>Toggles the bold font style.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>model</td><td class=CDLDescription><a href="../model/mxGraphModel-php.html#mxGraphModel" class=LClass id=link47 onMouseOver="ShowTip(event, 'tt42', 'link47')" onMouseOut="HideTip('tt42')">mxGraphModel</a> that contains the cells.</td></tr><tr><td class=CDLEntry>cells</td><td class=CDLDescription>Array of <a href="../model/mxCell-php.html#mxCell" class=LClass id=link48 onMouseOver="ShowTip(event, 'tt43', 'link48')" onMouseOut="HideTip('tt43')">mxCells</a> to change the style for.</td></tr><tr><td class=CDLEntry>key</td><td class=CDLDescription>Key of the style to be changed.</td></tr><tr><td class=CDLEntry>flag</td><td class=CDLDescription>Integer for the bit to be changed.</td></tr><tr><td class=CDLEntry>value</td><td class=CDLDescription>Optional boolean value for the flag.</td></tr></table></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.setStyleFlag"></a>setStyleFlag</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>static function setStyleFlag(</td><td class=PParameter nowrap>$style,</td></tr><tr><td></td><td class=PParameter nowrap>$key,</td></tr><tr><td></td><td class=PParameter nowrap>$flag,</td></tr><tr><td></td><td class=PParameter nowrap>$value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets or removes the given key from the specified style and returns the new style. If value is null then the flag is toggled.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>style</td><td class=CDLDescription>String of the form stylename[;key=value].</td></tr><tr><td class=CDLEntry>key</td><td class=CDLDescription>Key of the style to be changed.</td></tr><tr><td class=CDLEntry>flag</td><td class=CDLDescription>Integer for the bit to be changed.</td></tr><tr><td class=CDLEntry>value</td><td class=CDLDescription>Optional boolean value for the given flag.</td></tr></table></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.getValue"></a>getValue</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>static function getValue(</td><td class=PParameter nowrap>$dict,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$key,</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>Returns the value for key in dictionary or the given default value if no value is defined for the key.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>dict</td><td class=CDLDescription>Dictionary that contains the key, value pairs.</td></tr><tr><td class=CDLEntry>key</td><td class=CDLDescription>Key whose value should be returned.</td></tr><tr><td class=CDLEntry>default</td><td class=CDLDescription>Default value to return if the key is undefined. Default is null.</td></tr></table></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.getNumber"></a>getNumber</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>static function getNumber(</td><td class=PParameter nowrap>$dict,</td><td class=PDefaultValuePrefix> </td></tr><tr><td></td><td class=PParameter nowrap>$key,</td><td class=PDefaultValuePrefix> </td></tr><tr><td></td><td class=PParameter nowrap>$default</td><td class=PDefaultValuePrefix> = </td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the value for key in dictionary or 0 if no value is defined for the key.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>dict</td><td class=CDLDescription>Dictionary that contains the key, value pairs.</td></tr><tr><td class=CDLEntry>key</td><td class=CDLDescription>Key whose value should be returned.</td></tr><tr><td class=CDLEntry>default</td><td class=CDLDescription>Optional default value to return if no value is defined for the given key. Default is 0.</td></tr></table></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.indexOf"></a>indexOf</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>static function indexOf(</td><td class=PParameter nowrap>$array,</td></tr><tr><td></td><td class=PParameter nowrap>$object</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the index of obj in array or -1 if the array does not contains the given object.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>array</td><td class=CDLDescription>Array to check for the given obj.</td></tr><tr><td class=CDLEntry>obj</td><td class=CDLDescription>Object to find in the given array.</td></tr></table></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.readFile"></a>readFile</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>static function readFile(</td><td class=PParameter nowrap>$filename</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Reads the given filename into a string. Shortcut for file_get_contents.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>filename</td><td class=CDLDescription>The name of the file to read.</td></tr></table></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.isNode"></a>isNode</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>static function isNode(</td><td class=PParameter nowrap>$value,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$nodeName</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$attributeName</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$attributeValue</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 true if the given value is an XML node with the node name and if the optional attribute has the specified value.</p><p>This implementation assumes that the given value is a DOM node if the nodeName property is not null.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>value</td><td class=CDLDescription>Object that should be examined as a node.</td></tr><tr><td class=CDLEntry>nodeName</td><td class=CDLDescription>String that specifies the node name.</td></tr><tr><td class=CDLEntry>attributeName</td><td class=CDLDescription>Optional attribute name to check.</td></tr><tr><td class=CDLEntry>attributeValue</td><td class=CDLDescription>Optional attribute value to check.</td></tr></table></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.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>static function loadImage(</td><td class=PParameter nowrap>$url</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Loads an image from the local filesystem, a data URI or any other URL.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.createXmlDocument"></a>createXmlDocument</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>static function createXmlDocument()</td></tr></table></blockquote><p>Returns a new, empty XML document.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.loadXmlDocument"></a>loadXmlDocument</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>static function loadXmlDocument(</td><td class=PParameter nowrap>$uri</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns a new DOM document for the given URI.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.parseXml"></a>parseXml</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>static function parseXml(</td><td class=PParameter nowrap>$xml</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns a new DOM document for the given XML string.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.evaluate"></a>evaluate</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>static function evaluate(</td><td class=PParameter nowrap>$expression</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Evaluates an expression to a class member. The range of supported expressions is limited to static class members with a dot-notation, such as mxEdgeStyle.ElbowConnector.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.findNode"></a>findNode</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>static function findNode(</td><td class=PParameter nowrap>$node,</td></tr><tr><td></td><td class=PParameter nowrap>$attr,</td></tr><tr><td></td><td class=PParameter nowrap>$value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the first node where attr equals value. This implementation does not use XPath.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxUtils.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>static 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="mxUtils.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>static function getTrueTypeFontSize(</td><td class=PParameter nowrap>$size</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="mxUtils.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>static 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="mxUtils.stackTrace"></a>stackTrace</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>static function stackTrace()</td></tr></table></blockquote><p>Prints a simple stack trace in the error log.</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><a href="../canvas/mxGdCanvas-php.html">canvas/<wbr>mxGdCanvas.php</a></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="../canvas/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="mxConstants-php.html">mxConstants</a></div></div><div class=MEntry><div class=MFile><a href="mxEvent-php.html">mxEvent</a></div></div><div class=MEntry><div class=MFile><a href="mxEventObject-php.html">mxEventObject</a></div></div><div class=MEntry><div class=MFile><a href="mxEventSource-php.html">mxEventSource</a></div></div><div class=MEntry><div class=MFile><a href="mxImageBundle-php.html">mxImageBundle</a></div></div><div class=MEntry><div class=MFile><a href="mxLog-php.html">mxLog</a></div></div><div class=MEntry><div class=MFile><a href="mxPoint-php.html">mxPoint</a></div></div><div class=MEntry><div class=MFile><a href="mxRectangle-php.html">mxRectangle</a></div></div><div class=MEntry><div class=MFile id=MSelected>mxUtils</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/Classes.html">Classes</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/General.html">Everything</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([3, 4], 6);// --></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><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>static function getLabelSize(</td><td class=PParameter nowrap>$label,</td></tr><tr><td></td><td class=PParameter nowrap>$style</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the size of the given label.</div></div><div class=CToolTip id="tt2"><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>static function getLabelPaintBounds(</td><td class=PParameter nowrap>$label,</td></tr><tr><td></td><td class=PParameter nowrap>$style,</td></tr><tr><td></td><td class=PParameter nowrap>$isHtml,</td></tr><tr><td></td><td class=PParameter nowrap>$offset,</td></tr><tr><td></td><td class=PParameter nowrap>$vertexBounds,</td></tr><tr><td></td><td class=PParameter nowrap>$scale</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the paint bounds for the given label.</div></div><div class=CToolTip id="tt3"><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>static function getScaledLabelBounds(</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>$size,</td></tr><tr><td></td><td class=PParameter nowrap>$outerWidth,</td></tr><tr><td></td><td class=PParameter nowrap>$outerHeight,</td></tr><tr><td></td><td class=PParameter nowrap>$style,</td></tr><tr><td></td><td class=PParameter nowrap>$scale</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the bounds for a label for the given location and size, taking into account the alignment and spacing in the specified style, as well as the width and height of the rectangle that contains the label. </div></div><div class=CToolTip id="tt4"><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>static function getSizeForString(</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>$fontSize</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> 0,</td></tr><tr><td></td><td class=PParameter nowrap>$fontFamily</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns an mxRectangle with the size (width and height in pixels) of the given string. </div></div><div class=CToolTip id="tt5"><div class=CClass>Implements a 2-dimensional rectangle with double precision coordinates.</div></div><div class=CToolTip id="tt6"><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>static function flipImage(</td><td class=PParameter nowrap>$img,</td></tr><tr><td></td><td class=PParameter nowrap>$flipH,</td></tr><tr><td></td><td class=PParameter nowrap>$flipV</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Flips the given image horizontally and/or vertically and returns a new image instance.</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>static function toRadians(</td><td class=PParameter nowrap>$deg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Converts the given degree to radians.</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>static function getBoundingBox(</td><td class=PParameter nowrap>$rect,</td></tr><tr><td></td><td class=PParameter nowrap>$rotation</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the bounding box for the rotated rectangle.</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>static function getRotatedPoint(</td><td class=PParameter nowrap>$pt,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$cos,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$sin,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$cx</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Rotates the given point by the given cos and sin.</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>static function translatePoints(</td><td class=PParameter nowrap>$pts,</td></tr><tr><td></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>Creates a new list of new points obtained by translating the points in the given list by the given vector. </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>static function contains(</td><td class=PParameter nowrap>$state,</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>Returns true if the specified point (x, y) is contained in the given rectangle.</div></div><div class=CToolTip id="tt12"><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>static function intersection(</td><td class=PParameter nowrap>$x0,</td></tr><tr><td></td><td class=PParameter nowrap>$y0,</td></tr><tr><td></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>Returns the intersection of two lines as an mxPoint.</div></div><div class=CToolTip id="tt13"><div class=CClass>Implements a 2-dimensional point with double precision coordinates.</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>static function encodeImage(</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>$format</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%>null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Encodes the given image using the GD image encoding routines. </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>static function getStylename(</td><td class=PParameter nowrap>$style</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the stylename in a style of the form [stylename;|key=value;] or an empty string if the given style does not contain a stylename.</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>static function getStylenames(</td><td class=PParameter nowrap>$style</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the stylenames in a style of the form [stylename;|key=value;] or an empty array if the given style does not contain any stylenames.</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>static function indexOfStylename(</td><td class=PParameter nowrap>$style,</td></tr><tr><td></td><td class=PParameter nowrap>$stylename</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the index of the given stylename in the given style. </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>static function addStylename(</td><td class=PParameter nowrap>$style,</td></tr><tr><td></td><td class=PParameter nowrap>$stylename</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Adds the specified stylename to the given style if it does not already contain the stylename.</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>static function removeStylename(</td><td class=PParameter nowrap>$style,</td></tr><tr><td></td><td class=PParameter nowrap>$stylename</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Removes all occurrences of the specified stylename in the given style and returns the updated style. </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>static function removeAllStylenames(</td><td class=PParameter nowrap>$style</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Removes all stylenames from the given style and returns the updated style.</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>static function setCellStyles(</td><td class=PParameter nowrap>$model,</td></tr><tr><td></td><td class=PParameter nowrap>$cells,</td></tr><tr><td></td><td class=PParameter nowrap>$key,</td></tr><tr><td></td><td class=PParameter nowrap>$value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Assigns the value for the given key in the styles of the given cells, or removes the key from the styles if the value is null.</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>static function setStyle(</td><td class=PParameter nowrap>$style,</td></tr><tr><td></td><td class=PParameter nowrap>$key,</td></tr><tr><td></td><td class=PParameter nowrap>$value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Adds or removes the given key, value pair to the style and returns the new style. </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>static function setCellStyleFlags(</td><td class=PParameter nowrap>$model,</td></tr><tr><td></td><td class=PParameter nowrap>$cells,</td></tr><tr><td></td><td class=PParameter nowrap>$key,</td></tr><tr><td></td><td class=PParameter nowrap>$flag,</td></tr><tr><td></td><td class=PParameter nowrap>$value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Sets or toggles the flag bit for the given key in the cell’s styles. </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>static function setStyleFlag(</td><td class=PParameter nowrap>$style,</td></tr><tr><td></td><td class=PParameter nowrap>$key,</td></tr><tr><td></td><td class=PParameter nowrap>$flag,</td></tr><tr><td></td><td class=PParameter nowrap>$value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Sets or removes the given key from the specified style and returns the new style. </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>static function getValue(</td><td class=PParameter nowrap>$dict,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$key,</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>Returns the value for key in dictionary or the given default value if no value is defined for the key.</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>static function getNumber(</td><td class=PParameter nowrap>$dict,</td><td class=PDefaultValuePrefix> </td></tr><tr><td></td><td class=PParameter nowrap>$key,</td><td class=PDefaultValuePrefix> </td></tr><tr><td></td><td class=PParameter nowrap>$default</td><td class=PDefaultValuePrefix> = </td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the value for key in dictionary or 0 if no value is defined for the key.</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>static function indexOf(</td><td class=PParameter nowrap>$array,</td></tr><tr><td></td><td class=PParameter nowrap>$object</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the index of obj in array or -1 if the array does not contains the given object.</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>static function readFile(</td><td class=PParameter nowrap>$filename</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Reads the given filename into a string. </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>static function isNode(</td><td class=PParameter nowrap>$value,</td><td class=PDefaultValuePrefix> </td><td class=PDefaultValue width=100%></td></tr><tr><td></td><td class=PParameter nowrap>$nodeName</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$attributeName</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null,</td></tr><tr><td></td><td class=PParameter nowrap>$attributeValue</td><td class=PDefaultValuePrefix> = </td><td class=PDefaultValue width=100%> null</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns true if the given value is an XML node with the node name and if the optional attribute has the specified value.</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>static function loadImage(</td><td class=PParameter nowrap>$url</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Loads an image from the local filesystem, a data URI or any other URL.</div></div><div class=CToolTip id="tt31"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>static function createXmlDocument()</td></tr></table></blockquote>Returns a new, empty XML document.</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>static function loadXmlDocument(</td><td class=PParameter nowrap>$uri</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns a new DOM document for the given URI.</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>static function parseXml(</td><td class=PParameter nowrap>$xml</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns a new DOM document for the given XML string.</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>static function evaluate(</td><td class=PParameter nowrap>$expression</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Evaluates an expression to a class member. </div></div><div class=CToolTip id="tt35"><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>static function findNode(</td><td class=PParameter nowrap>$node,</td></tr><tr><td></td><td class=PParameter nowrap>$attr,</td></tr><tr><td></td><td class=PParameter nowrap>$value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the first node where attr equals value. </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>static 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="tt37"><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>static function getTrueTypeFontSize(</td><td class=PParameter nowrap>$size</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="tt38"><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>static 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="tt39"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>static function stackTrace()</td></tr></table></blockquote>Prints a simple stack trace in the error log.</div></div><div class=CToolTip id="tt40"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>public static $DEFAULT_FONTSIZE</td></tr></table></blockquote>Defines the default size for all fonts in points. </div></div><div class=CToolTip id="tt41"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>public static $DEFAULT_FONTFAMILY</td></tr></table></blockquote>Defines the default family for all truetype fonts. </div></div><div class=CToolTip id="tt42"><div class=CClass>Cells are the elements of the graph model. </div></div><div class=CToolTip id="tt43"><div class=CClass>Cells are the elements of the graph model. </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> |