<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>
<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>
<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>
<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>
<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>
<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,
<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,
<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>
<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>
<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>
<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,
<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,
<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> dir)</code>
<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>
<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>
<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>
<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>
<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">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>
<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 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>
<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 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>
<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,
<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
<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,
<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,
<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> dir)</pre>