<li><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ulclass="inheritance">
<li>com.mxgraph.canvas.mxBasicCanvas</li>
</ul>
</li>
</ul>
<divclass="description">
<ulclass="blockList">
<liclass="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><ahref="../../../com/mxgraph/canvas/mxICanvas.html"title="interface in com.mxgraph.canvas">mxICanvas</a></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><ahref="../../../com/mxgraph/canvas/mxGraphics2DCanvas.html"title="class in com.mxgraph.canvas">mxGraphics2DCanvas</a>, <ahref="../../../com/mxgraph/canvas/mxHtmlCanvas.html"title="class in com.mxgraph.canvas">mxHtmlCanvas</a>, <ahref="../../../com/mxgraph/canvas/mxSvgCanvas.html"title="class in com.mxgraph.canvas">mxSvgCanvas</a>, <ahref="../../../com/mxgraph/canvas/mxVmlCanvas.html"title="class in com.mxgraph.canvas">mxVmlCanvas</a></dd>
</dl>
<hr>
<br>
<pre>public abstract class <spanclass="strong">mxBasicCanvas</span>
extends <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>
implements <ahref="../../../com/mxgraph/canvas/mxICanvas.html"title="interface in com.mxgraph.canvas">mxICanvas</a></pre>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Field and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>static <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></code></td>
<divclass="block">Specifies whether labels should be painted.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>protected <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></code></td>
<divclass="block">Defines the base path for images with relative paths.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Hashtable.html?is-external=true"title="class or interface in java.util">Hashtable</a><<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>,<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/image/BufferedImage.html?is-external=true"title="class or interface in java.awt.image">BufferedImage</a>></code></td>
<divclass="block">Specifies the current scale.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Point.html?is-external=true"title="class or interface in java.awt">Point</a></code></td>
<tdclass="colFirst"><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></code></td>
<tdclass="colFirst"><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></code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/canvas/mxBasicCanvas.html#getImageForStyle(java.util.Map)">getImageForStyle</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true"title="class or interface in java.util">Map</a><<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>,<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>> style)</code>
<divclass="block">Gets the image path from the given style.</div>
<tdclass="colFirst"><code><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Point.html?is-external=true"title="class or interface in java.awt">Point</a></code></td>
<tdclass="colFirst"><code><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/image/BufferedImage.html?is-external=true"title="class or interface in java.awt.image">BufferedImage</a></code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/canvas/mxBasicCanvas.html#loadImage(java.lang.String)">loadImage</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> image)</code>
<divclass="block">Returns an image instance for the given URL.</div>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/canvas/mxBasicCanvas.html#setImageBasePath(java.lang.String)">setImageBasePath</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> imageBasePath)</code> </td>
<h3>Methods inherited from class java.lang.<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a></h3>
<code><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()"title="class or interface in java.lang">clone</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)"title="class or interface in java.lang">equals</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()"title="class or interface in java.lang">finalize</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()"title="class or interface in java.lang">getClass</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()"title="class or interface in java.lang">hashCode</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()"title="class or interface in java.lang">notify</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()"title="class or interface in java.lang">notifyAll</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()"title="class or interface in java.lang">toString</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()"title="class or interface in java.lang">wait</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)"title="class or interface in java.lang">wait</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)"title="class or interface in java.lang">wait</a></code></li>
<h3>Methods inherited from interface com.mxgraph.canvas.<ahref="../../../com/mxgraph/canvas/mxICanvas.html"title="interface in com.mxgraph.canvas">mxICanvas</a></h3>
<divclass="block">Specifies if image aspect should be preserved in drawImage. Default is true.</div>
</li>
</ul>
<aname="DEFAULT_IMAGEBASEPATH">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>DEFAULT_IMAGEBASEPATH</h4>
<pre>public static <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> DEFAULT_IMAGEBASEPATH</pre>
<divclass="block">Defines the default value for the imageBasePath in all GDI canvases.
Default is an empty string.</div>
</li>
</ul>
<aname="imageBasePath">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>imageBasePath</h4>
<pre>protected <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> imageBasePath</pre>
<divclass="block">Defines the base path for images with relative paths. Trailing slash
is required. Default value is DEFAULT_IMAGEBASEPATH.</div>
</li>
</ul>
<aname="translate">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>translate</h4>
<pre>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Point.html?is-external=true"title="class or interface in java.awt">Point</a> translate</pre>
<divclass="block">Specifies the current translation. Default is (0,0).</div>
</li>
</ul>
<aname="scale">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>scale</h4>
<pre>protected double scale</pre>
<divclass="block">Specifies the current scale. Default is 1.</div>
</li>
</ul>
<aname="drawLabels">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>drawLabels</h4>
<pre>protected boolean drawLabels</pre>
<divclass="block">Specifies whether labels should be painted. Default is true.</div>
</li>
</ul>
<aname="imageCache">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>imageCache</h4>
<pre>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Hashtable.html?is-external=true"title="class or interface in java.util">Hashtable</a><<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>,<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/image/BufferedImage.html?is-external=true"title="class or interface in java.awt.image">BufferedImage</a>> imageCache</pre>
<divclass="block">Sets the current translate.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><ahref="../../../com/mxgraph/canvas/mxICanvas.html#setTranslate(int, int)">setTranslate</a></code> in interface <code><ahref="../../../com/mxgraph/canvas/mxICanvas.html"title="interface in com.mxgraph.canvas">mxICanvas</a></code></dd>
</dl>
</li>
</ul>
<aname="getTranslate()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getTranslate</h4>
<pre>public <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Point.html?is-external=true"title="class or interface in java.awt">Point</a> getTranslate()</pre>
<divclass="block">Returns the current translate.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><ahref="../../../com/mxgraph/canvas/mxICanvas.html#getTranslate()">getTranslate</a></code> in interface <code><ahref="../../../com/mxgraph/canvas/mxICanvas.html"title="interface in com.mxgraph.canvas">mxICanvas</a></code></dd>
<dt><spanclass="strong">Returns:</span></dt><dd>Returns the current translation.</dd></dl>
<divclass="block"><strong>Description copied from interface: <code><ahref="../../../com/mxgraph/canvas/mxICanvas.html#setScale(double)">mxICanvas</a></code></strong></div>
<divclass="block">Sets the scale for the following drawing requests.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><ahref="../../../com/mxgraph/canvas/mxICanvas.html#setScale(double)">setScale</a></code> in interface <code><ahref="../../../com/mxgraph/canvas/mxICanvas.html"title="interface in com.mxgraph.canvas">mxICanvas</a></code></dd>
</dl>
</li>
</ul>
<aname="getScale()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getScale</h4>
<pre>public double getScale()</pre>
<divclass="block"><strong>Description copied from interface: <code><ahref="../../../com/mxgraph/canvas/mxICanvas.html#getScale()">mxICanvas</a></code></strong></div>
<divclass="block">Returns the scale.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><ahref="../../../com/mxgraph/canvas/mxICanvas.html#getScale()">getScale</a></code> in interface <code><ahref="../../../com/mxgraph/canvas/mxICanvas.html"title="interface in com.mxgraph.canvas">mxICanvas</a></code></dd>
<pre>public <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> getImageBasePath()</pre>
</li>
</ul>
<aname="setImageBasePath(java.lang.String)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>setImageBasePath</h4>
<pre>public void setImageBasePath(<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> imageBasePath)</pre>
<pre>public <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/image/BufferedImage.html?is-external=true"title="class or interface in java.awt.image">BufferedImage</a> loadImage(<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> image)</pre>
<divclass="block">Returns an image instance for the given URL. If the URL has
<pre>public <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> getImageForStyle(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true"title="class or interface in java.util">Map</a><<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>,<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>> style)</pre>
<divclass="block">Gets the image path from the given style. If the path is relative (does
not start with a slash) then it is appended to the imageBasePath.</div>