<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/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/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/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/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/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/geom/Point2D.html?is-external=true"title="class or interface in java.awt.geom">Point2D</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>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#createHtmlDocument(java.lang.String, java.lang.String, java.lang.String, int, int)">createHtmlDocument</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="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,
int w,
int h)</CODE>
<BR>
Creates a HTML document around the given markup.</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/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/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> <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,
boolean vertical,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/FontMetrics.html?is-external=true"title="class or interface in java.awt">FontMetrics</A> fm,
<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>[] lines)</CODE>
<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/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> 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 vertical,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/FontMetrics.html?is-external=true"title="class or interface in java.awt">FontMetrics</A> fm,
<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>[] lines)</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> 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>
<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#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>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setGradient(java.lang.String, java.lang.String, double, double, double, double, java.lang.String)">setGradient</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> 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,
double x,
double y,
double w,
double h,
<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)</CODE>
<BR>
Prepares the canvas to draw a gradient.</TD>
<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>
<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>
<TD><CODE><B><AHREF="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#shadow(java.lang.String, boolean)">shadow</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,
boolean filled)</CODE>
<BR>
Paints the current path as a shadow.</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 vertical,
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)</CODE>
<BR>
Draws the given text.</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="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.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="autoAntiAlias"><!----></A><H3>
autoAntiAlias</H3>
<PRE>
protected boolean <B>autoAntiAlias</B></PRE>
<DL>
<DD>Specifies if anti aliasing should be disabled for rectangles
and orthogonal paths. Default is true.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="state"><!----></A><H3>
state</H3>
<PRE>
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>
<DD>Holds the current state for crisp rendering. This should be true while
a subsequent stroke operation should be rendering without anti aliasing.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="lastPoint"><!----></A><H3>
lastPoint</H3>
<PRE>
protected transient <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>lastPoint</B></PRE>
<DL>
<DD>Holds the last point of a moveTo or lineTo operation to determine if the
current path is orthogonal.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="currentStroke"><!----></A><H3>
currentStroke</H3>
<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>currentStroke</B></PRE>
<DL>
<DD>Holds the current stroke.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="currentFont"><!----></A><H3>
currentFont</H3>
<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>currentFont</B></PRE>
<DL>
<DD>Holds the current font.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="currentShadowValue"><!----></A><H3>
currentShadowValue</H3>
<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>currentShadowValue</B></PRE>
<DL>
<DD>Holds the current value for the shadow color. This is used to hold the
input value of a shadow operation. The parsing result of this value is
cached in the global scope as it should be repeating.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="currentShadowColor"><!----></A><H3>
currentShadowColor</H3>
<PRE>
protected transient <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>currentShadowColor</B></PRE>
<DL>
<DD>Holds the current parsed shadow color. This holds the result of parsing
the currentShadowValue, which is an expensive operation.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="rendererPane"><!----></A><H3>
rendererPane</H3>
<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>
<DL>
<DD>Optional renderer pane to be used for HTML label rendering.
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>
<DL>
<DD>Returns the graphics instance.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="isAutoAntiAlias()"><!----></A><H3>
isAutoAntiAlias</H3>
<PRE>
public boolean <B>isAutoAntiAlias</B>()</PRE>
<DL>
<DD>Returns true if automatic anti aliasing is enabled.
public void <B>setAutoAntiAlias</B>(boolean value)</PRE>
<DL>
<DD>Disabled or enabled automatic anti aliasing.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="save()"><!----></A><H3>
save</H3>
<PRE>
public void <B>save</B>()</PRE>
<DL>
<DD>Saves the current canvas state.
<P>
<DD><DL>
<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>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,
double x,
double y,
double w,
double h,
<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)</PRE>
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>
public void <B>setGlassGradient</B>(double x,
double y,
double w,
double h)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setGlassGradient(double, double, double, double)">mxICanvas2D</A></CODE></B></DD>
<DD>Prepares the canvas to draw a glass gradient.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#setGlassGradient(double, double, double, double)">setGlassGradient</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#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,
int w,
int h)</PRE>
<DL>
<DD>Creates a HTML document around the given markup.
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
<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 vertical,
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)</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, boolean, java.lang.String)">text</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html"title="interface in com.mxgraph.canvas">mxICanvas2D</A></CODE></DL>
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,
boolean vertical)</PRE>
<DL>
<DD>Returns a new graphics instance with the correct color and font for
<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 vertical,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/FontMetrics.html?is-external=true"title="class or interface in java.awt">FontMetrics</A> fm,
<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>[] lines)</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> 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 vertical,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/FontMetrics.html?is-external=true"title="class or interface in java.awt">FontMetrics</A> fm,
<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>[] lines)</PRE>
<DL>
<DD>This implementation returns x.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="begin()"><!----></A><H3>
begin</H3>
<PRE>
public void <B>begin</B>()</PRE>
<DL>
<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>shadow</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,
boolean filled)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#shadow(java.lang.String, boolean)">mxICanvas2D</A></CODE></B></DD>
<DD>Paints the current path as a shadow.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#shadow(java.lang.String, boolean)">shadow</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="clip()"><!----></A><H3>
clip</H3>
<PRE>
public void <B>clip</B>()</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#clip()">mxICanvas2D</A></CODE></B></DD>
<DD>Uses the current path for clipping.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/canvas/mxICanvas2D.html#clip()">clip</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.