2075 lines
112 KiB
HTML
2075 lines
112 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!-- NewPage -->
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc (version 1.7.0_51) on Mon Jan 18 15:50:54 CET 2016 -->
|
|
<title>mxGraphicsCanvas2D (mxGraph 3.4.1.3 API Specification)</title>
|
|
<meta name="date" content="2016-01-18">
|
|
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="mxGraphicsCanvas2D (mxGraph 3.4.1.3 API Specification)";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a name="navbar_top">
|
|
<!-- -->
|
|
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../overview-summary.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"><em><p><b>mxGraph 3.4.1.3</b></p></em></div>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../com/mxgraph/canvas/mxGraphics2DCanvas.html" title="class in com.mxgraph.canvas"><span class="strong">Prev Class</span></a></li>
|
|
<li><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.CanvasState.html" title="class in com.mxgraph.canvas"><span class="strong">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../index.html?com/mxgraph/canvas/mxGraphicsCanvas2D.html" target="_top">Frames</a></li>
|
|
<li><a href="mxGraphicsCanvas2D.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../../allclasses-noframe.html">All Classes</a></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>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li><a href="#nested_class_summary">Nested</a> | </li>
|
|
<li><a href="#field_summary">Field</a> | </li>
|
|
<li><a href="#constructor_summary">Constr</a> | </li>
|
|
<li><a href="#method_summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li><a href="#field_detail">Field</a> | </li>
|
|
<li><a href="#constructor_detail">Constr</a> | </li>
|
|
<li><a href="#method_detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip-navbar_top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<div class="header">
|
|
<div class="subTitle">com.mxgraph.canvas</div>
|
|
<h2 title="Class mxGraphicsCanvas2D" class="title">Class mxGraphicsCanvas2D</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></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><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></dd>
|
|
</dl>
|
|
<hr>
|
|
<br>
|
|
<pre>public class <span class="strong">mxGraphicsCanvas2D</span>
|
|
extends <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
|
|
implements <a href="../../../com/mxgraph/canvas/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 ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="nested_class_summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Nested Class Summary</h3>
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
|
|
<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Class and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected class </code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.CanvasState.html" title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</a></strong></code> </td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="field_summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Summary</h3>
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
|
|
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Field and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#COLOR_CACHE_SIZE">COLOR_CACHE_SIZE</a></strong></code>
|
|
<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 <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/LinkedHashMap.html?is-external=true" title="class or interface in java.util">LinkedHashMap</a><<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</a>></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#colorCache">colorCache</a></strong></code>
|
|
<div class="block">Caches parsed colors.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/geom/GeneralPath.html?is-external=true" title="class or interface in java.awt.geom">GeneralPath</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#currentPath">currentPath</a></strong></code>
|
|
<div class="block">Holds the current path.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#graphics">graphics</a></strong></code>
|
|
<div class="block">Reference to the graphics instance for painting.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#IMAGE_SCALING">IMAGE_SCALING</a></strong></code>
|
|
<div class="block">Specifies the image scaling quality.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#JAVA_TEXT_WIDTH_DELTA">JAVA_TEXT_WIDTH_DELTA</a></strong></code>
|
|
<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>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#lastCap">lastCap</a></strong></code>
|
|
<div class="block">Stroke caching.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#lastDashed">lastDashed</a></strong></code>
|
|
<div class="block">Stroke caching.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#lastDashPattern">lastDashPattern</a></strong></code>
|
|
<div class="block">Stroke caching.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Font.html?is-external=true" title="class or interface in java.awt">Font</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#lastFont">lastFont</a></strong></code>
|
|
<div class="block">Font caching.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#lastFontFamily">lastFontFamily</a></strong></code>
|
|
<div class="block">Font caching.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected int</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#lastFontSize">lastFontSize</a></strong></code>
|
|
<div class="block">Font caching.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected int</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#lastFontStyle">lastFontStyle</a></strong></code>
|
|
<div class="block">Font caching.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected int</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#lastJoin">lastJoin</a></strong></code>
|
|
<div class="block">Stroke caching.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected float</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#lastMiterLimit">lastMiterLimit</a></strong></code>
|
|
<div class="block">Stroke caching.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Stroke.html?is-external=true" title="class or interface in java.awt">Stroke</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#lastStroke">lastStroke</a></strong></code>
|
|
<div class="block">Stroke caching.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected float</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#lastStrokeWidth">lastStrokeWidth</a></strong></code>
|
|
<div class="block">Stroke caching.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/javax/swing/CellRendererPane.html?is-external=true" title="class or interface in javax.swing">CellRendererPane</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#rendererPane">rendererPane</a></strong></code>
|
|
<div class="block">Optional renderer pane to be used for HTML label rendering.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Stack.html?is-external=true" title="class or interface in java.util">Stack</a><<a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.CanvasState.html" title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</a>></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#stack">stack</a></strong></code>
|
|
<div class="block">Stack of states for save/restore.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected <a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.CanvasState.html" title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#state">state</a></strong></code>
|
|
<div class="block">Represents the current state of the canvas.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#textEnabled">textEnabled</a></strong></code>
|
|
<div class="block">Specifies if text output should be rendered.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor_summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Summary</h3>
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colOne" scope="col">Constructor and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colOne"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#mxGraphicsCanvas2D(java.awt.Graphics2D)">mxGraphicsCanvas2D</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</a> g)</code>
|
|
<div class="block">Constructs a new graphics export canvas.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method_summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
|
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Method and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#begin()">begin</a></strong>()</code>
|
|
<div class="block">Begins a new path.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected <a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.CanvasState.html" title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#cloneState(com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState)">cloneState</a></strong>(<a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.CanvasState.html" title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</a> state)</code>
|
|
<div class="block">Returns a clone of thec given state.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#close()">close</a></strong>()</code>
|
|
<div class="block">Closes the current path.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Font.html?is-external=true" title="class or interface in java.awt">Font</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#createFont(java.lang.String, int, int)">createFont</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> family,
|
|
int style,
|
|
int size)</code>
|
|
<div class="block">Hook for subclassers to implement font caching.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#createHtmlDocument(java.lang.String, java.lang.String)">createHtmlDocument</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> text,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> style)</code>
|
|
<div class="block">Creates a HTML document for the given text and CSS style.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#createHtmlDocument(java.lang.String, java.lang.String, java.lang.String, int, int, boolean, java.lang.String, boolean)">createHtmlDocument</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> text,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> align,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> valign,
|
|
int w,
|
|
int h,
|
|
boolean wrap,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> overflow,
|
|
boolean clip)</code>
|
|
<div class="block">Creates a HTML document around the given markup.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#createImageGraphics(double, double, double, double, boolean, boolean)">createImageGraphics</a></strong>(double x,
|
|
double y,
|
|
double w,
|
|
double h,
|
|
boolean flipH,
|
|
boolean flipV)</code>
|
|
<div class="block">Creates a graphic instance for rendering an image.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#createTextGraphics(double, double, double, double, double, boolean, java.lang.String, java.lang.String)">createTextGraphics</a></strong>(double x,
|
|
double y,
|
|
double w,
|
|
double h,
|
|
double rotation,
|
|
boolean clip,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> align,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> valign)</code>
|
|
<div class="block">Returns a new graphics instance with the correct color and font for
|
|
text rendering.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#curveTo(double, double, double, double, double, double)">curveTo</a></strong>(double x1,
|
|
double y1,
|
|
double x2,
|
|
double y2,
|
|
double x3,
|
|
double y3)</code>
|
|
<div class="block">Draws a bezier curve to the given point.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#drawImage(java.awt.Graphics2D, java.awt.Image, int, int)">drawImage</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</a> graphics,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt">Image</a> image,
|
|
int x,
|
|
int y)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#ellipse(double, double, double, double)">ellipse</a></strong>(double x,
|
|
double y,
|
|
double w,
|
|
double h)</code>
|
|
<div class="block">Next fill or stroke should draw an ellipse.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#fill()">fill</a></strong>()</code>
|
|
<div class="block">Fills the current path.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#fillAndStroke()">fillAndStroke</a></strong>()</code>
|
|
<div class="block">Fills and paints the outline of the current path.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#getFontName(java.lang.String)">getFontName</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> family)</code>
|
|
<div class="block">Returns a font name for the given CSS values for font-family.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#getGraphics()">getGraphics</a></strong>()</code>
|
|
<div class="block">Returns the graphics instance.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Rectangle.html?is-external=true" title="class or interface in java.awt">Rectangle</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#getImageBounds(java.awt.Image, double, double, double, double, boolean)">getImageBounds</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt">Image</a> img,
|
|
double x,
|
|
double y,
|
|
double w,
|
|
double h,
|
|
boolean aspect)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Dimension.html?is-external=true" title="class or interface in java.awt">Dimension</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#getImageSize(java.awt.Image)">getImageSize</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt">Image</a> image)</code>
|
|
<div class="block">Returns the size for the given image.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/geom/Point2D.html?is-external=true" title="class or interface in java.awt.geom">Point2D</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#getMargin(java.lang.String, java.lang.String)">getMargin</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> align,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> valign)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/javax/swing/JLabel.html?is-external=true" title="class or interface in javax.swing">JLabel</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#getTextRenderer()">getTextRenderer</a></strong>()</code>
|
|
<div class="block">Hook to return the renderer for HTML formatted text.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#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></strong>(double x,
|
|
double y,
|
|
double w,
|
|
double h,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> str,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> align,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> valign,
|
|
boolean wrap,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> format,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> overflow,
|
|
boolean clip,
|
|
double rotation)</code>
|
|
<div class="block">Draws the given HTML text.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#image(double, double, double, double, java.lang.String, boolean, boolean, boolean)">image</a></strong>(double x,
|
|
double y,
|
|
double w,
|
|
double h,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> src,
|
|
boolean aspect,
|
|
boolean flipH,
|
|
boolean flipV)</code>
|
|
<div class="block">Draws the given image.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#isTextEnabled()">isTextEnabled</a></strong>()</code>
|
|
<div class="block">Returns true if text should be rendered.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#lineTo(double, double)">lineTo</a></strong>(double x,
|
|
double y)</code>
|
|
<div class="block">Draws a line to the given path.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt">Image</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#loadImage(java.lang.String)">loadImage</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> src)</code>
|
|
<div class="block">Hook for image caching.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#moveTo(double, double)">moveTo</a></strong>(double x,
|
|
double y)</code>
|
|
<div class="block">Moves to the given path.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#paintCurrentPath(boolean, boolean)">paintCurrentPath</a></strong>(boolean filled,
|
|
boolean stroked)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#paintShadow(boolean, boolean)">paintShadow</a></strong>(boolean filled,
|
|
boolean stroked)</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#parseColor(java.lang.String)">parseColor</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> hex)</code>
|
|
<div class="block">Helper method that uses <a href="../../../com/mxgraph/util/mxUtils.html#parseColor(java.lang.String)"><code>mxUtils.parseColor(String)</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#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></strong>(double x,
|
|
double y,
|
|
double w,
|
|
double h,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> str,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> align,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> valign,
|
|
boolean wrap,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> format,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> overflow,
|
|
boolean clip,
|
|
double rotation)</code>
|
|
<div class="block">Draws the given text.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#quadTo(double, double, double, double)">quadTo</a></strong>(double x1,
|
|
double y1,
|
|
double x2,
|
|
double y2)</code>
|
|
<div class="block">Draws a quadratic curve to the given point.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#rect(double, double, double, double)">rect</a></strong>(double x,
|
|
double y,
|
|
double w,
|
|
double h)</code>
|
|
<div class="block">Next fill or stroke should draw a rectangle.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#restore()">restore</a></strong>()</code>
|
|
<div class="block">Restores the last canvas state.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#rotate(double, boolean, boolean, double, double)">rotate</a></strong>(double theta,
|
|
boolean flipH,
|
|
boolean flipV,
|
|
double cx,
|
|
double cy)</code>
|
|
<div class="block">Rotates the canvas by the given angle around the given center.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#roundrect(double, double, double, double, double, double)">roundrect</a></strong>(double x,
|
|
double y,
|
|
double w,
|
|
double h,
|
|
double dx,
|
|
double dy)</code>
|
|
<div class="block">Implements a rounded rectangle using a path.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#save()">save</a></strong>()</code>
|
|
<div class="block">Saves the current canvas state.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#scale(double)">scale</a></strong>(double value)</code>
|
|
<div class="block">Uniformaly scales the canvas by the given amount.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt">Image</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#scaleImage(java.awt.Image, int, int)">scaleImage</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt">Image</a> img,
|
|
int w,
|
|
int h)</code>
|
|
<div class="block">Uses <a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#IMAGE_SCALING"><code>IMAGE_SCALING</code></a> to scale the given image.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setAlpha(double)">setAlpha</a></strong>(double value)</code>
|
|
<div class="block">Default value 1.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setDashed(boolean)">setDashed</a></strong>(boolean value)</code>
|
|
<div class="block">Sets the dashed state.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setDashPattern(java.lang.String)">setDashPattern</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</code>
|
|
<div class="block">Sets the dash pattern.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setFillColor(java.lang.String)">setFillColor</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</code>
|
|
<div class="block">Default value <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setFontBackgroundColor(java.lang.String)">setFontBackgroundColor</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</code>
|
|
<div class="block">Default value "#000000".</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setFontBorderColor(java.lang.String)">setFontBorderColor</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</code>
|
|
<div class="block">Default value "#000000".</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setFontColor(java.lang.String)">setFontColor</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</code>
|
|
<div class="block">Default value "#000000".</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setFontFamily(java.lang.String)">setFontFamily</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</code>
|
|
<div class="block">Default value <a href="../../../com/mxgraph/util/mxConstants.html#DEFAULT_FONTFAMILY"><code>mxConstants.DEFAULT_FONTFAMILY</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setFontSize(double)">setFontSize</a></strong>(double value)</code>
|
|
<div class="block">Default value <a href="../../../com/mxgraph/util/mxConstants.html#DEFAULT_FONTSIZE"><code>mxConstants.DEFAULT_FONTSIZE</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setFontStyle(int)">setFontStyle</a></strong>(int value)</code>
|
|
<div class="block">Default value 0.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setGradient(java.lang.String, java.lang.String, double, double, double, double, java.lang.String, double, double)">setGradient</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> color1,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> color2,
|
|
double x,
|
|
double y,
|
|
double w,
|
|
double h,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> direction,
|
|
double alpha1,
|
|
double alpha2)</code>
|
|
<div class="block">Prepares the canvas to draw a gradient.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setGraphics(java.awt.Graphics2D)">setGraphics</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</a> value)</code>
|
|
<div class="block">Sets the graphics instance.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setLineCap(java.lang.String)">setLineCap</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</code>
|
|
<div class="block">Sets the linecap.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setLineJoin(java.lang.String)">setLineJoin</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</code>
|
|
<div class="block">Sets the linejoin.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setMiterLimit(double)">setMiterLimit</a></strong>(double value)</code>
|
|
<div class="block">Sets the miterlimit.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setShadow(boolean)">setShadow</a></strong>(boolean value)</code>
|
|
<div class="block">Enables or disables the painting of shadows.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setShadowAlpha(double)">setShadowAlpha</a></strong>(double value)</code>
|
|
<div class="block">Default value <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setShadowColor(java.lang.String)">setShadowColor</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</code>
|
|
<div class="block">Default value <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setShadowOffset(double, double)">setShadowOffset</a></strong>(double dx,
|
|
double dy)</code>
|
|
<div class="block">Default value <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setStrokeColor(java.lang.String)">setStrokeColor</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</code>
|
|
<div class="block">Caches color conversion as it is expensive.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setStrokeWidth(double)">setStrokeWidth</a></strong>(double value)</code>
|
|
<div class="block">Sets the stroke width.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#setTextEnabled(boolean)">setTextEnabled</a></strong>(boolean value)</code>
|
|
<div class="block">Disables or enables text rendering.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#stroke()">stroke</a></strong>()</code>
|
|
<div class="block">Paints the outline of the current path.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.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></strong>(double x,
|
|
double y,
|
|
double w,
|
|
double h,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> str,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> align,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> valign,
|
|
boolean wrap,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> format,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> overflow,
|
|
boolean clip,
|
|
double rotation,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> textDirection)</code>
|
|
<div class="block">Draws the given text.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#translate(double, double)">translate</a></strong>(double dx,
|
|
double dy)</code>
|
|
<div class="block">Translates the canvas by the given amount.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#updateFont()">updateFont</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#updateStroke()">updateStroke</a></strong>()</code> </td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class java.lang.<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
|
|
<code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="field_detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Detail</h3>
|
|
<a name="IMAGE_SCALING">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>IMAGE_SCALING</h4>
|
|
<pre>public static int IMAGE_SCALING</pre>
|
|
<div class="block">Specifies the image scaling quality. Default is Image.SCALE_SMOOTH.
|
|
See <a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#scaleImage(java.awt.Image, int, int)"><code>scaleImage(Image, int, int)</code></a></div>
|
|
</li>
|
|
</ul>
|
|
<a name="JAVA_TEXT_WIDTH_DELTA">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>JAVA_TEXT_WIDTH_DELTA</h4>
|
|
<pre>public static int JAVA_TEXT_WIDTH_DELTA</pre>
|
|
<div class="block">Specifies the additional pixels when computing the text width for HTML labels.
|
|
Default is 2.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="COLOR_CACHE_SIZE">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>COLOR_CACHE_SIZE</h4>
|
|
<pre>public static int COLOR_CACHE_SIZE</pre>
|
|
<div class="block">Specifies the size of the cache used to store parsed colors</div>
|
|
</li>
|
|
</ul>
|
|
<a name="graphics">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>graphics</h4>
|
|
<pre>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</a> graphics</pre>
|
|
<div class="block">Reference to the graphics instance for painting.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="textEnabled">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>textEnabled</h4>
|
|
<pre>protected boolean textEnabled</pre>
|
|
<div class="block">Specifies if text output should be rendered. Default is true.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="state">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>state</h4>
|
|
<pre>protected transient <a href="../../../com/mxgraph/canvas/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 name="stack">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>stack</h4>
|
|
<pre>protected transient <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Stack.html?is-external=true" title="class or interface in java.util">Stack</a><<a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.CanvasState.html" title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</a>> stack</pre>
|
|
<div class="block">Stack of states for save/restore.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="currentPath">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>currentPath</h4>
|
|
<pre>protected transient <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/geom/GeneralPath.html?is-external=true" title="class or interface in java.awt.geom">GeneralPath</a> currentPath</pre>
|
|
<div class="block">Holds the current path.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="rendererPane">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>rendererPane</h4>
|
|
<pre>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/javax/swing/CellRendererPane.html?is-external=true" title="class or interface in javax.swing">CellRendererPane</a> rendererPane</pre>
|
|
<div class="block">Optional renderer pane to be used for HTML label rendering.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="lastFont">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>lastFont</h4>
|
|
<pre>protected transient <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Font.html?is-external=true" title="class or interface in java.awt">Font</a> lastFont</pre>
|
|
<div class="block">Font caching.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="lastFontStyle">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>lastFontStyle</h4>
|
|
<pre>protected transient int lastFontStyle</pre>
|
|
<div class="block">Font caching.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="lastFontSize">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>lastFontSize</h4>
|
|
<pre>protected transient int lastFontSize</pre>
|
|
<div class="block">Font caching.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="lastFontFamily">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>lastFontFamily</h4>
|
|
<pre>protected transient <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> lastFontFamily</pre>
|
|
<div class="block">Font caching.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="lastStroke">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>lastStroke</h4>
|
|
<pre>protected transient <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Stroke.html?is-external=true" title="class or interface in java.awt">Stroke</a> lastStroke</pre>
|
|
<div class="block">Stroke caching.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="lastStrokeWidth">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>lastStrokeWidth</h4>
|
|
<pre>protected transient float lastStrokeWidth</pre>
|
|
<div class="block">Stroke caching.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="lastCap">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>lastCap</h4>
|
|
<pre>protected transient int lastCap</pre>
|
|
<div class="block">Stroke caching.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="lastJoin">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>lastJoin</h4>
|
|
<pre>protected transient int lastJoin</pre>
|
|
<div class="block">Stroke caching.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="lastMiterLimit">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>lastMiterLimit</h4>
|
|
<pre>protected transient float lastMiterLimit</pre>
|
|
<div class="block">Stroke caching.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="lastDashed">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>lastDashed</h4>
|
|
<pre>protected transient boolean lastDashed</pre>
|
|
<div class="block">Stroke caching.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="lastDashPattern">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>lastDashPattern</h4>
|
|
<pre>protected transient <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> lastDashPattern</pre>
|
|
<div class="block">Stroke caching.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="colorCache">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>colorCache</h4>
|
|
<pre>protected transient <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/LinkedHashMap.html?is-external=true" title="class or interface in java.util">LinkedHashMap</a><<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</a>> colorCache</pre>
|
|
<div class="block">Caches parsed colors.</div>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor_detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Detail</h3>
|
|
<a name="mxGraphicsCanvas2D(java.awt.Graphics2D)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>mxGraphicsCanvas2D</h4>
|
|
<pre>public mxGraphicsCanvas2D(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</a> g)</pre>
|
|
<div class="block">Constructs a new graphics export canvas.</div>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method_detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a name="setGraphics(java.awt.Graphics2D)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setGraphics</h4>
|
|
<pre>public void setGraphics(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</a> value)</pre>
|
|
<div class="block">Sets the graphics instance.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="getGraphics()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getGraphics</h4>
|
|
<pre>public <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</a> getGraphics()</pre>
|
|
<div class="block">Returns the graphics instance.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="isTextEnabled()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isTextEnabled</h4>
|
|
<pre>public boolean isTextEnabled()</pre>
|
|
<div class="block">Returns true if text should be rendered.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="setTextEnabled(boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setTextEnabled</h4>
|
|
<pre>public void setTextEnabled(boolean value)</pre>
|
|
<div class="block">Disables or enables text rendering.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="save()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>save</h4>
|
|
<pre>public void save()</pre>
|
|
<div class="block">Saves the current canvas state.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#save()">save</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="restore()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>restore</h4>
|
|
<pre>public void restore()</pre>
|
|
<div class="block">Restores the last canvas state.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#restore()">restore</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="cloneState(com.mxgraph.canvas.mxGraphicsCanvas2D.CanvasState)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>cloneState</h4>
|
|
<pre>protected <a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.CanvasState.html" title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</a> cloneState(<a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.CanvasState.html" title="class in com.mxgraph.canvas">mxGraphicsCanvas2D.CanvasState</a> state)</pre>
|
|
<div class="block">Returns a clone of thec given state.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="scale(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>scale</h4>
|
|
<pre>public void scale(double value)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#scale(double)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Uniformaly scales the canvas by the given amount.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#scale(double)">scale</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - The new scale value.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="translate(double, double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>translate</h4>
|
|
<pre>public void translate(double dx,
|
|
double dy)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#translate(double, double)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Translates the canvas by the given amount.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#translate(double, double)">translate</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
<dt><span class="strong">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 name="rotate(double, boolean, boolean, double, double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>rotate</h4>
|
|
<pre>public void rotate(double theta,
|
|
boolean flipH,
|
|
boolean flipV,
|
|
double cx,
|
|
double cy)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#rotate(double, boolean, boolean, double, double)">mxICanvas2D</a></code></strong></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><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#rotate(double, boolean, boolean, double, double)">rotate</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
<dt><span class="strong">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 name="setStrokeWidth(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setStrokeWidth</h4>
|
|
<pre>public void setStrokeWidth(double value)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setStrokeWidth(double)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Sets the stroke width. This should default to 1 if unset.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setStrokeWidth(double)">setStrokeWidth</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
<dt><span class="strong">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 name="setStrokeColor(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setStrokeColor</h4>
|
|
<pre>public void setStrokeColor(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</pre>
|
|
<div class="block">Caches color conversion as it is expensive.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setStrokeColor(java.lang.String)">setStrokeColor</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - Hex representation of the color or <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setDashed(boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setDashed</h4>
|
|
<pre>public void setDashed(boolean value)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setDashed(boolean)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Sets the dashed state. This should default to false if unset.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setDashed(boolean)">setDashed</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - Boolean representing the dashed state.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setDashPattern(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setDashPattern</h4>
|
|
<pre>public void setDashPattern(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setDashPattern(java.lang.String)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Sets the dash pattern. This should default to "3 3" if unset.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setDashPattern(java.lang.String)">setDashPattern</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
<dt><span class="strong">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 name="setLineCap(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setLineCap</h4>
|
|
<pre>public void setLineCap(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setLineCap(java.lang.String)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Sets the linecap. This should default to "flat" if unset.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setLineCap(java.lang.String)">setLineCap</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - "flat", "square" or "round".</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setLineJoin(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setLineJoin</h4>
|
|
<pre>public void setLineJoin(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setLineJoin(java.lang.String)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Sets the linejoin. This should default to "miter" if unset.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setLineJoin(java.lang.String)">setLineJoin</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - "miter", "round" or "bevel".</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setMiterLimit(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setMiterLimit</h4>
|
|
<pre>public void setMiterLimit(double value)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setMiterLimit(double)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Sets the miterlimit. This should default to 10 if unset.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setMiterLimit(double)">setMiterLimit</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setFontSize(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setFontSize</h4>
|
|
<pre>public void setFontSize(double value)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontSize(double)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Default value <a href="../../../com/mxgraph/util/mxConstants.html#DEFAULT_FONTSIZE"><code>mxConstants.DEFAULT_FONTSIZE</code></a>.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontSize(double)">setFontSize</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setFontColor(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setFontColor</h4>
|
|
<pre>public void setFontColor(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontColor(java.lang.String)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Default value "#000000".</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontColor(java.lang.String)">setFontColor</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - Hex representation of the color or <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setFontBackgroundColor(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setFontBackgroundColor</h4>
|
|
<pre>public void setFontBackgroundColor(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontBackgroundColor(java.lang.String)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Default value "#000000".</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontBackgroundColor(java.lang.String)">setFontBackgroundColor</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - Hex representation of the color or <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setFontBorderColor(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setFontBorderColor</h4>
|
|
<pre>public void setFontBorderColor(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontBorderColor(java.lang.String)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Default value "#000000".</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontBorderColor(java.lang.String)">setFontBorderColor</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - Hex representation of the color or <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setFontFamily(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setFontFamily</h4>
|
|
<pre>public void setFontFamily(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontFamily(java.lang.String)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Default value <a href="../../../com/mxgraph/util/mxConstants.html#DEFAULT_FONTFAMILY"><code>mxConstants.DEFAULT_FONTFAMILY</code></a>.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontFamily(java.lang.String)">setFontFamily</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setFontStyle(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setFontStyle</h4>
|
|
<pre>public void setFontStyle(int value)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontStyle(int)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Default value 0. See <a href="../../../com/mxgraph/util/mxConstants.html#STYLE_FONTSTYLE"><code>mxConstants.STYLE_FONTSTYLE</code></a>.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setFontStyle(int)">setFontStyle</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setAlpha(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setAlpha</h4>
|
|
<pre>public void setAlpha(double value)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setAlpha(double)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Default value 1. This method may add rendering overhead and should be
|
|
used with care.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setAlpha(double)">setAlpha</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setFillColor(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setFillColor</h4>
|
|
<pre>public void setFillColor(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setFillColor(java.lang.String)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Default value <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setFillColor(java.lang.String)">setFillColor</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - Hex representation of the color or <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="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>public void setGradient(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> color1,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> color2,
|
|
double x,
|
|
double y,
|
|
double w,
|
|
double h,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> direction,
|
|
double alpha1,
|
|
double alpha2)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setGradient(java.lang.String, java.lang.String, double, double, double, double, java.lang.String, double, double)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Prepares the canvas to draw a gradient.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setGradient(java.lang.String, java.lang.String, double, double, double, double, java.lang.String, double, double)">setGradient</a></code> in interface <code><a href="../../../com/mxgraph/canvas/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="../../../com/mxgraph/util/mxConstants.html#DIRECTION_SOUTH"><code>mxConstants.DIRECTION_SOUTH</code></a>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="parseColor(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>parseColor</h4>
|
|
<pre>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</a> parseColor(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> hex)</pre>
|
|
<div class="block">Helper method that uses <a href="../../../com/mxgraph/util/mxUtils.html#parseColor(java.lang.String)"><code>mxUtils.parseColor(String)</code></a>.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="rect(double, double, double, double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>rect</h4>
|
|
<pre>public void rect(double x,
|
|
double y,
|
|
double w,
|
|
double h)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#rect(double, double, double, double)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Next fill or stroke should draw a rectangle.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#rect(double, double, double, double)">rect</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="roundrect(double, double, double, double, double, double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>roundrect</h4>
|
|
<pre>public void roundrect(double x,
|
|
double y,
|
|
double w,
|
|
double h,
|
|
double dx,
|
|
double dy)</pre>
|
|
<div class="block">Implements a rounded rectangle using a path.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#roundrect(double, double, double, double, double, double)">roundrect</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="ellipse(double, double, double, double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>ellipse</h4>
|
|
<pre>public void ellipse(double x,
|
|
double y,
|
|
double w,
|
|
double h)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#ellipse(double, double, double, double)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Next fill or stroke should draw an ellipse.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#ellipse(double, double, double, double)">ellipse</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="image(double, double, double, double, java.lang.String, boolean, boolean, boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>image</h4>
|
|
<pre>public void image(double x,
|
|
double y,
|
|
double w,
|
|
double h,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> src,
|
|
boolean aspect,
|
|
boolean flipH,
|
|
boolean flipV)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#image(double, double, double, double, java.lang.String, boolean, boolean, boolean)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Draws the given image.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#image(double, double, double, double, java.lang.String, boolean, boolean, boolean)">image</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="drawImage(java.awt.Graphics2D, java.awt.Image, int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>drawImage</h4>
|
|
<pre>protected void drawImage(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</a> graphics,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt">Image</a> image,
|
|
int x,
|
|
int y)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="loadImage(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>loadImage</h4>
|
|
<pre>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt">Image</a> loadImage(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> src)</pre>
|
|
<div class="block">Hook for image caching.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="getImageBounds(java.awt.Image, double, double, double, double, boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getImageBounds</h4>
|
|
<pre>protected final <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Rectangle.html?is-external=true" title="class or interface in java.awt">Rectangle</a> getImageBounds(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt">Image</a> img,
|
|
double x,
|
|
double y,
|
|
double w,
|
|
double h,
|
|
boolean aspect)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getImageSize(java.awt.Image)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getImageSize</h4>
|
|
<pre>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Dimension.html?is-external=true" title="class or interface in java.awt">Dimension</a> getImageSize(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt">Image</a> image)</pre>
|
|
<div class="block">Returns the size for the given image.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="scaleImage(java.awt.Image, int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>scaleImage</h4>
|
|
<pre>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt">Image</a> scaleImage(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt">Image</a> img,
|
|
int w,
|
|
int h)</pre>
|
|
<div class="block">Uses <a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.html#IMAGE_SCALING"><code>IMAGE_SCALING</code></a> to scale the given image.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="createImageGraphics(double, double, double, double, boolean, boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createImageGraphics</h4>
|
|
<pre>protected final <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</a> createImageGraphics(double x,
|
|
double y,
|
|
double w,
|
|
double h,
|
|
boolean flipH,
|
|
boolean flipV)</pre>
|
|
<div class="block">Creates a graphic instance for rendering an image.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="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>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> createHtmlDocument(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> text,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> align,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> valign,
|
|
int w,
|
|
int h,
|
|
boolean wrap,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> overflow,
|
|
boolean clip)</pre>
|
|
<div class="block">Creates a HTML document around the given markup.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="createHtmlDocument(java.lang.String, java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createHtmlDocument</h4>
|
|
<pre>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> createHtmlDocument(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> text,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> style)</pre>
|
|
<div class="block">Creates a HTML document for the given text and CSS style.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="getTextRenderer()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getTextRenderer</h4>
|
|
<pre>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/javax/swing/JLabel.html?is-external=true" title="class or interface in javax.swing">JLabel</a> 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 name="getMargin(java.lang.String, java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getMargin</h4>
|
|
<pre>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/geom/Point2D.html?is-external=true" title="class or interface in java.awt.geom">Point2D</a> getMargin(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> align,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> valign)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="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>protected void htmlText(double x,
|
|
double y,
|
|
double w,
|
|
double h,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> str,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> align,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> valign,
|
|
boolean wrap,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> format,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> overflow,
|
|
boolean clip,
|
|
double rotation)</pre>
|
|
<div class="block">Draws the given HTML text.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="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>public void text(double x,
|
|
double y,
|
|
double w,
|
|
double h,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> str,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> align,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> valign,
|
|
boolean wrap,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> format,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> overflow,
|
|
boolean clip,
|
|
double rotation,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> textDirection)</pre>
|
|
<div class="block">Draws the given text.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#text(double, double, double, double, java.lang.String, java.lang.String, java.lang.String, boolean, java.lang.String, java.lang.String, boolean, double, java.lang.String)">text</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="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>public void plainText(double x,
|
|
double y,
|
|
double w,
|
|
double h,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> str,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> align,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> valign,
|
|
boolean wrap,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> format,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> overflow,
|
|
boolean clip,
|
|
double rotation)</pre>
|
|
<div class="block">Draws the given text.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="createTextGraphics(double, double, double, double, double, boolean, java.lang.String, java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createTextGraphics</h4>
|
|
<pre>protected final <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</a> createTextGraphics(double x,
|
|
double y,
|
|
double w,
|
|
double h,
|
|
double rotation,
|
|
boolean clip,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> align,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> valign)</pre>
|
|
<div class="block">Returns a new graphics instance with the correct color and font for
|
|
text rendering.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="begin()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>begin</h4>
|
|
<pre>public void begin()</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#begin()">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Begins a new path.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#begin()">begin</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="moveTo(double, double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>moveTo</h4>
|
|
<pre>public void moveTo(double x,
|
|
double y)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#moveTo(double, double)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Moves to the given path.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#moveTo(double, double)">moveTo</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="lineTo(double, double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>lineTo</h4>
|
|
<pre>public void lineTo(double x,
|
|
double y)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#lineTo(double, double)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Draws a line to the given path.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#lineTo(double, double)">lineTo</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="quadTo(double, double, double, double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>quadTo</h4>
|
|
<pre>public void quadTo(double x1,
|
|
double y1,
|
|
double x2,
|
|
double y2)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#quadTo(double, double, double, double)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Draws a quadratic curve to the given point.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#quadTo(double, double, double, double)">quadTo</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="curveTo(double, double, double, double, double, double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>curveTo</h4>
|
|
<pre>public void curveTo(double x1,
|
|
double y1,
|
|
double x2,
|
|
double y2,
|
|
double x3,
|
|
double y3)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#curveTo(double, double, double, double, double, double)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Draws a bezier curve to the given point.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#curveTo(double, double, double, double, double, double)">curveTo</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="close()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>close</h4>
|
|
<pre>public void close()</pre>
|
|
<div class="block">Closes the current path.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#close()">close</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="stroke()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>stroke</h4>
|
|
<pre>public void stroke()</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#stroke()">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Paints the outline of the current path.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#stroke()">stroke</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="fill()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>fill</h4>
|
|
<pre>public void fill()</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#fill()">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Fills the current path.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#fill()">fill</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="fillAndStroke()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>fillAndStroke</h4>
|
|
<pre>public void fillAndStroke()</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#fillAndStroke()">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Fills and paints the outline of the current path.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#fillAndStroke()">fillAndStroke</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="paintCurrentPath(boolean, boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>paintCurrentPath</h4>
|
|
<pre>protected void paintCurrentPath(boolean filled,
|
|
boolean stroked)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="paintShadow(boolean, boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>paintShadow</h4>
|
|
<pre>protected void paintShadow(boolean filled,
|
|
boolean stroked)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setShadow(boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setShadow</h4>
|
|
<pre>public void setShadow(boolean value)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setShadow(boolean)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Enables or disables the painting of shadows.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setShadow(boolean)">setShadow</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - Whether the shadow should be enabled.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setShadowColor(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setShadowColor</h4>
|
|
<pre>public void setShadowColor(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setShadowColor(java.lang.String)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Default value <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setShadowColor(java.lang.String)">setShadowColor</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - Hex representation of the color or <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setShadowAlpha(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setShadowAlpha</h4>
|
|
<pre>public void setShadowAlpha(double value)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setShadowAlpha(double)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Default value <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setShadowAlpha(double)">setShadowAlpha</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - Hex representation of the color or <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setShadowOffset(double, double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setShadowOffset</h4>
|
|
<pre>public void setShadowOffset(double dx,
|
|
double dy)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setShadowOffset(double, double)">mxICanvas2D</a></code></strong></div>
|
|
<div class="block">Default value <a href="../../../com/mxgraph/util/mxConstants.html#NONE"><code>mxConstants.NONE</code></a>.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html#setShadowOffset(double, double)">setShadowOffset</a></code> in interface <code><a href="../../../com/mxgraph/canvas/mxICanvas2D.html" title="interface in com.mxgraph.canvas">mxICanvas2D</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="updateFont()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>updateFont</h4>
|
|
<pre>protected void updateFont()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="createFont(java.lang.String, int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createFont</h4>
|
|
<pre>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Font.html?is-external=true" title="class or interface in java.awt">Font</a> createFont(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> family,
|
|
int style,
|
|
int size)</pre>
|
|
<div class="block">Hook for subclassers to implement font caching.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="getFontName(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getFontName</h4>
|
|
<pre>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getFontName(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> family)</pre>
|
|
<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 name="updateStroke()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>updateStroke</h4>
|
|
<pre>protected void updateStroke()</pre>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<div class="bottomNav"><a name="navbar_bottom">
|
|
<!-- -->
|
|
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../overview-summary.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"><em><p><b>mxGraph 3.4.1.3</b></p></em></div>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../com/mxgraph/canvas/mxGraphics2DCanvas.html" title="class in com.mxgraph.canvas"><span class="strong">Prev Class</span></a></li>
|
|
<li><a href="../../../com/mxgraph/canvas/mxGraphicsCanvas2D.CanvasState.html" title="class in com.mxgraph.canvas"><span class="strong">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../index.html?com/mxgraph/canvas/mxGraphicsCanvas2D.html" target="_top">Frames</a></li>
|
|
<li><a href="mxGraphicsCanvas2D.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../../allclasses-noframe.html">All 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>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li><a href="#nested_class_summary">Nested</a> | </li>
|
|
<li><a href="#field_summary">Field</a> | </li>
|
|
<li><a href="#constructor_summary">Constr</a> | </li>
|
|
<li><a href="#method_summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li><a href="#field_detail">Field</a> | </li>
|
|
<li><a href="#constructor_detail">Constr</a> | </li>
|
|
<li><a href="#method_detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip-navbar_bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
<p class="legalCopy"><small><font size=1>Copyright (c) 2010 <a href="http://www.mxgraph.com/"
|
|
target="_blank">Gaudenz Alder, David Benson</a>. All rights reserved.</font></small></p>
|
|
</body>
|
|
</html>
|