983 lines
43 KiB
HTML
983 lines
43 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!-- NewPage -->
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc (version 1.7.0_51) on Mon Jun 02 05:17:23 EDT 2014 -->
|
|
<title>mxICanvas2D (mxGraph 2.8.1.0 API Specification)</title>
|
|
<meta name="date" content="2014-06-02">
|
|
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="mxICanvas2D (mxGraph 2.8.1.0 API Specification)";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a name="navbar_top">
|
|
<!-- -->
|
|
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="class-use/mxICanvas2D.html">Use</a></li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../index-all.html">Index</a></li>
|
|
<li><a href="../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
<div class="aboutLanguage"><em><p><b>mxGraph 2.8.1.0</b></p></em></div>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../com/mxgraph/canvas/mxICanvas.html" title="interface in com.mxgraph.canvas"><span class="strong">Prev Class</span></a></li>
|
|
<li><a href="../../../com/mxgraph/canvas/mxImageCanvas.html" title="class in com.mxgraph.canvas"><span class="strong">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../index.html?com/mxgraph/canvas/mxICanvas2D.html" target="_top">Frames</a></li>
|
|
<li><a href="mxICanvas2D.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method_summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method_detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip-navbar_top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<div class="header">
|
|
<div class="subTitle">com.mxgraph.canvas</div>
|
|
<h2 title="Interface mxICanvas2D" class="title">Interface mxICanvas2D</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<dl>
|
|
<dt>All Known Implementing Classes:</dt>
|
|
<dd><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html" title="class in com.mxgraph.canvas">mxGraphicsCanvas2D</a></dd>
|
|
</dl>
|
|
<hr>
|
|
<br>
|
|
<pre>public interface <span class="strong">mxICanvas2D</span></pre>
|
|
<div class="block">Requirements for implementing technologies:
|
|
|
|
- Path rendering (move, line, quad, curve, arc)
|
|
- Images, flip v/h, aspect, alpha (PNG, JPG, GIF)
|
|
- Linear gradients (in all four directions)
|
|
- Transparency, fill and stroke
|
|
- Rotation, flip v/h
|
|
- Font rendering
|
|
- Dash patterns
|
|
- Clipping by path (not just rectangle)
|
|
- Alpha gradients (for glass effect)
|
|
- Encode result as image (PNG, JPG)</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method_summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
|
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Method and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#begin()">begin</a></strong>()</code>
|
|
<div class="block">Begins a new path.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#close()">close</a></strong>()</code>
|
|
<div class="block">Closes the current path.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#curveTo(double, double, double, double, double, double)">curveTo</a></strong>(double x1,
|
|
double y1,
|
|
double x2,
|
|
double y2,
|
|
double x3,
|
|
double y3)</code>
|
|
<div class="block">Draws a bezier curve to the given point.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#ellipse(double, double, double, double)">ellipse</a></strong>(double x,
|
|
double y,
|
|
double w,
|
|
double h)</code>
|
|
<div class="block">Next fill or stroke should draw an ellipse.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#fill()">fill</a></strong>()</code>
|
|
<div class="block">Fills the current path.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#fillAndStroke()">fillAndStroke</a></strong>()</code>
|
|
<div class="block">Fills and paints the outline of the current path.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#image(double, double, double, double, java.lang.String, boolean, boolean, boolean)">image</a></strong>(double x,
|
|
double y,
|
|
double w,
|
|
double h,
|
|
<a href="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,
|
|
boolean aspect,
|
|
boolean flipH,
|
|
boolean flipV)</code>
|
|
<div class="block">Draws the given image.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#lineTo(double, double)">lineTo</a></strong>(double x,
|
|
double y)</code>
|
|
<div class="block">Draws a line to the given path.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#moveTo(double, double)">moveTo</a></strong>(double x,
|
|
double y)</code>
|
|
<div class="block">Moves to the given path.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#quadTo(double, double, double, double)">quadTo</a></strong>(double x1,
|
|
double y1,
|
|
double x2,
|
|
double y2)</code>
|
|
<div class="block">Draws a quadratic curve to the given point.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#rect(double, double, double, double)">rect</a></strong>(double x,
|
|
double y,
|
|
double w,
|
|
double h)</code>
|
|
<div class="block">Next fill or stroke should draw a rectangle.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#restore()">restore</a></strong>()</code>
|
|
<div class="block">Restores the previous state of the canvas.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#rotate(double, boolean, boolean, double, double)">rotate</a></strong>(double theta,
|
|
boolean flipH,
|
|
boolean flipV,
|
|
double cx,
|
|
double cy)</code>
|
|
<div class="block">Rotates the canvas by the given angle around the given center.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#roundrect(double, double, double, double, double, double)">roundrect</a></strong>(double x,
|
|
double y,
|
|
double w,
|
|
double h,
|
|
double dx,
|
|
double dy)</code>
|
|
<div class="block">Next fill or stroke should draw a round rectangle.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#save()">save</a></strong>()</code>
|
|
<div class="block">Saves the current state of the canvas.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#scale(double)">scale</a></strong>(double value)</code>
|
|
<div class="block">Uniformaly scales the canvas by the given amount.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setAlpha(double)">setAlpha</a></strong>(double value)</code>
|
|
<div class="block">Default value 1.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setDashed(boolean)">setDashed</a></strong>(boolean value)</code>
|
|
<div class="block">Sets the dashed state.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setDashPattern(java.lang.String)">setDashPattern</a></strong>(<a href="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>
|
|
<div class="block">Sets the dash pattern.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setFillColor(java.lang.String)">setFillColor</a></strong>(<a href="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>
|
|
<div class="block">Default value <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontBackgroundColor(java.lang.String)">setFontBackgroundColor</a></strong>(<a href="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>
|
|
<div class="block">Default value "#000000".</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontBorderColor(java.lang.String)">setFontBorderColor</a></strong>(<a href="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>
|
|
<div class="block">Default value "#000000".</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontColor(java.lang.String)">setFontColor</a></strong>(<a href="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>
|
|
<div class="block">Default value "#000000".</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontFamily(java.lang.String)">setFontFamily</a></strong>(<a href="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>
|
|
<div class="block">Default value <a href="../../../com/mxgraph/util/mxConstants.html#DEFAULT_FONTFAMILY"><code>mxConstants.DEFAULT_FONTFAMILY</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontSize(double)">setFontSize</a></strong>(double value)</code>
|
|
<div class="block">Default value <a href="../../../com/mxgraph/util/mxConstants.html#DEFAULT_FONTSIZE"><code>mxConstants.DEFAULT_FONTSIZE</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontStyle(int)">setFontStyle</a></strong>(int value)</code>
|
|
<div class="block">Default value 0.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setGradient(java.lang.String, java.lang.String, double, double, double, double, java.lang.String, double, double)">setGradient</a></strong>(<a href="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,
|
|
<a href="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,
|
|
<a href="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>
|
|
<div class="block">Prepares the canvas to draw a gradient.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setLineCap(java.lang.String)">setLineCap</a></strong>(<a href="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>
|
|
<div class="block">Sets the linecap.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setLineJoin(java.lang.String)">setLineJoin</a></strong>(<a href="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>
|
|
<div class="block">Sets the linejoin.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setMiterLimit(double)">setMiterLimit</a></strong>(double value)</code>
|
|
<div class="block">Sets the miterlimit.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setShadow(boolean)">setShadow</a></strong>(boolean enabled)</code>
|
|
<div class="block">Enables or disables the painting of shadows.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setShadowAlpha(double)">setShadowAlpha</a></strong>(double value)</code>
|
|
<div class="block">Default value <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setShadowColor(java.lang.String)">setShadowColor</a></strong>(<a href="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>
|
|
<div class="block">Default value <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setShadowOffset(double, double)">setShadowOffset</a></strong>(double dx,
|
|
double dy)</code>
|
|
<div class="block">Default value <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setStrokeColor(java.lang.String)">setStrokeColor</a></strong>(<a href="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>
|
|
<div class="block">Sets the stroke color.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setStrokeWidth(double)">setStrokeWidth</a></strong>(double value)</code>
|
|
<div class="block">Sets the stroke width.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#stroke()">stroke</a></strong>()</code>
|
|
<div class="block">Paints the outline of the current path.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#text(double, double, double, double, java.lang.String, java.lang.String, java.lang.String, boolean, java.lang.String, java.lang.String, boolean, double)">text</a></strong>(double x,
|
|
double y,
|
|
double w,
|
|
double h,
|
|
<a href="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,
|
|
<a href="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,
|
|
<a href="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,
|
|
<a href="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,
|
|
<a href="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)</code>
|
|
<div class="block">Draws the given string.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#translate(double, double)">translate</a></strong>(double dx,
|
|
double dy)</code>
|
|
<div class="block">Translates the canvas by the given amount.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method_detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a name="save()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>save</h4>
|
|
<pre>void save()</pre>
|
|
<div class="block">Saves the current state of the canvas.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="restore()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>restore</h4>
|
|
<pre>void restore()</pre>
|
|
<div class="block">Restores the previous state of the canvas.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="scale(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>scale</h4>
|
|
<pre>void scale(double value)</pre>
|
|
<div class="block">Uniformaly scales the canvas by the given amount.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - The new scale value.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="translate(double, double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>translate</h4>
|
|
<pre>void translate(double dx,
|
|
double dy)</pre>
|
|
<div class="block">Translates the canvas by the given amount.</div>
|
|
<dl><dt><span class="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>
|
|
</li>
|
|
</ul>
|
|
<a name="rotate(double, boolean, boolean, double, double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>rotate</h4>
|
|
<pre>void rotate(double theta,
|
|
boolean flipH,
|
|
boolean flipV,
|
|
double cx,
|
|
double cy)</pre>
|
|
<div class="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><span class="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>
|
|
</li>
|
|
</ul>
|
|
<a name="setStrokeWidth(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setStrokeWidth</h4>
|
|
<pre>void setStrokeWidth(double value)</pre>
|
|
<div class="block">Sets the stroke width. This should default to 1 if unset.</div>
|
|
<dl><dt><span class="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>
|
|
<a name="setStrokeColor(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setStrokeColor</h4>
|
|
<pre>void setStrokeColor(<a href="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>
|
|
<div class="block">Sets the stroke color. This should default to <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>
|
|
if unset.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - Hex representation of the color or <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setDashed(boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setDashed</h4>
|
|
<pre>void setDashed(boolean value)</pre>
|
|
<div class="block">Sets the dashed state. This should default to false if unset.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - Boolean representing the dashed state.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setDashPattern(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setDashPattern</h4>
|
|
<pre>void setDashPattern(<a href="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>
|
|
<div class="block">Sets the dash pattern. This should default to "3 3" if unset.</div>
|
|
<dl><dt><span class="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>
|
|
<a name="setLineCap(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setLineCap</h4>
|
|
<pre>void setLineCap(<a href="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>
|
|
<div class="block">Sets the linecap. This should default to "flat" if unset.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - "flat", "square" or "round".</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setLineJoin(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setLineJoin</h4>
|
|
<pre>void setLineJoin(<a href="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>
|
|
<div class="block">Sets the linejoin. This should default to "miter" if unset.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - "miter", "round" or "bevel".</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setMiterLimit(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setMiterLimit</h4>
|
|
<pre>void setMiterLimit(double value)</pre>
|
|
<div class="block">Sets the miterlimit. This should default to 10 if unset.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - </dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setFontSize(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setFontSize</h4>
|
|
<pre>void setFontSize(double value)</pre>
|
|
<div class="block">Default value <a href="../../../com/mxgraph/util/mxConstants.html#DEFAULT_FONTSIZE"><code>mxConstants.DEFAULT_FONTSIZE</code></a>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - </dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setFontColor(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setFontColor</h4>
|
|
<pre>void setFontColor(<a href="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>
|
|
<div class="block">Default value "#000000".</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - Hex representation of the color or <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setFontFamily(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setFontFamily</h4>
|
|
<pre>void setFontFamily(<a href="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>
|
|
<div class="block">Default value <a href="../../../com/mxgraph/util/mxConstants.html#DEFAULT_FONTFAMILY"><code>mxConstants.DEFAULT_FONTFAMILY</code></a>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - </dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setFontStyle(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setFontStyle</h4>
|
|
<pre>void setFontStyle(int value)</pre>
|
|
<div class="block">Default value 0. See <a href="../../../com/mxgraph/util/mxConstants.html#STYLE_FONTSTYLE"><code>mxConstants.STYLE_FONTSTYLE</code></a>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - </dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setFontBackgroundColor(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setFontBackgroundColor</h4>
|
|
<pre>void setFontBackgroundColor(<a href="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>
|
|
<div class="block">Default value "#000000".</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - Hex representation of the color or <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setFontBorderColor(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setFontBorderColor</h4>
|
|
<pre>void setFontBorderColor(<a href="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>
|
|
<div class="block">Default value "#000000".</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - Hex representation of the color or <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setAlpha(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setAlpha</h4>
|
|
<pre>void setAlpha(double value)</pre>
|
|
<div class="block">Default value 1. This method may add rendering overhead and should be
|
|
used with care.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - </dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setFillColor(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setFillColor</h4>
|
|
<pre>void setFillColor(<a href="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>
|
|
<div class="block">Default value <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - Hex representation of the color or <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setGradient(java.lang.String, java.lang.String, double, double, double, double, java.lang.String, double, double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setGradient</h4>
|
|
<pre>void setGradient(<a href="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,
|
|
<a href="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,
|
|
<a href="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>
|
|
<div class="block">Prepares the canvas to draw a gradient.</div>
|
|
<dl><dt><span class="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
|
|
<a href="../../../com/mxgraph/util/mxConstants.html#DIRECTION_SOUTH"><code>mxConstants.DIRECTION_SOUTH</code></a>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setShadow(boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setShadow</h4>
|
|
<pre>void setShadow(boolean enabled)</pre>
|
|
<div class="block">Enables or disables the painting of shadows.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>enabled</code> - Whether the shadow should be enabled.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setShadowColor(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setShadowColor</h4>
|
|
<pre>void setShadowColor(<a href="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>
|
|
<div class="block">Default value <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - Hex representation of the color or <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setShadowAlpha(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setShadowAlpha</h4>
|
|
<pre>void setShadowAlpha(double value)</pre>
|
|
<div class="block">Default value <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - Hex representation of the color or <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setShadowOffset(double, double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setShadowOffset</h4>
|
|
<pre>void setShadowOffset(double dx,
|
|
double dy)</pre>
|
|
<div class="block">Default value <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - Hex representation of the color or <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="rect(double, double, double, double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>rect</h4>
|
|
<pre>void rect(double x,
|
|
double y,
|
|
double w,
|
|
double h)</pre>
|
|
<div class="block">Next fill or stroke should draw a rectangle.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - </dd><dd><code>y</code> - </dd><dd><code>w</code> - </dd><dd><code>h</code> - </dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="roundrect(double, double, double, double, double, double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>roundrect</h4>
|
|
<pre>void roundrect(double x,
|
|
double y,
|
|
double w,
|
|
double h,
|
|
double dx,
|
|
double dy)</pre>
|
|
<div class="block">Next fill or stroke should draw a round rectangle.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - </dd><dd><code>y</code> - </dd><dd><code>w</code> - </dd><dd><code>h</code> - </dd><dd><code>dx</code> - </dd><dd><code>dy</code> - </dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="ellipse(double, double, double, double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>ellipse</h4>
|
|
<pre>void ellipse(double x,
|
|
double y,
|
|
double w,
|
|
double h)</pre>
|
|
<div class="block">Next fill or stroke should draw an ellipse.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - </dd><dd><code>y</code> - </dd><dd><code>w</code> - </dd><dd><code>h</code> - </dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="image(double, double, double, double, java.lang.String, boolean, boolean, boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>image</h4>
|
|
<pre>void image(double x,
|
|
double y,
|
|
double w,
|
|
double h,
|
|
<a href="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,
|
|
boolean aspect,
|
|
boolean flipH,
|
|
boolean flipV)</pre>
|
|
<div class="block">Draws the given image.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - </dd><dd><code>y</code> - </dd><dd><code>w</code> - </dd><dd><code>h</code> - </dd><dd><code>src</code> - </dd><dd><code>aspect</code> - </dd><dd><code>flipH</code> - </dd><dd><code>flipV</code> - </dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="text(double, double, double, double, java.lang.String, java.lang.String, java.lang.String, boolean, java.lang.String, java.lang.String, boolean, double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>text</h4>
|
|
<pre>void text(double x,
|
|
double y,
|
|
double w,
|
|
double h,
|
|
<a href="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,
|
|
<a href="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,
|
|
<a href="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,
|
|
<a href="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,
|
|
<a href="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>
|
|
<div class="block">Draws the given string. Possible values for format are empty string for
|
|
plain text and html for HTML markup.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - </dd><dd><code>y</code> - </dd><dd><code>w</code> - </dd><dd><code>h</code> - </dd><dd><code>str</code> - </dd><dd><code>align</code> - </dd><dd><code>valign</code> - </dd><dd><code>vertical</code> - </dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="begin()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>begin</h4>
|
|
<pre>void begin()</pre>
|
|
<div class="block">Begins a new path.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="moveTo(double, double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>moveTo</h4>
|
|
<pre>void moveTo(double x,
|
|
double y)</pre>
|
|
<div class="block">Moves to the given path.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - </dd><dd><code>y</code> - </dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="lineTo(double, double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>lineTo</h4>
|
|
<pre>void lineTo(double x,
|
|
double y)</pre>
|
|
<div class="block">Draws a line to the given path.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - </dd><dd><code>y</code> - </dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="quadTo(double, double, double, double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>quadTo</h4>
|
|
<pre>void quadTo(double x1,
|
|
double y1,
|
|
double x2,
|
|
double y2)</pre>
|
|
<div class="block">Draws a quadratic curve to the given point.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x1</code> - </dd><dd><code>y1</code> - </dd><dd><code>x2</code> - </dd><dd><code>y2</code> - </dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="curveTo(double, double, double, double, double, double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>curveTo</h4>
|
|
<pre>void curveTo(double x1,
|
|
double y1,
|
|
double x2,
|
|
double y2,
|
|
double x3,
|
|
double y3)</pre>
|
|
<div class="block">Draws a bezier curve to the given point.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x1</code> - </dd><dd><code>y1</code> - </dd><dd><code>x2</code> - </dd><dd><code>y2</code> - </dd><dd><code>x3</code> - </dd><dd><code>y3</code> - </dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="close()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>close</h4>
|
|
<pre>void close()</pre>
|
|
<div class="block">Closes the current path.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="stroke()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>stroke</h4>
|
|
<pre>void stroke()</pre>
|
|
<div class="block">Paints the outline of the current path.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="fill()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>fill</h4>
|
|
<pre>void fill()</pre>
|
|
<div class="block">Fills the current path.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="fillAndStroke()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>fillAndStroke</h4>
|
|
<pre>void fillAndStroke()</pre>
|
|
<div class="block">Fills and paints the outline of the current path.</div>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<div class="bottomNav"><a name="navbar_bottom">
|
|
<!-- -->
|
|
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="class-use/mxICanvas2D.html">Use</a></li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../index-all.html">Index</a></li>
|
|
<li><a href="../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
<div class="aboutLanguage"><em><p><b>mxGraph 2.8.1.0</b></p></em></div>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../com/mxgraph/canvas/mxICanvas.html" title="interface in com.mxgraph.canvas"><span class="strong">Prev Class</span></a></li>
|
|
<li><a href="../../../com/mxgraph/canvas/mxImageCanvas.html" title="class in com.mxgraph.canvas"><span class="strong">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../index.html?com/mxgraph/canvas/mxICanvas2D.html" target="_top">Frames</a></li>
|
|
<li><a href="mxICanvas2D.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method_summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method_detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip-navbar_bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
<p class="legalCopy"><small><font size=1>Copyright (c) 2010 <a href="http://www.mxgraph.com/"
|
|
target="_blank">Gaudenz Alder, David Benson</a>. All rights reserved.</font></small></p>
|
|
</body>
|
|
</html>
|