<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.mxGraphicsCanvas2D</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B><DD><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>mxGraphicsCanvas2D</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/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></DL>
</PRE>
<P>
Used for exporting images. To render to an image from a given XML string,
graph size and background color, the following code is used:
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.CanvasState.html"title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</A></B></CODE>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/LinkedHashMap.html?is-external=true"title="class or interface in java.util">LinkedHashMap</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/Color.html?is-external=true"title="class or interface in java.awt">Color</A>></CODE></FONT></TD>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/geom/GeneralPath.html?is-external=true"title="class or interface in java.awt.geom">GeneralPath</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>
<CODE>protected <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>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Font.html?is-external=true"title="class or interface in java.awt">Font</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/awt/Stroke.html?is-external=true"title="class or interface in java.awt">Stroke</A></CODE></FONT></TD>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/javax/swing/CellRendererPane.html?is-external=true"title="class or interface in javax.swing">CellRendererPane</A></CODE></FONT></TD>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Stack.html?is-external=true"title="class or interface in java.util">Stack</A><<AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.CanvasState.html"title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</A>></CODE></FONT></TD>
<CODE>protected <AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.CanvasState.html"title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#mxGraphicsCanvas2D(java.awt.Graphics2D)">mxGraphicsCanvas2D</A></B>(<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> g)</CODE>
<BR>
Constructs a new graphics export canvas.</TD>
<CODE>protected <AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.CanvasState.html"title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#cloneState(com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState)">cloneState</A></B>(<AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.CanvasState.html"title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</A> state)</CODE>
<BR>
Returns a clone of thec given state.</TD>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Font.html?is-external=true"title="class or interface in java.awt">Font</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#createFont(java.lang.String, int, int)">createFont</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> family,
int style,
int size)</CODE>
<BR>
Hook for subclassers to implement font caching.</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>
<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> align,
<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> valign,
<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> overflow,
<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>
<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>
<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> align,
<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> valign)</CODE>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#drawImage(java.awt.Graphics2D, java.awt.Image, int, int)">drawImage</A></B>(<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> graphics,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Image.html?is-external=true"title="class or interface in java.awt">Image</A> image,
<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>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#getFontName(java.lang.String)">getFontName</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> family)</CODE>
<CODE> <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>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Rectangle.html?is-external=true"title="class or interface in java.awt">Rectangle</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#getImageBounds(java.awt.Image, double, double, double, double, boolean)">getImageBounds</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Image.html?is-external=true"title="class or interface in java.awt">Image</A> img,
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Dimension.html?is-external=true"title="class or interface in java.awt">Dimension</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#getImageSize(java.awt.Image)">getImageSize</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Image.html?is-external=true"title="class or interface in java.awt">Image</A> image)</CODE>
<BR>
Returns the size for the given image.</TD>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/geom/Point2D.html?is-external=true"title="class or interface in java.awt.geom">Point2D</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#getMargin(java.lang.String, java.lang.String)">getMargin</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> align,
<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> valign)</CODE>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/javax/swing/JLabel.html?is-external=true"title="class or interface in javax.swing">JLabel</A></CODE></FONT></TD>
<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> str,
<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> align,
<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> valign,
boolean wrap,
<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> format,
<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> overflow,
<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> src,
boolean aspect,
boolean flipH,
boolean flipV)</CODE>
<BR>
Draws the given image.</TD>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Image.html?is-external=true"title="class or interface in java.awt">Image</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.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> src)</CODE>
<BR>
Hook for image caching.</TD>
<CODE>protected <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></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#parseColor(java.lang.String)">parseColor</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> hex)</CODE>
<BR>
Helper method that uses <AHREF="../../../com/mxgraph/util/mxUtils.html#parseColor(java.lang.String)"><CODE>mxUtils.parseColor(String)</CODE></A>.</TD>
<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> str,
<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> align,
<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> valign,
boolean wrap,
<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> format,
<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> overflow,
boolean clip,
double rotation)</CODE>
<BR>
Draws the given text.</TD>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Image.html?is-external=true"title="class or interface in java.awt">Image</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#scaleImage(java.awt.Image, int, int)">scaleImage</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Image.html?is-external=true"title="class or interface in java.awt">Image</A> img,
int w,
int h)</CODE>
<BR>
Uses <AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#IMAGE_SCALING"><CODE>IMAGE_SCALING</CODE></A> to scale the given image.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setDashPattern(java.lang.String)">setDashPattern</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> value)</CODE>
<BR>
Sets the dash pattern.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setFillColor(java.lang.String)">setFillColor</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> value)</CODE>
<BR>
Default value <AHREF="../../../com/mxgraph/util/mxConstants.html#NONE"><CODE>mxConstants.NONE</CODE></A>.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setFontBackgroundColor(java.lang.String)">setFontBackgroundColor</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> value)</CODE>
<BR>
Default value "#000000".</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setFontBorderColor(java.lang.String)">setFontBorderColor</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> value)</CODE>
<BR>
Default value "#000000".</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setFontColor(java.lang.String)">setFontColor</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> value)</CODE>
<BR>
Default value "#000000".</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setFontFamily(java.lang.String)">setFontFamily</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> value)</CODE>
<BR>
Default value <AHREF="../../../com/mxgraph/util/mxConstants.html#DEFAULT_FONTFAMILY"><CODE>mxConstants.DEFAULT_FONTFAMILY</CODE></A>.</TD>
Default value <AHREF="../../../com/mxgraph/util/mxConstants.html#DEFAULT_FONTSIZE"><CODE>mxConstants.DEFAULT_FONTSIZE</CODE></A>.</TD>
<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> color2,
<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> direction,
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setGraphics(java.awt.Graphics2D)">setGraphics</A></B>(<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> value)</CODE>
<BR>
Sets the graphics instance.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setLineCap(java.lang.String)">setLineCap</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> value)</CODE>
<BR>
Sets the linecap.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setLineJoin(java.lang.String)">setLineJoin</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> value)</CODE>
<BR>
Sets the linejoin.</TD>
Default value <AHREF="../../../com/mxgraph/util/mxConstants.html#NONE"><CODE>mxConstants.NONE</CODE></A>.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setShadowColor(java.lang.String)">setShadowColor</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> value)</CODE>
<BR>
Default value <AHREF="../../../com/mxgraph/util/mxConstants.html#NONE"><CODE>mxConstants.NONE</CODE></A>.</TD>
Default value <AHREF="../../../com/mxgraph/util/mxConstants.html#NONE"><CODE>mxConstants.NONE</CODE></A>.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setStrokeColor(java.lang.String)">setStrokeColor</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> value)</CODE>
<BR>
Caches color conversion as it is expensive.</TD>
<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> str,
<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> align,
<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> valign,
<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> format,
<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> overflow,
<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="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>graphics</B></PRE>
<DL>
<DD>Reference to the graphics instance for painting.
protected transient <AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.CanvasState.html"title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</A><B>state</B></PRE>
<DL>
<DD>Represents the current state of the canvas.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="stack"><!----></A><H3>
stack</H3>
<PRE>
protected transient <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Stack.html?is-external=true"title="class or interface in java.util">Stack</A><<AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.CanvasState.html"title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</A>><B>stack</B></PRE>
<DL>
<DD>Stack of states for save/restore.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="currentPath"><!----></A><H3>
currentPath</H3>
<PRE>
protected transient <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/geom/GeneralPath.html?is-external=true"title="class or interface in java.awt.geom">GeneralPath</A><B>currentPath</B></PRE>
protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/javax/swing/CellRendererPane.html?is-external=true"title="class or interface in javax.swing">CellRendererPane</A><B>rendererPane</B></PRE>
protected transient <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Font.html?is-external=true"title="class or interface in java.awt">Font</A><B>lastFont</B></PRE>
protected transient <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>lastFontFamily</B></PRE>
protected transient <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Stroke.html?is-external=true"title="class or interface in java.awt">Stroke</A><B>lastStroke</B></PRE>
protected transient <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>lastDashPattern</B></PRE>
protected transient <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/LinkedHashMap.html?is-external=true"title="class or interface in java.util">LinkedHashMap</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/Color.html?is-external=true"title="class or interface in java.awt">Color</A>><B>colorCache</B></PRE>
public <B>mxGraphicsCanvas2D</B>(<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> g)</PRE>
public void <B>setGraphics</B>(<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> value)</PRE>
<DL>
<DD>Sets the graphics instance.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getGraphics()"><!----></A><H3>
getGraphics</H3>
<PRE>
public <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>getGraphics</B>()</PRE>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#save()">save</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="restore()"><!----></A><H3>
restore</H3>
<PRE>
public void <B>restore</B>()</PRE>
<DL>
<DD>Restores the last canvas state.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#restore()">restore</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
protected <AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.CanvasState.html"title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</A><B>cloneState</B>(<AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.CanvasState.html"title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</A> state)</PRE>
<DL>
<DD>Returns a clone of thec given state.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="scale(double)"><!----></A><H3>
scale</H3>
<PRE>
public void <B>scale</B>(double value)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#scale(double)">mxICanvas2D</A></CODE></B></DD>
<DD>Uniformaly scales the canvas by the given amount.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#scale(double)">scale</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - The new scale value.</DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#translate(double, double)">mxICanvas2D</A></CODE></B></DD>
<DD>Translates the canvas by the given amount.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#translate(double, double)">translate</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>dx</CODE> - X-coordinate of the translation.<DD><CODE>dy</CODE> - Y-coordinate of the translation.</DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#rotate(double, boolean, boolean, double, double)">mxICanvas2D</A></CODE></B></DD>
<DD>Rotates the canvas by the given angle around the given center. This
method may add rendering overhead and should be used with care.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#rotate(double, boolean, boolean, double, double)">rotate</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>theta</CODE> - Rotation angle in degrees (0 - 360).<DD><CODE>flipH</CODE> - Specifies if drawing should be flipped horizontally.<DD><CODE>flipV</CODE> - Specifies if drawing should be flipped vertically.<DD><CODE>cx</CODE> - X-coordinate of the center point.<DD><CODE>cy</CODE> - Y-coordinate of the center point.</DL>
</DD>
</DL>
<HR>
<ANAME="setStrokeWidth(double)"><!----></A><H3>
setStrokeWidth</H3>
<PRE>
public void <B>setStrokeWidth</B>(double value)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setStrokeWidth(double)">mxICanvas2D</A></CODE></B></DD>
<DD>Sets the stroke width. This should default to 1 if unset.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setStrokeWidth(double)">setStrokeWidth</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - Width of the stroke. The value should be multiplied by the
public void <B>setStrokeColor</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> value)</PRE>
<DL>
<DD>Caches color conversion as it is expensive.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setStrokeColor(java.lang.String)">setStrokeColor</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - Hex representation of the color or <AHREF="../../../com/mxgraph/util/mxConstants.html#NONE"><CODE>mxConstants.NONE</CODE></A>.</DL>
</DD>
</DL>
<HR>
<ANAME="setDashed(boolean)"><!----></A><H3>
setDashed</H3>
<PRE>
public void <B>setDashed</B>(boolean value)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setDashed(boolean)">mxICanvas2D</A></CODE></B></DD>
<DD>Sets the dashed state. This should default to false if unset.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setDashed(boolean)">setDashed</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - Boolean representing the dashed state.</DL>
public void <B>setDashPattern</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> value)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setDashPattern(java.lang.String)">mxICanvas2D</A></CODE></B></DD>
<DD>Sets the dash pattern. This should default to "3 3" if unset.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setDashPattern(java.lang.String)">setDashPattern</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - Space separated list of floats representing the dash
pattern. The value should be multiplied by the current scale.</DL>
public void <B>setLineCap</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> value)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setLineCap(java.lang.String)">mxICanvas2D</A></CODE></B></DD>
<DD>Sets the linecap. This should default to "flat" if unset.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setLineCap(java.lang.String)">setLineCap</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - "flat", "square" or "round".</DL>
public void <B>setLineJoin</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> value)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setLineJoin(java.lang.String)">mxICanvas2D</A></CODE></B></DD>
<DD>Sets the linejoin. This should default to "miter" if unset.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setLineJoin(java.lang.String)">setLineJoin</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - "miter", "round" or "bevel".</DL>
</DD>
</DL>
<HR>
<ANAME="setMiterLimit(double)"><!----></A><H3>
setMiterLimit</H3>
<PRE>
public void <B>setMiterLimit</B>(double value)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setMiterLimit(double)">mxICanvas2D</A></CODE></B></DD>
<DD>Sets the miterlimit. This should default to 10 if unset.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setMiterLimit(double)">setMiterLimit</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="setFontSize(double)"><!----></A><H3>
setFontSize</H3>
<PRE>
public void <B>setFontSize</B>(double value)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontSize(double)">mxICanvas2D</A></CODE></B></DD>
<DD>Default value <AHREF="../../../com/mxgraph/util/mxConstants.html#DEFAULT_FONTSIZE"><CODE>mxConstants.DEFAULT_FONTSIZE</CODE></A>.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontSize(double)">setFontSize</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
public void <B>setFontColor</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> value)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontColor(java.lang.String)">mxICanvas2D</A></CODE></B></DD>
<DD>Default value "#000000".
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontColor(java.lang.String)">setFontColor</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - Hex representation of the color or <AHREF="../../../com/mxgraph/util/mxConstants.html#NONE"><CODE>mxConstants.NONE</CODE></A>.</DL>
public void <B>setFontBackgroundColor</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> value)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontBackgroundColor(java.lang.String)">mxICanvas2D</A></CODE></B></DD>
<DD>Default value "#000000".
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontBackgroundColor(java.lang.String)">setFontBackgroundColor</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - Hex representation of the color or <AHREF="../../../com/mxgraph/util/mxConstants.html#NONE"><CODE>mxConstants.NONE</CODE></A>.</DL>
public void <B>setFontBorderColor</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> value)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontBorderColor(java.lang.String)">mxICanvas2D</A></CODE></B></DD>
<DD>Default value "#000000".
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontBorderColor(java.lang.String)">setFontBorderColor</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - Hex representation of the color or <AHREF="../../../com/mxgraph/util/mxConstants.html#NONE"><CODE>mxConstants.NONE</CODE></A>.</DL>
public void <B>setFontFamily</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> value)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontFamily(java.lang.String)">mxICanvas2D</A></CODE></B></DD>
<DD>Default value <AHREF="../../../com/mxgraph/util/mxConstants.html#DEFAULT_FONTFAMILY"><CODE>mxConstants.DEFAULT_FONTFAMILY</CODE></A>.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontFamily(java.lang.String)">setFontFamily</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="setFontStyle(int)"><!----></A><H3>
setFontStyle</H3>
<PRE>
public void <B>setFontStyle</B>(int value)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontStyle(int)">mxICanvas2D</A></CODE></B></DD>
<DD>Default value 0. See <AHREF="../../../com/mxgraph/util/mxConstants.html#STYLE_FONTSTYLE"><CODE>mxConstants.STYLE_FONTSTYLE</CODE></A>.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontStyle(int)">setFontStyle</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="setAlpha(double)"><!----></A><H3>
setAlpha</H3>
<PRE>
public void <B>setAlpha</B>(double value)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setAlpha(double)">mxICanvas2D</A></CODE></B></DD>
<DD>Default value 1. This method may add rendering overhead and should be
used with care.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setAlpha(double)">setAlpha</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
public void <B>setFillColor</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> value)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setFillColor(java.lang.String)">mxICanvas2D</A></CODE></B></DD>
<DD>Default value <AHREF="../../../com/mxgraph/util/mxConstants.html#NONE"><CODE>mxConstants.NONE</CODE></A>.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setFillColor(java.lang.String)">setFillColor</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - Hex representation of the color or <AHREF="../../../com/mxgraph/util/mxConstants.html#NONE"><CODE>mxConstants.NONE</CODE></A>.</DL>
public void <B>setGradient</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> color1,
<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> color2,
<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> direction,
protected <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><B>parseColor</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> hex)</PRE>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#rect(double, double, double, double)">mxICanvas2D</A></CODE></B></DD>
<DD>Next fill or stroke should draw a rectangle.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#rect(double, double, double, double)">rect</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#ellipse(double, double, double, double)">mxICanvas2D</A></CODE></B></DD>
<DD>Next fill or stroke should draw an ellipse.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#ellipse(double, double, double, double)">ellipse</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
<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> src,
protected void <B>drawImage</B>(<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> graphics,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Image.html?is-external=true"title="class or interface in java.awt">Image</A> image,
protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Image.html?is-external=true"title="class or interface in java.awt">Image</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> src)</PRE>
protected final <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Rectangle.html?is-external=true"title="class or interface in java.awt">Rectangle</A><B>getImageBounds</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Image.html?is-external=true"title="class or interface in java.awt">Image</A> img,
protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Dimension.html?is-external=true"title="class or interface in java.awt">Dimension</A><B>getImageSize</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Image.html?is-external=true"title="class or interface in java.awt">Image</A> image)</PRE>
protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Image.html?is-external=true"title="class or interface in java.awt">Image</A><B>scaleImage</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Image.html?is-external=true"title="class or interface in java.awt">Image</A> img,
int w,
int h)</PRE>
<DL>
<DD>Uses <AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#IMAGE_SCALING"><CODE>IMAGE_SCALING</CODE></A> to scale the given image.
protected final <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>createImageGraphics</B>(double x,
double y,
double w,
double h,
boolean flipH,
boolean flipV)</PRE>
<DL>
<DD>Creates a graphic instance for rendering an image.
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>createHtmlDocument</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="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,
<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> valign,
<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> overflow,
protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/javax/swing/JLabel.html?is-external=true"title="class or interface in javax.swing">JLabel</A><B>getTextRenderer</B>()</PRE>
<DL>
<DD>Hook to return the renderer for HTML formatted text. This implementation returns
protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/geom/Point2D.html?is-external=true"title="class or interface in java.awt.geom">Point2D</A><B>getMargin</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> align,
<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> valign)</PRE>
<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> str,
<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> align,
<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> valign,
boolean wrap,
<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> format,
<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> overflow,
<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> str,
<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> align,
<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> valign,
boolean wrap,
<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> format,
<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> overflow,
boolean clip,
double rotation)</PRE>
<DL>
<DD>Draws the given text.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../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></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
<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> str,
<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> align,
<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> valign,
boolean wrap,
<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> format,
<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> overflow,
protected final <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>createTextGraphics</B>(double x,
double y,
double w,
double h,
double rotation,
boolean clip,
<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> align,
<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> valign)</PRE>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#begin()">mxICanvas2D</A></CODE></B></DD>
<DD>Begins a new path.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#begin()">begin</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="moveTo(double, double)"><!----></A><H3>
moveTo</H3>
<PRE>
public void <B>moveTo</B>(double x,
double y)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#moveTo(double, double)">mxICanvas2D</A></CODE></B></DD>
<DD>Moves to the given path.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#moveTo(double, double)">moveTo</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="lineTo(double, double)"><!----></A><H3>
lineTo</H3>
<PRE>
public void <B>lineTo</B>(double x,
double y)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#lineTo(double, double)">mxICanvas2D</A></CODE></B></DD>
<DD>Draws a line to the given path.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#lineTo(double, double)">lineTo</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#quadTo(double, double, double, double)">mxICanvas2D</A></CODE></B></DD>
<DD>Draws a quadratic curve to the given point.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#quadTo(double, double, double, double)">quadTo</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#curveTo(double, double, double, double, double, double)">mxICanvas2D</A></CODE></B></DD>
<DD>Draws a bezier curve to the given point.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#curveTo(double, double, double, double, double, double)">curveTo</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="close()"><!----></A><H3>
close</H3>
<PRE>
public void <B>close</B>()</PRE>
<DL>
<DD>Closes the current path.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#close()">close</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="stroke()"><!----></A><H3>
stroke</H3>
<PRE>
public void <B>stroke</B>()</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#stroke()">mxICanvas2D</A></CODE></B></DD>
<DD>Paints the outline of the current path.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#stroke()">stroke</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="fill()"><!----></A><H3>
fill</H3>
<PRE>
public void <B>fill</B>()</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#fill()">mxICanvas2D</A></CODE></B></DD>
<DD>Fills the current path.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#fill()">fill</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="fillAndStroke()"><!----></A><H3>
fillAndStroke</H3>
<PRE>
public void <B>fillAndStroke</B>()</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#fillAndStroke()">mxICanvas2D</A></CODE></B></DD>
<DD>Fills and paints the outline of the current path.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#fillAndStroke()">fillAndStroke</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
public void <B>setShadow</B>(boolean value)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setShadow(boolean)">mxICanvas2D</A></CODE></B></DD>
<DD>Enables or disables the painting of shadows.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setShadow(boolean)">setShadow</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - Whether the shadow should be enabled.</DL>
public void <B>setShadowColor</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> value)</PRE>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setShadowColor(java.lang.String)">mxICanvas2D</A></CODE></B></DD>
<DD>Default value <AHREF="../../../com/mxgraph/util/mxConstants.html#NONE"><CODE>mxConstants.NONE</CODE></A>.
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setShadowColor(java.lang.String)">setShadowColor</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - Hex representation of the color or <AHREF="../../../com/mxgraph/util/mxConstants.html#NONE"><CODE>mxConstants.NONE</CODE></A>.</DL>
public void <B>setShadowAlpha</B>(double value)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setShadowAlpha(double)">mxICanvas2D</A></CODE></B></DD>
<DD>Default value <AHREF="../../../com/mxgraph/util/mxConstants.html#NONE"><CODE>mxConstants.NONE</CODE></A>.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setShadowAlpha(double)">setShadowAlpha</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - Hex representation of the color or <AHREF="../../../com/mxgraph/util/mxConstants.html#NONE"><CODE>mxConstants.NONE</CODE></A>.</DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setShadowOffset(double, double)">setShadowOffset</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Font.html?is-external=true"title="class or interface in java.awt">Font</A><B>createFont</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> family,
int style,
int size)</PRE>
<DL>
<DD>Hook for subclassers to implement font caching.
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>getFontName</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> family)</PRE>