<DT><B>All Known Implementing Classes:</B><DD><AHREF="../../../com/mxgraph/canvas/mxBasicCanvas.html"title="class in com.mxgraph.canvas">mxBasicCanvas</A>, <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/mxImageCanvas.html"title="class in com.mxgraph.canvas">mxImageCanvas</A>, <AHREF="../../../com/mxgraph/swing/view/mxInteractiveCanvas.html"title="class in com.mxgraph.swing.view">mxInteractiveCanvas</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 interface <B>mxICanvas</B></DL>
</PRE>
<P>
Defines the requirements for a canvas that paints the vertices and edges of
<CODE> <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></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxICanvas.html#drawCell(com.mxgraph.view.mxCellState)">drawCell</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</CODE>
<BR>
Draws the given cell.</TD>
<CODE> <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></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxICanvas.html#drawLabel(java.lang.String, com.mxgraph.view.mxCellState, boolean)">drawLabel</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> text,
<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state,
boolean html)</CODE>
<BR>
Draws the given label.</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>
<DD>Sets the translation for the following drawing requests.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getTranslate()"><!----></A><H3>
getTranslate</H3>
<PRE>
<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 translation.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>Returns the current translation.</DL>
</DD>
</DL>
<HR>
<ANAME="setScale(double)"><!----></A><H3>
setScale</H3>
<PRE>
void <B>setScale</B>(double scale)</PRE>
<DL>
<DD>Sets the scale for the following drawing requests.
<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>drawCell</B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state)</PRE>
<DL>
<DD>Draws the given cell.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>state</CODE> - State of the cell to be painted.
<DT><B>Returns:</B><DD>Object that represents the cell.</DL>
<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>drawLabel</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> text,
<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state,
boolean html)</PRE>
<DL>
<DD>Draws the given label.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>text</CODE> - String that represents the label.<DD><CODE>state</CODE> - State of the cell whose label is to be painted.<DD><CODE>html</CODE> - Specifies if the label contains HTML markup.
<DT><B>Returns:</B><DD>Object that represents the label.</DL>