<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>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><B>com.mxgraph.canvas.mxBasicCanvas</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B><DD><AHREF="../../../com/mxgraph/canvas/mxICanvas.html"title="interface in com.mxgraph.canvas">mxICanvas</A></DD>
</DL>
<DL>
<DT><B>Direct Known Subclasses:</B><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>
<DL>
<DT><PRE>public abstract class <B>mxBasicCanvas</B><DT>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><DT>implements <AHREF="../../../com/mxgraph/canvas/mxICanvas.html"title="interface in com.mxgraph.canvas">mxICanvas</A></DL>
<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></FONT></TD>
<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></FONT></TD>
<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></FONT></TD>
<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></FONT></TD>
<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></FONT></TD>
<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></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxBasicCanvas.html#getImageForStyle(java.util.Map)">getImageForStyle</A></B>(<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>
<BR>
Gets the image path from the given style.</TD>
<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></FONT></TD>
<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></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxBasicCanvas.html#loadImage(java.lang.String)">loadImage</A></B>(<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>
<BR>
Returns an image instance for the given URL.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxBasicCanvas.html#setImageBasePath(java.lang.String)">setImageBasePath</A></B>(<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>
<THALIGN="left"><B>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></B></TH>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><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></TD>
<THALIGN="left"><B>Methods inherited from interface com.mxgraph.canvas.<AHREF="../../../com/mxgraph/canvas/mxICanvas.html"title="interface in com.mxgraph.canvas">mxICanvas</A></B></TH>
public static boolean <B>PRESERVE_IMAGE_ASPECT</B></PRE>
<DL>
<DD>Specifies if image aspect should be preserved in drawImage. Default is true.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="DEFAULT_IMAGEBASEPATH"><!----></A><H3>
DEFAULT_IMAGEBASEPATH</H3>
<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><B>DEFAULT_IMAGEBASEPATH</B></PRE>
<DL>
<DD>Defines the default value for the imageBasePath in all GDI canvases.
Default is an empty string.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="imageBasePath"><!----></A><H3>
imageBasePath</H3>
<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><B>imageBasePath</B></PRE>
<DL>
<DD>Defines the base path for images with relative paths. Trailing slash
is required. Default value is DEFAULT_IMAGEBASEPATH.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="translate"><!----></A><H3>
translate</H3>
<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><B>translate</B></PRE>
<DL>
<DD>Specifies the current translation. Default is (0,0).
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="scale"><!----></A><H3>
scale</H3>
<PRE>
protected double <B>scale</B></PRE>
<DL>
<DD>Specifies the current scale. Default is 1.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="drawLabels"><!----></A><H3>
drawLabels</H3>
<PRE>
protected boolean <B>drawLabels</B></PRE>
<DL>
<DD>Specifies whether labels should be painted. Default is true.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="imageCache"><!----></A><H3>
imageCache</H3>
<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>><B>imageCache</B></PRE>
<DT><B>Specified by:</B><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></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getTranslate()"><!----></A><H3>
getTranslate</H3>
<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><B>getTranslate</B>()</PRE>
<DL>
<DD>Returns the current translate.
<P>
<DD><DL>
<DT><B>Specified by:</B><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></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>Returns the current translation.</DL>
</DD>
</DL>
<HR>
<ANAME="setScale(double)"><!----></A><H3>
setScale</H3>
<PRE>
public void <B>setScale</B>(double scale)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas.html#setScale(double)">mxICanvas</A></CODE></B></DD>
<DD>Sets the scale for the following drawing requests.
<P>
<DD><DL>
<DT><B>Specified by:</B><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></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getScale()"><!----></A><H3>
getScale</H3>
<PRE>
public double <B>getScale</B>()</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas.html#getScale()">mxICanvas</A></CODE></B></DD>
<DD>Returns the scale.
<P>
<DD><DL>
<DT><B>Specified by:</B><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></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="setDrawLabels(boolean)"><!----></A><H3>
setDrawLabels</H3>
<PRE>
public void <B>setDrawLabels</B>(boolean drawLabels)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getImageBasePath()"><!----></A><H3>
getImageBasePath</H3>
<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><B>getImageBasePath</B>()</PRE>
public void <B>setImageBasePath</B>(<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>
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><B>loadImage</B>(<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>
<DL>
<DD>Returns an image instance for the given URL. If the URL has
been loaded before than an instance of the same instance is
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><B>getImageForStyle</B>(<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>
<DL>
<DD>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.