maxGraph/java/docs/com/mxgraph/canvas/mxGraphicsCanvas2D.html

2387 lines
100 KiB
HTML

<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.5) on Fri Jan 24 13:39:46 UTC 2020 -->
<title>mxGraphicsCanvas2D (mxGraph 4.1.0 API Specification)</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2020-01-24">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
<script type="text/javascript" src="../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../jquery/jquery-3.3.1.js"></script>
<script type="text/javascript" src="../../../jquery/jquery-migrate-3.0.1.js"></script>
<script type="text/javascript" src="../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="mxGraphicsCanvas2D (mxGraph 4.1.0 API Specification)";
}
}
catch(err) {
}
//-->
var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10,"i61":10,"i62":10,"i63":10,"i64":10,"i65":10,"i66":10,"i67":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/mxGraphicsCanvas2D.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><p><b>mxGraph 4.1.0</b></p></div>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">com.mxgraph.canvas</a></div>
<h2 title="Class mxGraphicsCanvas2D" class="title">Class mxGraphicsCanvas2D</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>com.mxgraph.canvas.mxGraphicsCanvas2D</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
</dl>
<hr>
<pre>public class <span class="typeNameLabel">mxGraphicsCanvas2D</span>
extends java.lang.Object
implements <a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></pre>
<div class="block">Used for exporting images. To render to an image from a given XML string,
graph size and background color, the following code is used:
<code>
BufferedImage image = mxUtils.createBufferedImage(width, height, background);
Graphics2D g2 = image.createGraphics();
mxUtils.setAntiAlias(g2, true, true);
XMLReader reader = SAXParserFactory.newInstance().newSAXParser().getXMLReader();
reader.setContentHandler(new mxSaxOutputHandler(new mxGraphicsCanvas2D(g2)));
reader.parse(new InputSource(new StringReader(xml)));
</code>
Text rendering is available for plain text and HTML markup, the latter with optional
word wrapping. CSS support is limited to the following:
http://docs.oracle.com/javase/6/docs/api/index.html?javax/swing/text/html/CSS.html</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="mxGraphicsCanvas2D.CanvasState.html" title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- =========== FIELD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Field</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COLOR_CACHE_SIZE">COLOR_CACHE_SIZE</a></span></code></th>
<td class="colLast">
<div class="block">Specifies the size of the cache used to store parsed colors</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected java.util.LinkedHashMap&lt;java.lang.String,&#8203;java.awt.Color&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#colorCache">colorCache</a></span></code></th>
<td class="colLast">
<div class="block">Caches parsed colors.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected java.awt.geom.GeneralPath</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#currentPath">currentPath</a></span></code></th>
<td class="colLast">
<div class="block">Holds the current path.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected java.awt.Graphics2D</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#graphics">graphics</a></span></code></th>
<td class="colLast">
<div class="block">Reference to the graphics instance for painting.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static double</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#HTML_SCALE">HTML_SCALE</a></span></code></th>
<td class="colLast">
<div class="block">Scale for rendering HTML output.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#HTML_UNIT">HTML_UNIT</a></span></code></th>
<td class="colLast">
<div class="block">Unit to be used for HTML labels.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#IMAGE_SCALING">IMAGE_SCALING</a></span></code></th>
<td class="colLast">
<div class="block">Specifies the image scaling quality.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#JAVA_TEXT_WIDTH_DELTA">JAVA_TEXT_WIDTH_DELTA</a></span></code></th>
<td class="colLast">
<div class="block">Specifies the additional pixels when computing the text width for HTML labels.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#lastCap">lastCap</a></span></code></th>
<td class="colLast">
<div class="block">Stroke caching.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#lastDashed">lastDashed</a></span></code></th>
<td class="colLast">
<div class="block">Stroke caching.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected java.lang.Object</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#lastDashPattern">lastDashPattern</a></span></code></th>
<td class="colLast">
<div class="block">Stroke caching.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected java.awt.Font</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#lastFont">lastFont</a></span></code></th>
<td class="colLast">
<div class="block">Font caching.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#lastFontFamily">lastFontFamily</a></span></code></th>
<td class="colLast">
<div class="block">Font caching.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#lastFontSize">lastFontSize</a></span></code></th>
<td class="colLast">
<div class="block">Font caching.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#lastFontStyle">lastFontStyle</a></span></code></th>
<td class="colLast">
<div class="block">Font caching.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#lastJoin">lastJoin</a></span></code></th>
<td class="colLast">
<div class="block">Stroke caching.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#lastMiterLimit">lastMiterLimit</a></span></code></th>
<td class="colLast">
<div class="block">Stroke caching.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected java.awt.Stroke</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#lastStroke">lastStroke</a></span></code></th>
<td class="colLast">
<div class="block">Stroke caching.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#lastStrokeWidth">lastStrokeWidth</a></span></code></th>
<td class="colLast">
<div class="block">Stroke caching.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected javax.swing.CellRendererPane</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#rendererPane">rendererPane</a></span></code></th>
<td class="colLast">
<div class="block">Optional renderer pane to be used for HTML label rendering.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected java.util.Stack&lt;<a href="mxGraphicsCanvas2D.CanvasState.html" title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#stack">stack</a></span></code></th>
<td class="colLast">
<div class="block">Stack of states for save/restore.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="mxGraphicsCanvas2D.CanvasState.html" title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#state">state</a></span></code></th>
<td class="colLast">
<div class="block">Represents the current state of the canvas.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#textEnabled">textEnabled</a></span></code></th>
<td class="colLast">
<div class="block">Specifies if text output should be rendered.</div>
</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(java.awt.Graphics2D)">mxGraphicsCanvas2D</a></span>&#8203;(java.awt.Graphics2D&nbsp;g)</code></th>
<td class="colLast">
<div class="block">Constructs a new graphics export canvas.</div>
</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#begin()">begin</a></span>()</code></th>
<td class="colLast">
<div class="block">Begins a new path.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>protected <a href="mxGraphicsCanvas2D.CanvasState.html" title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#cloneState(com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState)">cloneState</a></span>&#8203;(<a href="mxGraphicsCanvas2D.CanvasState.html" title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</a>&nbsp;state)</code></th>
<td class="colLast">
<div class="block">Returns a clone of the given state.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#close()">close</a></span>()</code></th>
<td class="colLast">
<div class="block">Closes the current path.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>protected java.awt.Font</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createFont(java.lang.String,int,int)">createFont</a></span>&#8203;(java.lang.String&nbsp;family,
int&nbsp;style,
int&nbsp;size)</code></th>
<td class="colLast">
<div class="block">Hook for subclassers to implement font caching.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>protected java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createHtmlDocument(java.lang.String,java.lang.String)">createHtmlDocument</a></span>&#8203;(java.lang.String&nbsp;text,
java.lang.String&nbsp;style)</code></th>
<td class="colLast">
<div class="block">Creates a HTML document for the given text and CSS style.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>protected java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createHtmlDocument(java.lang.String,java.lang.String,java.lang.String,int,int,boolean,java.lang.String,boolean)">createHtmlDocument</a></span>&#8203;(java.lang.String&nbsp;text,
java.lang.String&nbsp;align,
java.lang.String&nbsp;valign,
int&nbsp;w,
int&nbsp;h,
boolean&nbsp;wrap,
java.lang.String&nbsp;overflow,
boolean&nbsp;clip)</code></th>
<td class="colLast">
<div class="block">Creates a HTML document around the given markup.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>protected java.awt.Graphics2D</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createImageGraphics(double,double,double,double,boolean,boolean)">createImageGraphics</a></span>&#8203;(double&nbsp;x,
double&nbsp;y,
double&nbsp;w,
double&nbsp;h,
boolean&nbsp;flipH,
boolean&nbsp;flipV)</code></th>
<td class="colLast">
<div class="block">Creates a graphic instance for rendering an image.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>protected java.awt.Graphics2D</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createTextGraphics(double,double,double,double,double,boolean,java.lang.String,java.lang.String)">createTextGraphics</a></span>&#8203;(double&nbsp;x,
double&nbsp;y,
double&nbsp;w,
double&nbsp;h,
double&nbsp;rotation,
boolean&nbsp;clip,
java.lang.String&nbsp;align,
java.lang.String&nbsp;valign)</code></th>
<td class="colLast">
<div class="block">Returns a new graphics instance with the correct color and font for
text rendering.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#curveTo(double,double,double,double,double,double)">curveTo</a></span>&#8203;(double&nbsp;x1,
double&nbsp;y1,
double&nbsp;x2,
double&nbsp;y2,
double&nbsp;x3,
double&nbsp;y3)</code></th>
<td class="colLast">
<div class="block">Draws a bezier curve to the given point.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#drawImage(java.awt.Graphics2D,java.awt.Image,int,int)">drawImage</a></span>&#8203;(java.awt.Graphics2D&nbsp;graphics,
java.awt.Image&nbsp;image,
int&nbsp;x,
int&nbsp;y)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ellipse(double,double,double,double)">ellipse</a></span>&#8203;(double&nbsp;x,
double&nbsp;y,
double&nbsp;w,
double&nbsp;h)</code></th>
<td class="colLast">
<div class="block">Next fill or stroke should draw an ellipse.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fill()">fill</a></span>()</code></th>
<td class="colLast">
<div class="block">Fills the current path.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fillAndStroke()">fillAndStroke</a></span>()</code></th>
<td class="colLast">
<div class="block">Fills and paints the outline of the current path.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>protected java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getFontName(java.lang.String)">getFontName</a></span>&#8203;(java.lang.String&nbsp;family)</code></th>
<td class="colLast">
<div class="block">Returns a font name for the given CSS values for font-family.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>java.awt.Graphics2D</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getGraphics()">getGraphics</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the graphics instance.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>protected java.awt.Rectangle</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getImageBounds(java.awt.Image,double,double,double,double,boolean)">getImageBounds</a></span>&#8203;(java.awt.Image&nbsp;img,
double&nbsp;x,
double&nbsp;y,
double&nbsp;w,
double&nbsp;h,
boolean&nbsp;aspect)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>protected java.awt.Dimension</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getImageSize(java.awt.Image)">getImageSize</a></span>&#8203;(java.awt.Image&nbsp;image)</code></th>
<td class="colLast">
<div class="block">Returns the size for the given image.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>protected java.awt.geom.Point2D</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMargin(java.lang.String,java.lang.String)">getMargin</a></span>&#8203;(java.lang.String&nbsp;align,
java.lang.String&nbsp;valign)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>protected javax.swing.JLabel</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getTextRenderer()">getTextRenderer</a></span>()</code></th>
<td class="colLast">
<div class="block">Hook to return the renderer for HTML formatted text.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#htmlText(double,double,double,double,java.lang.String,java.lang.String,java.lang.String,boolean,java.lang.String,java.lang.String,boolean,double)">htmlText</a></span>&#8203;(double&nbsp;x,
double&nbsp;y,
double&nbsp;w,
double&nbsp;h,
java.lang.String&nbsp;str,
java.lang.String&nbsp;align,
java.lang.String&nbsp;valign,
boolean&nbsp;wrap,
java.lang.String&nbsp;format,
java.lang.String&nbsp;overflow,
boolean&nbsp;clip,
double&nbsp;rotation)</code></th>
<td class="colLast">
<div class="block">Draws the given HTML text.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#image(double,double,double,double,java.lang.String,boolean,boolean,boolean)">image</a></span>&#8203;(double&nbsp;x,
double&nbsp;y,
double&nbsp;w,
double&nbsp;h,
java.lang.String&nbsp;src,
boolean&nbsp;aspect,
boolean&nbsp;flipH,
boolean&nbsp;flipV)</code></th>
<td class="colLast">
<div class="block">Draws the given image.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isTextEnabled()">isTextEnabled</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns true if text should be rendered.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#lineTo(double,double)">lineTo</a></span>&#8203;(double&nbsp;x,
double&nbsp;y)</code></th>
<td class="colLast">
<div class="block">Draws a line to the given path.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>protected java.awt.Image</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#loadImage(java.lang.String)">loadImage</a></span>&#8203;(java.lang.String&nbsp;src)</code></th>
<td class="colLast">
<div class="block">Hook for image caching.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#moveTo(double,double)">moveTo</a></span>&#8203;(double&nbsp;x,
double&nbsp;y)</code></th>
<td class="colLast">
<div class="block">Moves to the given path.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#paintCurrentPath(boolean,boolean)">paintCurrentPath</a></span>&#8203;(boolean&nbsp;filled,
boolean&nbsp;stroked)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>protected void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#paintShadow(boolean,boolean)">paintShadow</a></span>&#8203;(boolean&nbsp;filled,
boolean&nbsp;stroked)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>protected java.awt.Color</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#parseColor(java.lang.String)">parseColor</a></span>&#8203;(java.lang.String&nbsp;hex)</code></th>
<td class="colLast">
<div class="block">Helper method that uses <a href="../util/mxUtils.html#parseColor(java.lang.String)"><code>mxUtils.parseColor(String)</code></a>.</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>protected java.awt.Color</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#parseColor(java.lang.String,double)">parseColor</a></span>&#8203;(java.lang.String&nbsp;hex,
double&nbsp;alpha)</code></th>
<td class="colLast">
<div class="block">Helper method that uses <a href="../util/mxUtils.html#parseColor(java.lang.String)"><code>mxUtils.parseColor(String)</code></a>.</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#plainText(double,double,double,double,java.lang.String,java.lang.String,java.lang.String,boolean,java.lang.String,java.lang.String,boolean,double)">plainText</a></span>&#8203;(double&nbsp;x,
double&nbsp;y,
double&nbsp;w,
double&nbsp;h,
java.lang.String&nbsp;str,
java.lang.String&nbsp;align,
java.lang.String&nbsp;valign,
boolean&nbsp;wrap,
java.lang.String&nbsp;format,
java.lang.String&nbsp;overflow,
boolean&nbsp;clip,
double&nbsp;rotation)</code></th>
<td class="colLast">
<div class="block">Draws the given text.</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#quadTo(double,double,double,double)">quadTo</a></span>&#8203;(double&nbsp;x1,
double&nbsp;y1,
double&nbsp;x2,
double&nbsp;y2)</code></th>
<td class="colLast">
<div class="block">Draws a quadratic curve to the given point.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#rect(double,double,double,double)">rect</a></span>&#8203;(double&nbsp;x,
double&nbsp;y,
double&nbsp;w,
double&nbsp;h)</code></th>
<td class="colLast">
<div class="block">Next fill or stroke should draw a rectangle.</div>
</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#restore()">restore</a></span>()</code></th>
<td class="colLast">
<div class="block">Restores the last canvas state.</div>
</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#rotate(double,boolean,boolean,double,double)">rotate</a></span>&#8203;(double&nbsp;theta,
boolean&nbsp;flipH,
boolean&nbsp;flipV,
double&nbsp;cx,
double&nbsp;cy)</code></th>
<td class="colLast">
<div class="block">Rotates the canvas by the given angle around the given center.</div>
</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#roundrect(double,double,double,double,double,double)">roundrect</a></span>&#8203;(double&nbsp;x,
double&nbsp;y,
double&nbsp;w,
double&nbsp;h,
double&nbsp;dx,
double&nbsp;dy)</code></th>
<td class="colLast">
<div class="block">Implements a rounded rectangle using a path.</div>
</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#save()">save</a></span>()</code></th>
<td class="colLast">
<div class="block">Saves the current canvas state.</div>
</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#scale(double)">scale</a></span>&#8203;(double&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Uniformaly scales the canvas by the given amount.</div>
</td>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><code>protected java.awt.Image</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#scaleImage(java.awt.Image,int,int)">scaleImage</a></span>&#8203;(java.awt.Image&nbsp;img,
int&nbsp;w,
int&nbsp;h)</code></th>
<td class="colLast">
<div class="block">Uses <a href="#IMAGE_SCALING"><code>IMAGE_SCALING</code></a> to scale the given image.</div>
</td>
</tr>
<tr id="i38" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setAlpha(double)">setAlpha</a></span>&#8203;(double&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Default value 1.</div>
</td>
</tr>
<tr id="i39" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDashed(boolean)">setDashed</a></span>&#8203;(boolean&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Sets the dashed state.</div>
</td>
</tr>
<tr id="i40" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDashed(boolean,boolean)">setDashed</a></span>&#8203;(boolean&nbsp;value,
boolean&nbsp;fixDash)</code></th>
<td class="colLast">
<div class="block">Sets the dashed state.</div>
</td>
</tr>
<tr id="i41" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDashPattern(java.lang.String)">setDashPattern</a></span>&#8203;(java.lang.String&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Sets the dash pattern.</div>
</td>
</tr>
<tr id="i42" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setFillAlpha(double)">setFillAlpha</a></span>&#8203;(double&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Default value 1.</div>
</td>
</tr>
<tr id="i43" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setFillColor(java.lang.String)">setFillColor</a></span>&#8203;(java.lang.String&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Default value <a href="../util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
</td>
</tr>
<tr id="i44" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setFontBackgroundColor(java.lang.String)">setFontBackgroundColor</a></span>&#8203;(java.lang.String&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Default value "#000000".</div>
</td>
</tr>
<tr id="i45" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setFontBorderColor(java.lang.String)">setFontBorderColor</a></span>&#8203;(java.lang.String&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Default value "#000000".</div>
</td>
</tr>
<tr id="i46" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setFontColor(java.lang.String)">setFontColor</a></span>&#8203;(java.lang.String&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Default value "#000000".</div>
</td>
</tr>
<tr id="i47" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setFontFamily(java.lang.String)">setFontFamily</a></span>&#8203;(java.lang.String&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Default value <a href="../util/mxConstants.html#DEFAULT_FONTFAMILY"><code>mxConstants.DEFAULT_FONTFAMILY</code></a>.</div>
</td>
</tr>
<tr id="i48" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setFontSize(double)">setFontSize</a></span>&#8203;(double&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Default value <a href="../util/mxConstants.html#DEFAULT_FONTSIZE"><code>mxConstants.DEFAULT_FONTSIZE</code></a>.</div>
</td>
</tr>
<tr id="i49" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setFontStyle(int)">setFontStyle</a></span>&#8203;(int&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Default value 0.</div>
</td>
</tr>
<tr id="i50" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setGradient(java.lang.String,java.lang.String,double,double,double,double,java.lang.String,double,double)">setGradient</a></span>&#8203;(java.lang.String&nbsp;color1,
java.lang.String&nbsp;color2,
double&nbsp;x,
double&nbsp;y,
double&nbsp;w,
double&nbsp;h,
java.lang.String&nbsp;direction,
double&nbsp;alpha1,
double&nbsp;alpha2)</code></th>
<td class="colLast">
<div class="block">Prepares the canvas to draw a gradient.</div>
</td>
</tr>
<tr id="i51" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setGraphics(java.awt.Graphics2D)">setGraphics</a></span>&#8203;(java.awt.Graphics2D&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Sets the graphics instance.</div>
</td>
</tr>
<tr id="i52" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setLineCap(java.lang.String)">setLineCap</a></span>&#8203;(java.lang.String&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Sets the linecap.</div>
</td>
</tr>
<tr id="i53" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setLineJoin(java.lang.String)">setLineJoin</a></span>&#8203;(java.lang.String&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Sets the linejoin.</div>
</td>
</tr>
<tr id="i54" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setMiterLimit(double)">setMiterLimit</a></span>&#8203;(double&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Sets the miterlimit.</div>
</td>
</tr>
<tr id="i55" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setShadow(boolean)">setShadow</a></span>&#8203;(boolean&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Enables or disables the painting of shadows.</div>
</td>
</tr>
<tr id="i56" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setShadowAlpha(double)">setShadowAlpha</a></span>&#8203;(double&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Default value <a href="../util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
</td>
</tr>
<tr id="i57" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setShadowColor(java.lang.String)">setShadowColor</a></span>&#8203;(java.lang.String&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Default value <a href="../util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
</td>
</tr>
<tr id="i58" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setShadowOffset(double,double)">setShadowOffset</a></span>&#8203;(double&nbsp;dx,
double&nbsp;dy)</code></th>
<td class="colLast">
<div class="block">Default value <a href="../util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
</td>
</tr>
<tr id="i59" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setStrokeAlpha(double)">setStrokeAlpha</a></span>&#8203;(double&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Default value 1.</div>
</td>
</tr>
<tr id="i60" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setStrokeColor(java.lang.String)">setStrokeColor</a></span>&#8203;(java.lang.String&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Caches color conversion as it is expensive.</div>
</td>
</tr>
<tr id="i61" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setStrokeWidth(double)">setStrokeWidth</a></span>&#8203;(double&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Sets the stroke width.</div>
</td>
</tr>
<tr id="i62" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setTextEnabled(boolean)">setTextEnabled</a></span>&#8203;(boolean&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Disables or enables text rendering.</div>
</td>
</tr>
<tr id="i63" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#stroke()">stroke</a></span>()</code></th>
<td class="colLast">
<div class="block">Paints the outline of the current path.</div>
</td>
</tr>
<tr id="i64" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#text(double,double,double,double,java.lang.String,java.lang.String,java.lang.String,boolean,java.lang.String,java.lang.String,boolean,double,java.lang.String)">text</a></span>&#8203;(double&nbsp;x,
double&nbsp;y,
double&nbsp;w,
double&nbsp;h,
java.lang.String&nbsp;str,
java.lang.String&nbsp;align,
java.lang.String&nbsp;valign,
boolean&nbsp;wrap,
java.lang.String&nbsp;format,
java.lang.String&nbsp;overflow,
boolean&nbsp;clip,
double&nbsp;rotation,
java.lang.String&nbsp;textDirection)</code></th>
<td class="colLast">
<div class="block">Draws the given text.</div>
</td>
</tr>
<tr id="i65" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#translate(double,double)">translate</a></span>&#8203;(double&nbsp;dx,
double&nbsp;dy)</code></th>
<td class="colLast">
<div class="block">Translates the canvas by the given amount.</div>
</td>
</tr>
<tr id="i66" class="altColor">
<td class="colFirst"><code>protected void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#updateFont()">updateFont</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i67" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#updateStroke()">updateStroke</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a id="IMAGE_SCALING">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>IMAGE_SCALING</h4>
<pre>public static&nbsp;int IMAGE_SCALING</pre>
<div class="block">Specifies the image scaling quality. Default is Image.SCALE_SMOOTH.
See <a href="#scaleImage(java.awt.Image,int,int)"><code>scaleImage(Image, int, int)</code></a></div>
</li>
</ul>
<a id="JAVA_TEXT_WIDTH_DELTA">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>JAVA_TEXT_WIDTH_DELTA</h4>
<pre>public static&nbsp;int JAVA_TEXT_WIDTH_DELTA</pre>
<div class="block">Specifies the additional pixels when computing the text width for HTML labels.
Default is 5.</div>
</li>
</ul>
<a id="HTML_SCALE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>HTML_SCALE</h4>
<pre>public static&nbsp;double HTML_SCALE</pre>
<div class="block">Scale for rendering HTML output. Default is 1.</div>
</li>
</ul>
<a id="HTML_UNIT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>HTML_UNIT</h4>
<pre>public static&nbsp;java.lang.String HTML_UNIT</pre>
<div class="block">Unit to be used for HTML labels. Default is "pt". If you units within
HTML labels are used, this should match those units to produce a
consistent output. If the value is "px", then HTML_SCALE should be
changed the match the ratio between px units for rendering HTML and
the units used for rendering other graphics elements. This value is
0.6 on Linux and 0.75 on all other platforms.</div>
</li>
</ul>
<a id="COLOR_CACHE_SIZE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COLOR_CACHE_SIZE</h4>
<pre>public static&nbsp;int COLOR_CACHE_SIZE</pre>
<div class="block">Specifies the size of the cache used to store parsed colors</div>
</li>
</ul>
<a id="graphics">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>graphics</h4>
<pre>protected&nbsp;java.awt.Graphics2D graphics</pre>
<div class="block">Reference to the graphics instance for painting.</div>
</li>
</ul>
<a id="textEnabled">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>textEnabled</h4>
<pre>protected&nbsp;boolean textEnabled</pre>
<div class="block">Specifies if text output should be rendered. Default is true.</div>
</li>
</ul>
<a id="state">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>state</h4>
<pre>protected transient&nbsp;<a href="mxGraphicsCanvas2D.CanvasState.html" title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</a> state</pre>
<div class="block">Represents the current state of the canvas.</div>
</li>
</ul>
<a id="stack">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stack</h4>
<pre>protected transient&nbsp;java.util.Stack&lt;<a href="mxGraphicsCanvas2D.CanvasState.html" title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</a>&gt; stack</pre>
<div class="block">Stack of states for save/restore.</div>
</li>
</ul>
<a id="currentPath">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>currentPath</h4>
<pre>protected transient&nbsp;java.awt.geom.GeneralPath currentPath</pre>
<div class="block">Holds the current path.</div>
</li>
</ul>
<a id="rendererPane">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rendererPane</h4>
<pre>protected&nbsp;javax.swing.CellRendererPane rendererPane</pre>
<div class="block">Optional renderer pane to be used for HTML label rendering.</div>
</li>
</ul>
<a id="lastFont">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lastFont</h4>
<pre>protected transient&nbsp;java.awt.Font lastFont</pre>
<div class="block">Font caching.</div>
</li>
</ul>
<a id="lastFontStyle">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lastFontStyle</h4>
<pre>protected transient&nbsp;int lastFontStyle</pre>
<div class="block">Font caching.</div>
</li>
</ul>
<a id="lastFontSize">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lastFontSize</h4>
<pre>protected transient&nbsp;int lastFontSize</pre>
<div class="block">Font caching.</div>
</li>
</ul>
<a id="lastFontFamily">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lastFontFamily</h4>
<pre>protected transient&nbsp;java.lang.String lastFontFamily</pre>
<div class="block">Font caching.</div>
</li>
</ul>
<a id="lastStroke">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lastStroke</h4>
<pre>protected transient&nbsp;java.awt.Stroke lastStroke</pre>
<div class="block">Stroke caching.</div>
</li>
</ul>
<a id="lastStrokeWidth">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lastStrokeWidth</h4>
<pre>protected transient&nbsp;float lastStrokeWidth</pre>
<div class="block">Stroke caching.</div>
</li>
</ul>
<a id="lastCap">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lastCap</h4>
<pre>protected transient&nbsp;int lastCap</pre>
<div class="block">Stroke caching.</div>
</li>
</ul>
<a id="lastJoin">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lastJoin</h4>
<pre>protected transient&nbsp;int lastJoin</pre>
<div class="block">Stroke caching.</div>
</li>
</ul>
<a id="lastMiterLimit">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lastMiterLimit</h4>
<pre>protected transient&nbsp;float lastMiterLimit</pre>
<div class="block">Stroke caching.</div>
</li>
</ul>
<a id="lastDashed">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lastDashed</h4>
<pre>protected transient&nbsp;boolean lastDashed</pre>
<div class="block">Stroke caching.</div>
</li>
</ul>
<a id="lastDashPattern">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lastDashPattern</h4>
<pre>protected transient&nbsp;java.lang.Object lastDashPattern</pre>
<div class="block">Stroke caching.</div>
</li>
</ul>
<a id="colorCache">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>colorCache</h4>
<pre>protected transient&nbsp;java.util.LinkedHashMap&lt;java.lang.String,&#8203;java.awt.Color&gt; colorCache</pre>
<div class="block">Caches parsed colors.</div>
</li>
</ul>
</li>
</ul>
</section>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a id="&lt;init&gt;(java.awt.Graphics2D)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>mxGraphicsCanvas2D</h4>
<pre>public&nbsp;mxGraphicsCanvas2D&#8203;(java.awt.Graphics2D&nbsp;g)</pre>
<div class="block">Constructs a new graphics export canvas.</div>
</li>
</ul>
</li>
</ul>
</section>
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="setGraphics(java.awt.Graphics2D)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setGraphics</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setGraphics&#8203;(java.awt.Graphics2D&nbsp;value)</pre>
<div class="block">Sets the graphics instance.</div>
</li>
</ul>
<a id="getGraphics()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getGraphics</h4>
<pre class="methodSignature">public&nbsp;java.awt.Graphics2D&nbsp;getGraphics()</pre>
<div class="block">Returns the graphics instance.</div>
</li>
</ul>
<a id="isTextEnabled()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isTextEnabled</h4>
<pre class="methodSignature">public&nbsp;boolean&nbsp;isTextEnabled()</pre>
<div class="block">Returns true if text should be rendered.</div>
</li>
</ul>
<a id="setTextEnabled(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTextEnabled</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setTextEnabled&#8203;(boolean&nbsp;value)</pre>
<div class="block">Disables or enables text rendering.</div>
</li>
</ul>
<a id="save()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>save</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;save()</pre>
<div class="block">Saves the current canvas state.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#save()">save</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
</dl>
</li>
</ul>
<a id="restore()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>restore</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;restore()</pre>
<div class="block">Restores the last canvas state.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#restore()">restore</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
</dl>
</li>
</ul>
<a id="cloneState(com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cloneState</h4>
<pre class="methodSignature">protected&nbsp;<a href="mxGraphicsCanvas2D.CanvasState.html" title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</a>&nbsp;cloneState&#8203;(<a href="mxGraphicsCanvas2D.CanvasState.html" title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</a>&nbsp;state)</pre>
<div class="block">Returns a clone of the given state.</div>
</li>
</ul>
<a id="scale(double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>scale</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;scale&#8203;(double&nbsp;value)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#scale(double)">mxICanvas2D</a></code></span></div>
<div class="block">Uniformaly scales the canvas by the given amount.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#scale(double)">scale</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - The new scale value.</dd>
</dl>
</li>
</ul>
<a id="translate(double,double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>translate</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;translate&#8203;(double&nbsp;dx,
double&nbsp;dy)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#translate(double,double)">mxICanvas2D</a></code></span></div>
<div class="block">Translates the canvas by the given amount.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#translate(double,double)">translate</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dx</code> - X-coordinate of the translation.</dd>
<dd><code>dy</code> - Y-coordinate of the translation.</dd>
</dl>
</li>
</ul>
<a id="rotate(double,boolean,boolean,double,double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rotate</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;rotate&#8203;(double&nbsp;theta,
boolean&nbsp;flipH,
boolean&nbsp;flipV,
double&nbsp;cx,
double&nbsp;cy)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#rotate(double,boolean,boolean,double,double)">mxICanvas2D</a></code></span></div>
<div class="block">Rotates the canvas by the given angle around the given center. This
method may add rendering overhead and should be used with care.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#rotate(double,boolean,boolean,double,double)">rotate</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>theta</code> - Rotation angle in degrees (0 - 360).</dd>
<dd><code>flipH</code> - Specifies if drawing should be flipped horizontally.</dd>
<dd><code>flipV</code> - Specifies if drawing should be flipped vertically.</dd>
<dd><code>cx</code> - X-coordinate of the center point.</dd>
<dd><code>cy</code> - Y-coordinate of the center point.</dd>
</dl>
</li>
</ul>
<a id="setStrokeWidth(double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setStrokeWidth</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setStrokeWidth&#8203;(double&nbsp;value)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#setStrokeWidth(double)">mxICanvas2D</a></code></span></div>
<div class="block">Sets the stroke width. This should default to 1 if unset.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#setStrokeWidth(double)">setStrokeWidth</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - Width of the stroke. The value should be multiplied by the
current scale.</dd>
</dl>
</li>
</ul>
<a id="setStrokeColor(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setStrokeColor</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setStrokeColor&#8203;(java.lang.String&nbsp;value)</pre>
<div class="block">Caches color conversion as it is expensive.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#setStrokeColor(java.lang.String)">setStrokeColor</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - Hex representation of the color or <a href="../util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd>
</dl>
</li>
</ul>
<a id="setDashed(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDashed</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setDashed&#8203;(boolean&nbsp;value)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#setDashed(boolean)">mxICanvas2D</a></code></span></div>
<div class="block">Sets the dashed state. This should default to false if unset.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#setDashed(boolean)">setDashed</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - Boolean representing the dashed state.</dd>
</dl>
</li>
</ul>
<a id="setDashed(boolean,boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDashed</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setDashed&#8203;(boolean&nbsp;value,
boolean&nbsp;fixDash)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#setDashed(boolean,boolean)">mxICanvas2D</a></code></span></div>
<div class="block">Sets the dashed state. This should default to false if unset.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#setDashed(boolean,boolean)">setDashed</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - Boolean representing the dashed state.</dd>
</dl>
</li>
</ul>
<a id="setDashPattern(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDashPattern</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setDashPattern&#8203;(java.lang.String&nbsp;value)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#setDashPattern(java.lang.String)">mxICanvas2D</a></code></span></div>
<div class="block">Sets the dash pattern. This should default to "3 3" if unset.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#setDashPattern(java.lang.String)">setDashPattern</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - Space separated list of floats representing the dash
pattern. The value should be multiplied by the current scale.</dd>
</dl>
</li>
</ul>
<a id="setLineCap(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setLineCap</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setLineCap&#8203;(java.lang.String&nbsp;value)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#setLineCap(java.lang.String)">mxICanvas2D</a></code></span></div>
<div class="block">Sets the linecap. This should default to "flat" if unset.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#setLineCap(java.lang.String)">setLineCap</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - "flat", "square" or "round".</dd>
</dl>
</li>
</ul>
<a id="setLineJoin(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setLineJoin</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setLineJoin&#8203;(java.lang.String&nbsp;value)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#setLineJoin(java.lang.String)">mxICanvas2D</a></code></span></div>
<div class="block">Sets the linejoin. This should default to "miter" if unset.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#setLineJoin(java.lang.String)">setLineJoin</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - "miter", "round" or "bevel".</dd>
</dl>
</li>
</ul>
<a id="setMiterLimit(double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMiterLimit</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setMiterLimit&#8203;(double&nbsp;value)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#setMiterLimit(double)">mxICanvas2D</a></code></span></div>
<div class="block">Sets the miterlimit. This should default to 10 if unset.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#setMiterLimit(double)">setMiterLimit</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
</dl>
</li>
</ul>
<a id="setFontSize(double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFontSize</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setFontSize&#8203;(double&nbsp;value)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#setFontSize(double)">mxICanvas2D</a></code></span></div>
<div class="block">Default value <a href="../util/mxConstants.html#DEFAULT_FONTSIZE"><code>mxConstants.DEFAULT_FONTSIZE</code></a>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#setFontSize(double)">setFontSize</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
</dl>
</li>
</ul>
<a id="setFontColor(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFontColor</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setFontColor&#8203;(java.lang.String&nbsp;value)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#setFontColor(java.lang.String)">mxICanvas2D</a></code></span></div>
<div class="block">Default value "#000000".</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#setFontColor(java.lang.String)">setFontColor</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - Hex representation of the color or <a href="../util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd>
</dl>
</li>
</ul>
<a id="setFontBackgroundColor(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFontBackgroundColor</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setFontBackgroundColor&#8203;(java.lang.String&nbsp;value)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#setFontBackgroundColor(java.lang.String)">mxICanvas2D</a></code></span></div>
<div class="block">Default value "#000000".</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#setFontBackgroundColor(java.lang.String)">setFontBackgroundColor</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - Hex representation of the color or <a href="../util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd>
</dl>
</li>
</ul>
<a id="setFontBorderColor(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFontBorderColor</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setFontBorderColor&#8203;(java.lang.String&nbsp;value)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#setFontBorderColor(java.lang.String)">mxICanvas2D</a></code></span></div>
<div class="block">Default value "#000000".</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#setFontBorderColor(java.lang.String)">setFontBorderColor</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - Hex representation of the color or <a href="../util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd>
</dl>
</li>
</ul>
<a id="setFontFamily(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFontFamily</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setFontFamily&#8203;(java.lang.String&nbsp;value)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#setFontFamily(java.lang.String)">mxICanvas2D</a></code></span></div>
<div class="block">Default value <a href="../util/mxConstants.html#DEFAULT_FONTFAMILY"><code>mxConstants.DEFAULT_FONTFAMILY</code></a>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#setFontFamily(java.lang.String)">setFontFamily</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
</dl>
</li>
</ul>
<a id="setFontStyle(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFontStyle</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setFontStyle&#8203;(int&nbsp;value)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#setFontStyle(int)">mxICanvas2D</a></code></span></div>
<div class="block">Default value 0. See <a href="../util/mxConstants.html#STYLE_FONTSTYLE"><code>mxConstants.STYLE_FONTSTYLE</code></a>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#setFontStyle(int)">setFontStyle</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
</dl>
</li>
</ul>
<a id="setAlpha(double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setAlpha</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setAlpha&#8203;(double&nbsp;value)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#setAlpha(double)">mxICanvas2D</a></code></span></div>
<div class="block">Default value 1. This method may add rendering overhead and should be
used with care.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#setAlpha(double)">setAlpha</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
</dl>
</li>
</ul>
<a id="setFillAlpha(double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFillAlpha</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setFillAlpha&#8203;(double&nbsp;value)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#setFillAlpha(double)">mxICanvas2D</a></code></span></div>
<div class="block">Default value 1. This method may add rendering overhead and should be
used with care.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#setFillAlpha(double)">setFillAlpha</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
</dl>
</li>
</ul>
<a id="setStrokeAlpha(double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setStrokeAlpha</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setStrokeAlpha&#8203;(double&nbsp;value)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#setStrokeAlpha(double)">mxICanvas2D</a></code></span></div>
<div class="block">Default value 1. This method may add rendering overhead and should be
used with care.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#setStrokeAlpha(double)">setStrokeAlpha</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
</dl>
</li>
</ul>
<a id="setFillColor(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFillColor</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setFillColor&#8203;(java.lang.String&nbsp;value)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#setFillColor(java.lang.String)">mxICanvas2D</a></code></span></div>
<div class="block">Default value <a href="../util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#setFillColor(java.lang.String)">setFillColor</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - Hex representation of the color or <a href="../util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd>
</dl>
</li>
</ul>
<a id="setGradient(java.lang.String,java.lang.String,double,double,double,double,java.lang.String,double,double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setGradient</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setGradient&#8203;(java.lang.String&nbsp;color1,
java.lang.String&nbsp;color2,
double&nbsp;x,
double&nbsp;y,
double&nbsp;w,
double&nbsp;h,
java.lang.String&nbsp;direction,
double&nbsp;alpha1,
double&nbsp;alpha2)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#setGradient(java.lang.String,java.lang.String,double,double,double,double,java.lang.String,double,double)">mxICanvas2D</a></code></span></div>
<div class="block">Prepares the canvas to draw a gradient.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#setGradient(java.lang.String,java.lang.String,double,double,double,double,java.lang.String,double,double)">setGradient</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
<dd><code>direction</code> - Direction may be null. Use default value
<a href="../util/mxConstants.html#DIRECTION_SOUTH"><code>mxConstants.DIRECTION_SOUTH</code></a>.</dd>
</dl>
</li>
</ul>
<a id="parseColor(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parseColor</h4>
<pre class="methodSignature">protected&nbsp;java.awt.Color&nbsp;parseColor&#8203;(java.lang.String&nbsp;hex)</pre>
<div class="block">Helper method that uses <a href="../util/mxUtils.html#parseColor(java.lang.String)"><code>mxUtils.parseColor(String)</code></a>.</div>
</li>
</ul>
<a id="parseColor(java.lang.String,double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parseColor</h4>
<pre class="methodSignature">protected&nbsp;java.awt.Color&nbsp;parseColor&#8203;(java.lang.String&nbsp;hex,
double&nbsp;alpha)</pre>
<div class="block">Helper method that uses <a href="../util/mxUtils.html#parseColor(java.lang.String)"><code>mxUtils.parseColor(String)</code></a>.</div>
</li>
</ul>
<a id="rect(double,double,double,double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rect</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;rect&#8203;(double&nbsp;x,
double&nbsp;y,
double&nbsp;w,
double&nbsp;h)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#rect(double,double,double,double)">mxICanvas2D</a></code></span></div>
<div class="block">Next fill or stroke should draw a rectangle.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#rect(double,double,double,double)">rect</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
</dl>
</li>
</ul>
<a id="roundrect(double,double,double,double,double,double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>roundrect</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;roundrect&#8203;(double&nbsp;x,
double&nbsp;y,
double&nbsp;w,
double&nbsp;h,
double&nbsp;dx,
double&nbsp;dy)</pre>
<div class="block">Implements a rounded rectangle using a path.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#roundrect(double,double,double,double,double,double)">roundrect</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
</dl>
</li>
</ul>
<a id="ellipse(double,double,double,double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ellipse</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;ellipse&#8203;(double&nbsp;x,
double&nbsp;y,
double&nbsp;w,
double&nbsp;h)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#ellipse(double,double,double,double)">mxICanvas2D</a></code></span></div>
<div class="block">Next fill or stroke should draw an ellipse.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#ellipse(double,double,double,double)">ellipse</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
</dl>
</li>
</ul>
<a id="image(double,double,double,double,java.lang.String,boolean,boolean,boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>image</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;image&#8203;(double&nbsp;x,
double&nbsp;y,
double&nbsp;w,
double&nbsp;h,
java.lang.String&nbsp;src,
boolean&nbsp;aspect,
boolean&nbsp;flipH,
boolean&nbsp;flipV)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#image(double,double,double,double,java.lang.String,boolean,boolean,boolean)">mxICanvas2D</a></code></span></div>
<div class="block">Draws the given image.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#image(double,double,double,double,java.lang.String,boolean,boolean,boolean)">image</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
</dl>
</li>
</ul>
<a id="drawImage(java.awt.Graphics2D,java.awt.Image,int,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>drawImage</h4>
<pre class="methodSignature">protected&nbsp;void&nbsp;drawImage&#8203;(java.awt.Graphics2D&nbsp;graphics,
java.awt.Image&nbsp;image,
int&nbsp;x,
int&nbsp;y)</pre>
</li>
</ul>
<a id="loadImage(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>loadImage</h4>
<pre class="methodSignature">protected&nbsp;java.awt.Image&nbsp;loadImage&#8203;(java.lang.String&nbsp;src)</pre>
<div class="block">Hook for image caching.</div>
</li>
</ul>
<a id="getImageBounds(java.awt.Image,double,double,double,double,boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getImageBounds</h4>
<pre class="methodSignature">protected final&nbsp;java.awt.Rectangle&nbsp;getImageBounds&#8203;(java.awt.Image&nbsp;img,
double&nbsp;x,
double&nbsp;y,
double&nbsp;w,
double&nbsp;h,
boolean&nbsp;aspect)</pre>
</li>
</ul>
<a id="getImageSize(java.awt.Image)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getImageSize</h4>
<pre class="methodSignature">protected&nbsp;java.awt.Dimension&nbsp;getImageSize&#8203;(java.awt.Image&nbsp;image)</pre>
<div class="block">Returns the size for the given image.</div>
</li>
</ul>
<a id="scaleImage(java.awt.Image,int,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>scaleImage</h4>
<pre class="methodSignature">protected&nbsp;java.awt.Image&nbsp;scaleImage&#8203;(java.awt.Image&nbsp;img,
int&nbsp;w,
int&nbsp;h)</pre>
<div class="block">Uses <a href="#IMAGE_SCALING"><code>IMAGE_SCALING</code></a> to scale the given image.</div>
</li>
</ul>
<a id="createImageGraphics(double,double,double,double,boolean,boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createImageGraphics</h4>
<pre class="methodSignature">protected final&nbsp;java.awt.Graphics2D&nbsp;createImageGraphics&#8203;(double&nbsp;x,
double&nbsp;y,
double&nbsp;w,
double&nbsp;h,
boolean&nbsp;flipH,
boolean&nbsp;flipV)</pre>
<div class="block">Creates a graphic instance for rendering an image.</div>
</li>
</ul>
<a id="createHtmlDocument(java.lang.String,java.lang.String,java.lang.String,int,int,boolean,java.lang.String,boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createHtmlDocument</h4>
<pre class="methodSignature">protected&nbsp;java.lang.String&nbsp;createHtmlDocument&#8203;(java.lang.String&nbsp;text,
java.lang.String&nbsp;align,
java.lang.String&nbsp;valign,
int&nbsp;w,
int&nbsp;h,
boolean&nbsp;wrap,
java.lang.String&nbsp;overflow,
boolean&nbsp;clip)</pre>
<div class="block">Creates a HTML document around the given markup.</div>
</li>
</ul>
<a id="createHtmlDocument(java.lang.String,java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createHtmlDocument</h4>
<pre class="methodSignature">protected&nbsp;java.lang.String&nbsp;createHtmlDocument&#8203;(java.lang.String&nbsp;text,
java.lang.String&nbsp;style)</pre>
<div class="block">Creates a HTML document for the given text and CSS style.</div>
</li>
</ul>
<a id="getTextRenderer()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTextRenderer</h4>
<pre class="methodSignature">protected&nbsp;javax.swing.JLabel&nbsp;getTextRenderer()</pre>
<div class="block">Hook to return the renderer for HTML formatted text. This implementation returns
the shared instance of mxLighweightLabel.</div>
</li>
</ul>
<a id="getMargin(java.lang.String,java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMargin</h4>
<pre class="methodSignature">protected&nbsp;java.awt.geom.Point2D&nbsp;getMargin&#8203;(java.lang.String&nbsp;align,
java.lang.String&nbsp;valign)</pre>
</li>
</ul>
<a id="htmlText(double,double,double,double,java.lang.String,java.lang.String,java.lang.String,boolean,java.lang.String,java.lang.String,boolean,double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>htmlText</h4>
<pre class="methodSignature">protected&nbsp;void&nbsp;htmlText&#8203;(double&nbsp;x,
double&nbsp;y,
double&nbsp;w,
double&nbsp;h,
java.lang.String&nbsp;str,
java.lang.String&nbsp;align,
java.lang.String&nbsp;valign,
boolean&nbsp;wrap,
java.lang.String&nbsp;format,
java.lang.String&nbsp;overflow,
boolean&nbsp;clip,
double&nbsp;rotation)</pre>
<div class="block">Draws the given HTML text.</div>
</li>
</ul>
<a id="text(double,double,double,double,java.lang.String,java.lang.String,java.lang.String,boolean,java.lang.String,java.lang.String,boolean,double,java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>text</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;text&#8203;(double&nbsp;x,
double&nbsp;y,
double&nbsp;w,
double&nbsp;h,
java.lang.String&nbsp;str,
java.lang.String&nbsp;align,
java.lang.String&nbsp;valign,
boolean&nbsp;wrap,
java.lang.String&nbsp;format,
java.lang.String&nbsp;overflow,
boolean&nbsp;clip,
double&nbsp;rotation,
java.lang.String&nbsp;textDirection)</pre>
<div class="block">Draws the given text.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="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,java.lang.String)">text</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
</dl>
</li>
</ul>
<a id="plainText(double,double,double,double,java.lang.String,java.lang.String,java.lang.String,boolean,java.lang.String,java.lang.String,boolean,double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>plainText</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;plainText&#8203;(double&nbsp;x,
double&nbsp;y,
double&nbsp;w,
double&nbsp;h,
java.lang.String&nbsp;str,
java.lang.String&nbsp;align,
java.lang.String&nbsp;valign,
boolean&nbsp;wrap,
java.lang.String&nbsp;format,
java.lang.String&nbsp;overflow,
boolean&nbsp;clip,
double&nbsp;rotation)</pre>
<div class="block">Draws the given text.</div>
</li>
</ul>
<a id="createTextGraphics(double,double,double,double,double,boolean,java.lang.String,java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createTextGraphics</h4>
<pre class="methodSignature">protected final&nbsp;java.awt.Graphics2D&nbsp;createTextGraphics&#8203;(double&nbsp;x,
double&nbsp;y,
double&nbsp;w,
double&nbsp;h,
double&nbsp;rotation,
boolean&nbsp;clip,
java.lang.String&nbsp;align,
java.lang.String&nbsp;valign)</pre>
<div class="block">Returns a new graphics instance with the correct color and font for
text rendering.</div>
</li>
</ul>
<a id="begin()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>begin</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;begin()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#begin()">mxICanvas2D</a></code></span></div>
<div class="block">Begins a new path.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#begin()">begin</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
</dl>
</li>
</ul>
<a id="moveTo(double,double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>moveTo</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;moveTo&#8203;(double&nbsp;x,
double&nbsp;y)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#moveTo(double,double)">mxICanvas2D</a></code></span></div>
<div class="block">Moves to the given path.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#moveTo(double,double)">moveTo</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
</dl>
</li>
</ul>
<a id="lineTo(double,double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lineTo</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;lineTo&#8203;(double&nbsp;x,
double&nbsp;y)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#lineTo(double,double)">mxICanvas2D</a></code></span></div>
<div class="block">Draws a line to the given path.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#lineTo(double,double)">lineTo</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
</dl>
</li>
</ul>
<a id="quadTo(double,double,double,double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>quadTo</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;quadTo&#8203;(double&nbsp;x1,
double&nbsp;y1,
double&nbsp;x2,
double&nbsp;y2)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#quadTo(double,double,double,double)">mxICanvas2D</a></code></span></div>
<div class="block">Draws a quadratic curve to the given point.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#quadTo(double,double,double,double)">quadTo</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
</dl>
</li>
</ul>
<a id="curveTo(double,double,double,double,double,double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>curveTo</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;curveTo&#8203;(double&nbsp;x1,
double&nbsp;y1,
double&nbsp;x2,
double&nbsp;y2,
double&nbsp;x3,
double&nbsp;y3)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#curveTo(double,double,double,double,double,double)">mxICanvas2D</a></code></span></div>
<div class="block">Draws a bezier curve to the given point.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#curveTo(double,double,double,double,double,double)">curveTo</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
</dl>
</li>
</ul>
<a id="close()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>close</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;close()</pre>
<div class="block">Closes the current path.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#close()">close</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
</dl>
</li>
</ul>
<a id="stroke()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stroke</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;stroke()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#stroke()">mxICanvas2D</a></code></span></div>
<div class="block">Paints the outline of the current path.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#stroke()">stroke</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
</dl>
</li>
</ul>
<a id="fill()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fill</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;fill()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#fill()">mxICanvas2D</a></code></span></div>
<div class="block">Fills the current path.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#fill()">fill</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
</dl>
</li>
</ul>
<a id="fillAndStroke()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fillAndStroke</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;fillAndStroke()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#fillAndStroke()">mxICanvas2D</a></code></span></div>
<div class="block">Fills and paints the outline of the current path.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#fillAndStroke()">fillAndStroke</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
</dl>
</li>
</ul>
<a id="paintCurrentPath(boolean,boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>paintCurrentPath</h4>
<pre class="methodSignature">protected&nbsp;void&nbsp;paintCurrentPath&#8203;(boolean&nbsp;filled,
boolean&nbsp;stroked)</pre>
</li>
</ul>
<a id="paintShadow(boolean,boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>paintShadow</h4>
<pre class="methodSignature">protected&nbsp;void&nbsp;paintShadow&#8203;(boolean&nbsp;filled,
boolean&nbsp;stroked)</pre>
</li>
</ul>
<a id="setShadow(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setShadow</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setShadow&#8203;(boolean&nbsp;value)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#setShadow(boolean)">mxICanvas2D</a></code></span></div>
<div class="block">Enables or disables the painting of shadows.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#setShadow(boolean)">setShadow</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - Whether the shadow should be enabled.</dd>
</dl>
</li>
</ul>
<a id="setShadowColor(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setShadowColor</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setShadowColor&#8203;(java.lang.String&nbsp;value)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#setShadowColor(java.lang.String)">mxICanvas2D</a></code></span></div>
<div class="block">Default value <a href="../util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#setShadowColor(java.lang.String)">setShadowColor</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - Hex representation of the color or <a href="../util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd>
</dl>
</li>
</ul>
<a id="setShadowAlpha(double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setShadowAlpha</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setShadowAlpha&#8203;(double&nbsp;value)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#setShadowAlpha(double)">mxICanvas2D</a></code></span></div>
<div class="block">Default value <a href="../util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#setShadowAlpha(double)">setShadowAlpha</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - Hex representation of the color or <a href="../util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd>
</dl>
</li>
</ul>
<a id="setShadowOffset(double,double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setShadowOffset</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setShadowOffset&#8203;(double&nbsp;dx,
double&nbsp;dy)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="mxICanvas2D.html#setShadowOffset(double,double)">mxICanvas2D</a></code></span></div>
<div class="block">Default value <a href="../util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="mxICanvas2D.html#setShadowOffset(double,double)">setShadowOffset</a></code>&nbsp;in interface&nbsp;<code><a href="mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
</dl>
</li>
</ul>
<a id="updateFont()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>updateFont</h4>
<pre class="methodSignature">protected&nbsp;void&nbsp;updateFont()</pre>
</li>
</ul>
<a id="createFont(java.lang.String,int,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createFont</h4>
<pre class="methodSignature">protected&nbsp;java.awt.Font&nbsp;createFont&#8203;(java.lang.String&nbsp;family,
int&nbsp;style,
int&nbsp;size)</pre>
<div class="block">Hook for subclassers to implement font caching.</div>
</li>
</ul>
<a id="getFontName(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFontName</h4>
<pre class="methodSignature">protected&nbsp;java.lang.String&nbsp;getFontName&#8203;(java.lang.String&nbsp;family)</pre>
<div class="block">Returns a font name for the given CSS values for font-family.
This implementation returns the first entry for comma-separated
lists of entries.</div>
</li>
</ul>
<a id="updateStroke()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>updateStroke</h4>
<pre class="methodSignature">protected&nbsp;void&nbsp;updateStroke()</pre>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/mxGraphicsCanvas2D.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><p><b>mxGraph 4.1.0</b></p></div>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
<p class="legalCopy"><small><font size=1>Copyright (c) 2010-2017 <a href="http://www.jgraph.com/"
target="_blank">Gaudenz Alder, JGraph Ltd</a>. All rights reserved.</font></small></p>
</footer>
</body>
</html>