<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> src,
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/canvas/mxICanvas2D.html#setDashPattern(java.lang.String)">setDashPattern</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> value)</code>
<divclass="block">Sets the dash pattern.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/canvas/mxICanvas2D.html#setFillColor(java.lang.String)">setFillColor</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> value)</code>
<divclass="block">Default value <ahref="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontBackgroundColor(java.lang.String)">setFontBackgroundColor</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> value)</code>
<divclass="block">Default value "#000000".</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontBorderColor(java.lang.String)">setFontBorderColor</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> value)</code>
<divclass="block">Default value "#000000".</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontColor(java.lang.String)">setFontColor</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> value)</code>
<divclass="block">Default value "#000000".</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontFamily(java.lang.String)">setFontFamily</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> value)</code>
<divclass="block">Default value <ahref="../../../com/mxgraph/util/mxConstants.html#DEFAULT_FONTFAMILY"><code>mxConstants.DEFAULT_FONTFAMILY</code></a>.</div>
<divclass="block">Default value <ahref="../../../com/mxgraph/util/mxConstants.html#DEFAULT_FONTSIZE"><code>mxConstants.DEFAULT_FONTSIZE</code></a>.</div>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/canvas/mxICanvas2D.html#setGradient(java.lang.String, java.lang.String, double, double, double, double, java.lang.String, double, double)">setGradient</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> color1,
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> color2,
double x,
double y,
double w,
double h,
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> direction,
double alpha1,
double alpha2)</code>
<divclass="block">Prepares the canvas to draw a gradient.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/canvas/mxICanvas2D.html#setLineCap(java.lang.String)">setLineCap</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> value)</code>
<divclass="block">Sets the linecap.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/canvas/mxICanvas2D.html#setLineJoin(java.lang.String)">setLineJoin</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> value)</code>
<divclass="block">Default value <ahref="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/canvas/mxICanvas2D.html#setShadowColor(java.lang.String)">setShadowColor</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> value)</code>
<divclass="block">Default value <ahref="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
<divclass="block">Default value <ahref="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/canvas/mxICanvas2D.html#setStrokeColor(java.lang.String)">setStrokeColor</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> value)</code>
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> str,
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> align,
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> valign,
boolean wrap,
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> format,
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> overflow,
<divclass="block">Saves the current state of the canvas.</div>
</li>
</ul>
<aname="restore()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>restore</h4>
<pre>void restore()</pre>
<divclass="block">Restores the previous state of the canvas.</div>
</li>
</ul>
<aname="scale(double)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>scale</h4>
<pre>void scale(double value)</pre>
<divclass="block">Uniformaly scales the canvas by the given amount.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - The new scale value.</dd></dl>
</li>
</ul>
<aname="translate(double, double)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>translate</h4>
<pre>void translate(double dx,
double dy)</pre>
<divclass="block">Translates the canvas by the given amount.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>dx</code> - X-coordinate of the translation.</dd><dd><code>dy</code> - Y-coordinate of the translation.</dd></dl>
<divclass="block">Rotates the canvas by the given angle around the given center. This
method may add rendering overhead and should be used with care.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>theta</code> - Rotation angle in degrees (0 - 360).</dd><dd><code>flipH</code> - Specifies if drawing should be flipped horizontally.</dd><dd><code>flipV</code> - Specifies if drawing should be flipped vertically.</dd><dd><code>cx</code> - X-coordinate of the center point.</dd><dd><code>cy</code> - Y-coordinate of the center point.</dd></dl>
<divclass="block">Sets the stroke width. This should default to 1 if unset.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - Width of the stroke. The value should be multiplied by the
current scale.</dd></dl>
</li>
</ul>
<aname="setStrokeColor(java.lang.String)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>setStrokeColor</h4>
<pre>void setStrokeColor(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> value)</pre>
<divclass="block">Sets the stroke color. This should default to <ahref="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>
if unset.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - Hex representation of the color or <ahref="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd></dl>
<divclass="block">Sets the dashed state. This should default to false if unset.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - Boolean representing the dashed state.</dd></dl>
</li>
</ul>
<aname="setDashPattern(java.lang.String)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>setDashPattern</h4>
<pre>void setDashPattern(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> value)</pre>
<divclass="block">Sets the dash pattern. This should default to "3 3" if unset.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - Space separated list of floats representing the dash
pattern. The value should be multiplied by the current scale.</dd></dl>
</li>
</ul>
<aname="setLineCap(java.lang.String)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>setLineCap</h4>
<pre>void setLineCap(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> value)</pre>
<divclass="block">Sets the linecap. This should default to "flat" if unset.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - "flat", "square" or "round".</dd></dl>
</li>
</ul>
<aname="setLineJoin(java.lang.String)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>setLineJoin</h4>
<pre>void setLineJoin(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> value)</pre>
<divclass="block">Sets the linejoin. This should default to "miter" if unset.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - "miter", "round" or "bevel".</dd></dl>
<divclass="block">Default value <ahref="../../../com/mxgraph/util/mxConstants.html#DEFAULT_FONTSIZE"><code>mxConstants.DEFAULT_FONTSIZE</code></a>.</div>
<pre>void setFontColor(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> value)</pre>
<divclass="block">Default value "#000000".</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - Hex representation of the color or <ahref="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd></dl>
</li>
</ul>
<aname="setFontFamily(java.lang.String)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>setFontFamily</h4>
<pre>void setFontFamily(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> value)</pre>
<divclass="block">Default value <ahref="../../../com/mxgraph/util/mxConstants.html#DEFAULT_FONTFAMILY"><code>mxConstants.DEFAULT_FONTFAMILY</code></a>.</div>
<divclass="block">Default value 0. See <ahref="../../../com/mxgraph/util/mxConstants.html#STYLE_FONTSTYLE"><code>mxConstants.STYLE_FONTSTYLE</code></a>.</div>
<pre>void setFontBackgroundColor(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> value)</pre>
<divclass="block">Default value "#000000".</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - Hex representation of the color or <ahref="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd></dl>
</li>
</ul>
<aname="setFontBorderColor(java.lang.String)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>setFontBorderColor</h4>
<pre>void setFontBorderColor(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> value)</pre>
<divclass="block">Default value "#000000".</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - Hex representation of the color or <ahref="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd></dl>
</li>
</ul>
<aname="setAlpha(double)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>setAlpha</h4>
<pre>void setAlpha(double value)</pre>
<divclass="block">Default value 1. This method may add rendering overhead and should be
<pre>void setFillColor(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> value)</pre>
<divclass="block">Default value <ahref="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - Hex representation of the color or <ahref="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd></dl>
<pre>void setGradient(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> color1,
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> color2,
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> direction,
double alpha1,
double alpha2)</pre>
<divclass="block">Prepares the canvas to draw a gradient.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>color1</code> - </dd><dd><code>color2</code> - </dd><dd><code>x</code> - </dd><dd><code>y</code> - </dd><dd><code>w</code> - </dd><dd><code>h</code> - </dd><dd><code>direction</code> - Direction may be null. Use default value
<divclass="block">Enables or disables the painting of shadows.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>enabled</code> - Whether the shadow should be enabled.</dd></dl>
</li>
</ul>
<aname="setShadowColor(java.lang.String)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>setShadowColor</h4>
<pre>void setShadowColor(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> value)</pre>
<divclass="block">Default value <ahref="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - Hex representation of the color or <ahref="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd></dl>
<divclass="block">Default value <ahref="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - Hex representation of the color or <ahref="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd></dl>
</li>
</ul>
<aname="setShadowOffset(double, double)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>setShadowOffset</h4>
<pre>void setShadowOffset(double dx,
double dy)</pre>
<divclass="block">Default value <ahref="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - Hex representation of the color or <ahref="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd></dl>
</li>
</ul>
<aname="rect(double, double, double, double)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>rect</h4>
<pre>void rect(double x,
double y,
double w,
double h)</pre>
<divclass="block">Next fill or stroke should draw a rectangle.</div>
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> src,
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> str,
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> align,
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> valign,
boolean wrap,
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> format,
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> overflow,
boolean clip,
double rotation)</pre>
<divclass="block">Draws the given string. Possible values for format are empty string for