<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.mxImageCanvas</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>
<HR>
<DL>
<DT><PRE>public class <B>mxImageCanvas</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>
</PRE>
<P>
An implementation of a canvas that uses Graphics2D for painting. To use an
image canvas for an existing graphics canvas and create an image the
<CODE>protected <AHREF="../../../com/mxgraph/canvas/mxGraphics2DCanvas.html"title="class in com.mxgraph.canvas">mxGraphics2DCanvas</A></CODE></FONT></TD>
<CODE>protected <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/Graphics2D.html?is-external=true"title="class or interface in java.awt">Graphics2D</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxImageCanvas.html#mxImageCanvas(com.mxgraph.canvas.mxGraphics2DCanvas, int, int, java.awt.Color, boolean)">mxImageCanvas</A></B>(<AHREF="../../../com/mxgraph/canvas/mxGraphics2DCanvas.html"title="class in com.mxgraph.canvas">mxGraphics2DCanvas</A> canvas,
int width,
int height,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Color.html?is-external=true"title="class or interface in java.awt">Color</A> background,
<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>
<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/mxImageCanvas.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/mxImageCanvas.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> label,
<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/image/BufferedImage.html?is-external=true"title="class or interface in java.awt.image">BufferedImage</A></CODE></FONT></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>
<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>
protected <AHREF="../../../com/mxgraph/canvas/mxGraphics2DCanvas.html"title="class in com.mxgraph.canvas">mxGraphics2DCanvas</A><B>canvas</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<ANAME="previousGraphics"><!----></A><H3>
previousGraphics</H3>
<PRE>
protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Graphics2D.html?is-external=true"title="class or interface in java.awt">Graphics2D</A><B>previousGraphics</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<ANAME="image"><!----></A><H3>
image</H3>
<PRE>
protected <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>image</B></PRE>
public <B>mxImageCanvas</B>(<AHREF="../../../com/mxgraph/canvas/mxGraphics2DCanvas.html"title="class in com.mxgraph.canvas">mxGraphics2DCanvas</A> canvas,
int width,
int height,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Color.html?is-external=true"title="class or interface in java.awt">Color</A> background,
public <AHREF="../../../com/mxgraph/canvas/mxGraphics2DCanvas.html"title="class in com.mxgraph.canvas">mxGraphics2DCanvas</A><B>getGraphicsCanvas</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getImage()"><!----></A><H3>
getImage</H3>
<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>getImage</B>()</PRE>
public <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><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas.html#drawCell(com.mxgraph.view.mxCellState)">mxICanvas</A></CODE></B></DD>
<DD>Draws the given cell.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas.html#drawCell(com.mxgraph.view.mxCellState)">drawCell</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>Parameters:</B><DD><CODE>state</CODE> - State of the cell to be painted.
<DT><B>Returns:</B><DD>Object that represents the cell.</DL>
public <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> label,
<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state,
boolean html)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas.html#drawLabel(java.lang.String, com.mxgraph.view.mxCellState, boolean)">mxICanvas</A></CODE></B></DD>
<DD>Draws the given label.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas.html#drawLabel(java.lang.String, com.mxgraph.view.mxCellState, boolean)">drawLabel</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>Parameters:</B><DD><CODE>label</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>
</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="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><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas.html#getTranslate()">mxICanvas</A></CODE></B></DD>
<DD>Returns the current translation.
<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="setTranslate(int, int)"><!----></A><H3>
setTranslate</H3>
<PRE>
public void <B>setTranslate</B>(int dx,
int dy)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas.html#setTranslate(int, int)">mxICanvas</A></CODE></B></DD>
<DD>Sets the translation for the following drawing requests.
<P>
<DD><DL>
<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="destroy()"><!----></A><H3>
destroy</H3>
<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>destroy</B>()</PRE>