1491 lines
67 KiB
HTML
1491 lines
67 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<title>mxGraph: com.mxgraph.mxGdiCanvas Class Reference</title>
|
|
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
|
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div! -->
|
|
|
|
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
|
|
|
|
<td style="padding-left: 0.5em;">
|
|
<div id="projectname">mxGraph
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<!-- Generated by Doxygen 1.7.6.1 -->
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li><a href="dirs.html"><span>Directories</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
|
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><b>com</b> </li>
|
|
<li class="navelem"><a class="el" href="namespacecom_1_1mxgraph.html">mxgraph</a> </li>
|
|
<li class="navelem"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html">mxGdiCanvas</a> </li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="#pub-static-methods">Static Public Member Functions</a> |
|
|
<a href="#pub-static-attribs">Static Public Attributes</a> |
|
|
<a href="#pro-methods">Protected Member Functions</a> |
|
|
<a href="#pro-attribs">Protected Attributes</a> |
|
|
<a href="#properties">Properties</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">com.mxgraph.mxGdiCanvas Class Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<!-- doxytag: class="com::mxgraph::mxGdiCanvas" --><!-- doxytag: inherits="com::mxgraph::mxBasicCanvas" -->
|
|
<p>Implementation of a canvas that uses GDI for painting.
|
|
<a href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#details">More...</a></p>
|
|
<div class="dynheader">
|
|
Inheritance diagram for com.mxgraph.mxGdiCanvas:</div>
|
|
<div class="dyncontent">
|
|
<div class="center">
|
|
<img src="classcom_1_1mxgraph_1_1mxGdiCanvas.png" usemap="#com.mxgraph.mxGdiCanvas_map" alt=""/>
|
|
<map id="com.mxgraph.mxGdiCanvas_map" name="com.mxgraph.mxGdiCanvas_map">
|
|
<area href="classcom_1_1mxgraph_1_1mxBasicCanvas.html" title="Basic implementation of a canvas that draws a graph." alt="com.mxgraph.mxBasicCanvas" shape="rect" coords="0,56,180,80"/>
|
|
<area href="interfacecom_1_1mxgraph_1_1mxICanvas.html" title="Defines the requirements for a canvas that paints the vertices and edges of a graph." alt="com.mxgraph.mxICanvas" shape="rect" coords="0,0,180,24"/>
|
|
</map>
|
|
</div></div>
|
|
|
|
<p><a href="classcom_1_1mxgraph_1_1mxGdiCanvas-members.html">List of all members.</a></p>
|
|
<table class="memberdecls">
|
|
<tr><td colspan="2"><h2><a name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#aa9ae06c89d17b13fb171168419c90a83">mxGdiCanvas</a> ()</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs a new GDI canvas. <a href="#aa9ae06c89d17b13fb171168419c90a83"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a9b5137b9a41060930584e6b089daa0eb">mxGdiCanvas</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#aea5c29449403b8dc069f3f2966767abc">Graphics</a> <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#aae86eb9f2145a6c97729fbd45ac4a5dc">g</a>)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs a new GDI canvas for the given graphics instance. <a href="#a9b5137b9a41060930584e6b089daa0eb"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">override Object </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a76bd38ecebca3a73798ac61c58a5015c">DrawCell</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxCellState.html">mxCellState</a> state)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">see <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas.html#a2b9d62b6b658833c5455b3e79807e73a" title="Draws the given cell.">com.mxgraph.mxICanvas.DrawCell()</a> <a href="#a76bd38ecebca3a73798ac61c58a5015c"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">override Object </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a962325d7b89f75230f1e3fb991b5fe34">DrawLabel</a> (string text, <a class="el" href="classcom_1_1mxgraph_1_1mxCellState.html">mxCellState</a> state, bool html)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">see <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas.html#a81915e5bda4641165f93ac7b9177fae8" title="Draws the given label.">com.mxgraph.mxICanvas.DrawLabel()</a> <a href="#a962325d7b89f75230f1e3fb991b5fe34"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a916256e385f3996f715b5e0634733e93">DrawShape</a> (int x, int y, int w, int h, Dictionary< string, Object > style)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Draws the shape specified with the STYLE_SHAPE key in the given style. <a href="#a916256e385f3996f715b5e0634733e93"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a3e760b411c7644732fc51bc3f4d2ab87">DrawLine</a> (List< <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> > pts, Dictionary< string, Object > style)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Draws the given lines as segments between all points of the given list of mxPoints. <a href="#a3e760b411c7644732fc51bc3f4d2ab87"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a466473b288049a9481f6723b4e9a7ecf">DrawMarker</a> (Object type, <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> p0, <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> pe, float size, Pen pen)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Draws the given type of marker. <a href="#a466473b288049a9481f6723b4e9a7ecf"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#aa3cbd5664957d03feb044be31d7f4140">DrawText</a> (string text, int x, int y, int w, int h, Dictionary< string, Object > style)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Draws the specified text either using drawHtmlString or using drawString. <a href="#aa3cbd5664957d03feb044be31d7f4140"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#aca014bd38921618cde63380cb23a5c4c">Destroy</a> ()</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destroys the canvas and frees all allocated resources. <a href="#aca014bd38921618cde63380cb23a5c4c"></a><br/></td></tr>
|
|
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
|
|
Static Public Member Functions</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a16ab4a93c351e3f983286efe91b13d97">getArcSize</a> (int w, int h)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Computes the arc size for the given dimension. <a href="#a16ab4a93c351e3f983286efe91b13d97"></a><br/></td></tr>
|
|
<tr><td colspan="2"><h2><a name="pub-static-attribs"></a>
|
|
Static Public Attributes</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a8ef97b9528ce5250c1083e6cb04f7142">PRESERVE_IMAGE_ASPECT</a> = true</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Specifies if image aspect should be preserved in drawImage. <a href="#a8ef97b9528ce5250c1083e6cb04f7142"></a><br/></td></tr>
|
|
<tr><td colspan="2"><h2><a name="pro-methods"></a>
|
|
Protected Member Functions</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">Image </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a942524aac27cba6b7269a6656e531683">LoadImage</a> (String image)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns an image instance for the given URL. If the URL has been loaded before than an instance of the same instance is returned as in the previous call. <a href="#a942524aac27cba6b7269a6656e531683"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a81957cbbcb49169c9ec9c1ee29e9e06b">DrawGlassEffect</a> (int x, int y, int w, int h, Dictionary< string, Object > style)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Draws the glass effect. <a href="#a81957cbbcb49169c9ec9c1ee29e9e06b"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a4bbdb94ede3359fb88b0c48b58cafc64">DrawPolygon</a> (Point[] polygon, Brush brush, Pen pen, bool shadow)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Draws a a polygon for the given parameters. <a href="#a4bbdb94ede3359fb88b0c48b58cafc64"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#aff764bbd9912eb131816a7b1f15edcf1">DrawPath</a> (GraphicsPath path, Brush brush, Pen pen, bool shadow)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Draws a path for the given parameters. <a href="#aff764bbd9912eb131816a7b1f15edcf1"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a377dad6cdf37032f38e6a37a1cc99c3a">DrawRect</a> (int x, int y, int w, int h, Brush brush, Pen pen, bool shadow, bool rounded)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Draws a rectangle for the given parameters. <a href="#a377dad6cdf37032f38e6a37a1cc99c3a"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#add3063c9b977a0c7b8e3e1b3cb0b297f">DrawImage</a> (int x, int y, int w, int h, String image)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Draws an image for the given parameters. <a href="#add3063c9b977a0c7b8e3e1b3cb0b297f"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a5bf98a1ff57cb653822231dee6078bae">DrawImage</a> (int x, int y, int w, int h, String image, bool preserveAspect, bool flipH, bool flipV)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Draws an image for the given parameters. <a href="#a5bf98a1ff57cb653822231dee6078bae"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a6904a72d331fe8982f09ab4a0ba7bb4d">DrawOval</a> (int x, int y, int w, int h, Brush brush, Pen pen, bool shadow)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Draws an oval for the given parameters. <a href="#a6904a72d331fe8982f09ab4a0ba7bb4d"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#acad5b993f96aa9f1179db053b8a278a1">DrawRhombus</a> (int x, int y, int w, int h, Brush brush, Pen pen, bool shadow)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Draws an rhombus (aka. diamond) for the given parameters. <a href="#acad5b993f96aa9f1179db053b8a278a1"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a585d7929f93afc8ea271f47988d5a1a6">DrawCylinder</a> (int x, int y, int w, int h, Brush brush, Pen pen, bool shadow)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Draws a cylinder for the given parameters. <a href="#a585d7929f93afc8ea271f47988d5a1a6"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a7c4d17cc55ff4dc3a26c99bee2af011c">DrawActor</a> (int x, int y, int w, int h, Brush brush, Pen pen, bool shadow)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Draws an actor shape for the given parameters. <a href="#a7c4d17cc55ff4dc3a26c99bee2af011c"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#abc935a5e1a3e1f5c1bf6e758ffe2dcd4">DrawCloud</a> (int x, int y, int w, int h, Brush brush, Pen pen, bool shadow)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Draws a cloud shape for the given parameters. <a href="#abc935a5e1a3e1f5c1bf6e758ffe2dcd4"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#ad1d56706145d887515ad4ca5bfc968bb">DrawTriangle</a> (int x, int y, int w, int h, Brush brush, Pen pen, bool shadow, string direction)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Draws a triangle shape for the given parameters. <a href="#ad1d56706145d887515ad4ca5bfc968bb"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a2142bfede33384b19a696af91381f1c7">DrawHexagon</a> (int x, int y, int w, int h, Brush brush, Pen pen, bool shadow, string direction)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Draws a hexagon shape for the given parameters. <a href="#a2142bfede33384b19a696af91381f1c7"></a><br/></td></tr>
|
|
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
|
|
Protected Attributes</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">Dictionary< string, Image > </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#aafa5f7ccb103b83dc69b6439d5f6494a">imageCache</a> = new Dictionary<string, Image>()</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Cache for loading images. <a href="#aafa5f7ccb103b83dc69b6439d5f6494a"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#aea5c29449403b8dc069f3f2966767abc">Graphics</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#aae86eb9f2145a6c97729fbd45ac4a5dc">g</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Global graphics handle to the image. <a href="#aae86eb9f2145a6c97729fbd45ac4a5dc"></a><br/></td></tr>
|
|
<tr><td colspan="2"><h2><a name="properties"></a>
|
|
Properties</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#aea5c29449403b8dc069f3f2966767abc">Graphics</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#aea5c29449403b8dc069f3f2966767abc">Graphics</a><code> [get, set]</code></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets or gets the graphics object to paint the canvas. <a href="#aea5c29449403b8dc069f3f2966767abc"></a><br/></td></tr>
|
|
</table>
|
|
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
|
|
<div class="textblock"><p>Implementation of a canvas that uses GDI for painting. </p>
|
|
</div><hr/><h2>Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" id="aa9ae06c89d17b13fb171168419c90a83"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::mxGdiCanvas" ref="aa9ae06c89d17b13fb171168419c90a83" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#aa9ae06c89d17b13fb171168419c90a83">com.mxgraph.mxGdiCanvas.mxGdiCanvas</a> </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Constructs a new GDI canvas. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a9b5137b9a41060930584e6b089daa0eb"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::mxGdiCanvas" ref="a9b5137b9a41060930584e6b089daa0eb" args="(Graphics g)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#aa9ae06c89d17b13fb171168419c90a83">com.mxgraph.mxGdiCanvas.mxGdiCanvas</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#aea5c29449403b8dc069f3f2966767abc">Graphics</a> </td>
|
|
<td class="paramname"><em>g</em></td><td>)</td>
|
|
<td><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Constructs a new GDI canvas for the given graphics instance. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/><h2>Member Function Documentation</h2>
|
|
<a class="anchor" id="aca014bd38921618cde63380cb23a5c4c"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::Destroy" ref="aca014bd38921618cde63380cb23a5c4c" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#aca014bd38921618cde63380cb23a5c4c">com.mxgraph.mxGdiCanvas.Destroy</a> </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Destroys the canvas and frees all allocated resources. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a7c4d17cc55ff4dc3a26c99bee2af011c"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::DrawActor" ref="a7c4d17cc55ff4dc3a26c99bee2af011c" args="(int x, int y, int w, int h, Brush brush, Pen pen, bool shadow)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a7c4d17cc55ff4dc3a26c99bee2af011c">com.mxgraph.mxGdiCanvas.DrawActor</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>w</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>h</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Brush </td>
|
|
<td class="paramname"><em>brush</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Pen </td>
|
|
<td class="paramname"><em>pen</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>shadow</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Draws an actor shape for the given parameters. </p>
|
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">x</td><td>X-coordinate of the shape.</td></tr>
|
|
<tr><td class="paramname">y</td><td>Y-coordinate of the shape.</td></tr>
|
|
<tr><td class="paramname">w</td><td>Width of the shape.</td></tr>
|
|
<tr><td class="paramname">h</td><td>Height of the shape.</td></tr>
|
|
<tr><td class="paramname">brush</td><td>Optional brush for painting the background.</td></tr>
|
|
<tr><td class="paramname">pen</td><td>Optional pen for painting the border.</td></tr>
|
|
<tr><td class="paramname">shadow</td><td>Boolean indicating if a shadow should be painted.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a76bd38ecebca3a73798ac61c58a5015c"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::DrawCell" ref="a76bd38ecebca3a73798ac61c58a5015c" args="(mxCellState state)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">override Object <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a76bd38ecebca3a73798ac61c58a5015c">com.mxgraph.mxGdiCanvas.DrawCell</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCellState.html">mxCellState</a> </td>
|
|
<td class="paramname"><em>state</em></td><td>)</td>
|
|
<td><code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>see <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas.html#a2b9d62b6b658833c5455b3e79807e73a" title="Draws the given cell.">com.mxgraph.mxICanvas.DrawCell()</a> </p>
|
|
|
|
<p>Implements <a class="el" href="classcom_1_1mxgraph_1_1mxBasicCanvas.html#ab8d6ec57958c57bfc796e3404fdf9816">com.mxgraph.mxBasicCanvas</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="abc935a5e1a3e1f5c1bf6e758ffe2dcd4"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::DrawCloud" ref="abc935a5e1a3e1f5c1bf6e758ffe2dcd4" args="(int x, int y, int w, int h, Brush brush, Pen pen, bool shadow)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#abc935a5e1a3e1f5c1bf6e758ffe2dcd4">com.mxgraph.mxGdiCanvas.DrawCloud</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>w</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>h</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Brush </td>
|
|
<td class="paramname"><em>brush</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Pen </td>
|
|
<td class="paramname"><em>pen</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>shadow</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Draws a cloud shape for the given parameters. </p>
|
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">x</td><td>X-coordinate of the shape.</td></tr>
|
|
<tr><td class="paramname">y</td><td>Y-coordinate of the shape.</td></tr>
|
|
<tr><td class="paramname">w</td><td>Width of the shape.</td></tr>
|
|
<tr><td class="paramname">h</td><td>Height of the shape.</td></tr>
|
|
<tr><td class="paramname">brush</td><td>Optional brush for painting the background.</td></tr>
|
|
<tr><td class="paramname">pen</td><td>Optional pen for painting the border.</td></tr>
|
|
<tr><td class="paramname">shadow</td><td>Boolean indicating if a shadow should be painted.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a585d7929f93afc8ea271f47988d5a1a6"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::DrawCylinder" ref="a585d7929f93afc8ea271f47988d5a1a6" args="(int x, int y, int w, int h, Brush brush, Pen pen, bool shadow)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a585d7929f93afc8ea271f47988d5a1a6">com.mxgraph.mxGdiCanvas.DrawCylinder</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>w</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>h</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Brush </td>
|
|
<td class="paramname"><em>brush</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Pen </td>
|
|
<td class="paramname"><em>pen</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>shadow</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Draws a cylinder for the given parameters. </p>
|
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">x</td><td>X-coordinate of the shape.</td></tr>
|
|
<tr><td class="paramname">y</td><td>Y-coordinate of the shape.</td></tr>
|
|
<tr><td class="paramname">w</td><td>Width of the shape.</td></tr>
|
|
<tr><td class="paramname">h</td><td>Height of the shape.</td></tr>
|
|
<tr><td class="paramname">brush</td><td>Optional brush for painting the background.</td></tr>
|
|
<tr><td class="paramname">pen</td><td>Optional pen for painting the border.</td></tr>
|
|
<tr><td class="paramname">shadow</td><td>Boolean indicating if a shadow should be painted.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a81957cbbcb49169c9ec9c1ee29e9e06b"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::DrawGlassEffect" ref="a81957cbbcb49169c9ec9c1ee29e9e06b" args="(int x, int y, int w, int h, Dictionary< string, Object > style)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a81957cbbcb49169c9ec9c1ee29e9e06b">com.mxgraph.mxGdiCanvas.DrawGlassEffect</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>w</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>h</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Dictionary< string, Object > </td>
|
|
<td class="paramname"><em>style</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Draws the glass effect. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a2142bfede33384b19a696af91381f1c7"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::DrawHexagon" ref="a2142bfede33384b19a696af91381f1c7" args="(int x, int y, int w, int h, Brush brush, Pen pen, bool shadow, string direction)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a2142bfede33384b19a696af91381f1c7">com.mxgraph.mxGdiCanvas.DrawHexagon</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>w</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>h</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Brush </td>
|
|
<td class="paramname"><em>brush</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Pen </td>
|
|
<td class="paramname"><em>pen</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>shadow</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>direction</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Draws a hexagon shape for the given parameters. </p>
|
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">x</td><td>X-coordinate of the shape.</td></tr>
|
|
<tr><td class="paramname">y</td><td>Y-coordinate of the shape.</td></tr>
|
|
<tr><td class="paramname">w</td><td>Width of the shape.</td></tr>
|
|
<tr><td class="paramname">h</td><td>Height of the shape.</td></tr>
|
|
<tr><td class="paramname">brush</td><td>Optional brush for painting the background.</td></tr>
|
|
<tr><td class="paramname">pen</td><td>Optional pen for painting the border.</td></tr>
|
|
<tr><td class="paramname">shadow</td><td>Boolean indicating if a shadow should be painted.</td></tr>
|
|
<tr><td class="paramname">direction</td><td>Specifies the direction of the hexagon.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="add3063c9b977a0c7b8e3e1b3cb0b297f"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::DrawImage" ref="add3063c9b977a0c7b8e3e1b3cb0b297f" args="(int x, int y, int w, int h, String image)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#add3063c9b977a0c7b8e3e1b3cb0b297f">com.mxgraph.mxGdiCanvas.DrawImage</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>w</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>h</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"><em>image</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Draws an image for the given parameters. </p>
|
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">x</td><td>X-coordinate of the image.</td></tr>
|
|
<tr><td class="paramname">y</td><td>Y-coordinate of the image.</td></tr>
|
|
<tr><td class="paramname">w</td><td>Width of the image.</td></tr>
|
|
<tr><td class="paramname">h</td><td>Height of the image.</td></tr>
|
|
<tr><td class="paramname">image</td><td>URL of the image.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a5bf98a1ff57cb653822231dee6078bae"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::DrawImage" ref="a5bf98a1ff57cb653822231dee6078bae" args="(int x, int y, int w, int h, String image, bool preserveAspect, bool flipH, bool flipV)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#add3063c9b977a0c7b8e3e1b3cb0b297f">com.mxgraph.mxGdiCanvas.DrawImage</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>w</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>h</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"><em>image</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>preserveAspect</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>flipH</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>flipV</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Draws an image for the given parameters. </p>
|
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">x</td><td>X-coordinate of the image.</td></tr>
|
|
<tr><td class="paramname">y</td><td>Y-coordinate of the image.</td></tr>
|
|
<tr><td class="paramname">w</td><td>Width of the image.</td></tr>
|
|
<tr><td class="paramname">h</td><td>Height of the image.</td></tr>
|
|
<tr><td class="paramname">image</td><td>URL of the image.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a962325d7b89f75230f1e3fb991b5fe34"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::DrawLabel" ref="a962325d7b89f75230f1e3fb991b5fe34" args="(string text, mxCellState state, bool html)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">override Object <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a962325d7b89f75230f1e3fb991b5fe34">com.mxgraph.mxGdiCanvas.DrawLabel</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>text</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCellState.html">mxCellState</a> </td>
|
|
<td class="paramname"><em>state</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>html</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td><code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>see <a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas.html#a81915e5bda4641165f93ac7b9177fae8" title="Draws the given label.">com.mxgraph.mxICanvas.DrawLabel()</a> </p>
|
|
|
|
<p>Implements <a class="el" href="classcom_1_1mxgraph_1_1mxBasicCanvas.html#acc1d4e9e83ced1b5b70d1097b53aade4">com.mxgraph.mxBasicCanvas</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a3e760b411c7644732fc51bc3f4d2ab87"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::DrawLine" ref="a3e760b411c7644732fc51bc3f4d2ab87" args="(List< mxPoint > pts, Dictionary< string, Object > style)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a3e760b411c7644732fc51bc3f4d2ab87">com.mxgraph.mxGdiCanvas.DrawLine</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">List< <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> > </td>
|
|
<td class="paramname"><em>pts</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Dictionary< string, Object > </td>
|
|
<td class="paramname"><em>style</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Draws the given lines as segments between all points of the given list of mxPoints. </p>
|
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">pts</td><td>List of points that define the line.</td></tr>
|
|
<tr><td class="paramname">style</td><td>Style to be used for painting the line.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a466473b288049a9481f6723b4e9a7ecf"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::DrawMarker" ref="a466473b288049a9481f6723b4e9a7ecf" args="(Object type, mxPoint p0, mxPoint pe, float size, Pen pen)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a466473b288049a9481f6723b4e9a7ecf">com.mxgraph.mxGdiCanvas.DrawMarker</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"><em>type</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> </td>
|
|
<td class="paramname"><em>p0</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> </td>
|
|
<td class="paramname"><em>pe</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>size</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Pen </td>
|
|
<td class="paramname"><em>pen</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Draws the given type of marker. </p>
|
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">type</td><td></td></tr>
|
|
<tr><td class="paramname">p0</td><td></td></tr>
|
|
<tr><td class="paramname">pe</td><td></td></tr>
|
|
<tr><td class="paramname">size</td><td></td></tr>
|
|
<tr><td class="paramname">pen</td><td></td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a6904a72d331fe8982f09ab4a0ba7bb4d"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::DrawOval" ref="a6904a72d331fe8982f09ab4a0ba7bb4d" args="(int x, int y, int w, int h, Brush brush, Pen pen, bool shadow)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a6904a72d331fe8982f09ab4a0ba7bb4d">com.mxgraph.mxGdiCanvas.DrawOval</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>w</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>h</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Brush </td>
|
|
<td class="paramname"><em>brush</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Pen </td>
|
|
<td class="paramname"><em>pen</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>shadow</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Draws an oval for the given parameters. </p>
|
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">x</td><td>X-coordinate of the shape.</td></tr>
|
|
<tr><td class="paramname">y</td><td>Y-coordinate of the shape.</td></tr>
|
|
<tr><td class="paramname">w</td><td>Width of the shape.</td></tr>
|
|
<tr><td class="paramname">h</td><td>Height of the shape.</td></tr>
|
|
<tr><td class="paramname">brush</td><td>Optional brush for painting the background.</td></tr>
|
|
<tr><td class="paramname">pen</td><td>Optional pen for painting the border.</td></tr>
|
|
<tr><td class="paramname">shadow</td><td>Boolean indicating if a shadow should be painted.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aff764bbd9912eb131816a7b1f15edcf1"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::DrawPath" ref="aff764bbd9912eb131816a7b1f15edcf1" args="(GraphicsPath path, Brush brush, Pen pen, bool shadow)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#aff764bbd9912eb131816a7b1f15edcf1">com.mxgraph.mxGdiCanvas.DrawPath</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">GraphicsPath </td>
|
|
<td class="paramname"><em>path</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Brush </td>
|
|
<td class="paramname"><em>brush</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Pen </td>
|
|
<td class="paramname"><em>pen</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>shadow</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Draws a path for the given parameters. </p>
|
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">path</td><td>Path object to be drawn.</td></tr>
|
|
<tr><td class="paramname">brush</td><td>Optional brush for painting the background.</td></tr>
|
|
<tr><td class="paramname">pen</td><td>Optional pen for painting the border.</td></tr>
|
|
<tr><td class="paramname">shadow</td><td>Boolean indicating if a shadow should be painted.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a4bbdb94ede3359fb88b0c48b58cafc64"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::DrawPolygon" ref="a4bbdb94ede3359fb88b0c48b58cafc64" args="(Point[] polygon, Brush brush, Pen pen, bool shadow)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a4bbdb94ede3359fb88b0c48b58cafc64">com.mxgraph.mxGdiCanvas.DrawPolygon</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Point[] </td>
|
|
<td class="paramname"><em>polygon</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Brush </td>
|
|
<td class="paramname"><em>brush</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Pen </td>
|
|
<td class="paramname"><em>pen</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>shadow</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Draws a a polygon for the given parameters. </p>
|
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">polygon</td><td>Points of the polygon.</td></tr>
|
|
<tr><td class="paramname">brush</td><td>Optional brush for painting the background.</td></tr>
|
|
<tr><td class="paramname">pen</td><td>Optional pen for painting the border.</td></tr>
|
|
<tr><td class="paramname">shadow</td><td>Boolean indicating if a shadow should be painted.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a377dad6cdf37032f38e6a37a1cc99c3a"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::DrawRect" ref="a377dad6cdf37032f38e6a37a1cc99c3a" args="(int x, int y, int w, int h, Brush brush, Pen pen, bool shadow, bool rounded)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a377dad6cdf37032f38e6a37a1cc99c3a">com.mxgraph.mxGdiCanvas.DrawRect</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>w</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>h</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Brush </td>
|
|
<td class="paramname"><em>brush</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Pen </td>
|
|
<td class="paramname"><em>pen</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>shadow</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>rounded</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Draws a rectangle for the given parameters. </p>
|
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">x</td><td>X-coordinate of the shape.</td></tr>
|
|
<tr><td class="paramname">y</td><td>Y-coordinate of the shape.</td></tr>
|
|
<tr><td class="paramname">w</td><td>Width of the shape.</td></tr>
|
|
<tr><td class="paramname">h</td><td>Height of the shape.</td></tr>
|
|
<tr><td class="paramname">brush</td><td>Optional brush for painting the background.</td></tr>
|
|
<tr><td class="paramname">pen</td><td>Optional pen for painting the border.</td></tr>
|
|
<tr><td class="paramname">shadow</td><td>Boolean indicating if a shadow should be painted.</td></tr>
|
|
<tr><td class="paramname">rounded</td><td>Boolean indicating if the rectangle is rounded.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="acad5b993f96aa9f1179db053b8a278a1"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::DrawRhombus" ref="acad5b993f96aa9f1179db053b8a278a1" args="(int x, int y, int w, int h, Brush brush, Pen pen, bool shadow)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#acad5b993f96aa9f1179db053b8a278a1">com.mxgraph.mxGdiCanvas.DrawRhombus</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>w</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>h</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Brush </td>
|
|
<td class="paramname"><em>brush</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Pen </td>
|
|
<td class="paramname"><em>pen</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>shadow</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Draws an rhombus (aka. diamond) for the given parameters. </p>
|
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">x</td><td>X-coordinate of the shape.</td></tr>
|
|
<tr><td class="paramname">y</td><td>Y-coordinate of the shape.</td></tr>
|
|
<tr><td class="paramname">w</td><td>Width of the shape.</td></tr>
|
|
<tr><td class="paramname">h</td><td>Height of the shape.</td></tr>
|
|
<tr><td class="paramname">brush</td><td>Optional brush for painting the background.</td></tr>
|
|
<tr><td class="paramname">pen</td><td>Optional pen for painting the border.</td></tr>
|
|
<tr><td class="paramname">shadow</td><td>Boolean indicating if a shadow should be painted.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a916256e385f3996f715b5e0634733e93"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::DrawShape" ref="a916256e385f3996f715b5e0634733e93" args="(int x, int y, int w, int h, Dictionary< string, Object > style)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a916256e385f3996f715b5e0634733e93">com.mxgraph.mxGdiCanvas.DrawShape</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>w</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>h</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Dictionary< string, Object > </td>
|
|
<td class="paramname"><em>style</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Draws the shape specified with the STYLE_SHAPE key in the given style. </p>
|
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">x</td><td>X-coordinate of the shape.</td></tr>
|
|
<tr><td class="paramname">y</td><td>Y-coordinate of the shape.</td></tr>
|
|
<tr><td class="paramname">w</td><td>Width of the shape.</td></tr>
|
|
<tr><td class="paramname">h</td><td>Height of the shape.</td></tr>
|
|
<tr><td class="paramname">style</td><td>Style of the the shape.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aa3cbd5664957d03feb044be31d7f4140"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::DrawText" ref="aa3cbd5664957d03feb044be31d7f4140" args="(string text, int x, int y, int w, int h, Dictionary< string, Object > style)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#aa3cbd5664957d03feb044be31d7f4140">com.mxgraph.mxGdiCanvas.DrawText</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>text</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>w</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>h</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Dictionary< string, Object > </td>
|
|
<td class="paramname"><em>style</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Draws the specified text either using drawHtmlString or using drawString. </p>
|
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">text</td><td></td></tr>
|
|
<tr><td class="paramname">x</td><td>X-coordinate of the text.</td></tr>
|
|
<tr><td class="paramname">y</td><td>Y-coordinate of the text.</td></tr>
|
|
<tr><td class="paramname">w</td><td>Width of the text.</td></tr>
|
|
<tr><td class="paramname">h</td><td>Height of the text.</td></tr>
|
|
<tr><td class="paramname">style</td><td>Style to be used for painting the text.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ad1d56706145d887515ad4ca5bfc968bb"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::DrawTriangle" ref="ad1d56706145d887515ad4ca5bfc968bb" args="(int x, int y, int w, int h, Brush brush, Pen pen, bool shadow, string direction)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#ad1d56706145d887515ad4ca5bfc968bb">com.mxgraph.mxGdiCanvas.DrawTriangle</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>w</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>h</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Brush </td>
|
|
<td class="paramname"><em>brush</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Pen </td>
|
|
<td class="paramname"><em>pen</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>shadow</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>direction</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Draws a triangle shape for the given parameters. </p>
|
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">x</td><td>X-coordinate of the shape.</td></tr>
|
|
<tr><td class="paramname">y</td><td>Y-coordinate of the shape.</td></tr>
|
|
<tr><td class="paramname">w</td><td>Width of the shape.</td></tr>
|
|
<tr><td class="paramname">h</td><td>Height of the shape.</td></tr>
|
|
<tr><td class="paramname">brush</td><td>Optional brush for painting the background.</td></tr>
|
|
<tr><td class="paramname">pen</td><td>Optional pen for painting the border.</td></tr>
|
|
<tr><td class="paramname">shadow</td><td>Boolean indicating if a shadow should be painted.</td></tr>
|
|
<tr><td class="paramname">direction</td><td>Specifies the direction of the triangle.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a16ab4a93c351e3f983286efe91b13d97"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::getArcSize" ref="a16ab4a93c351e3f983286efe91b13d97" args="(int w, int h)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static int <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a16ab4a93c351e3f983286efe91b13d97">com.mxgraph.mxGdiCanvas.getArcSize</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>w</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"><em>h</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Computes the arc size for the given dimension. </p>
|
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">w</td><td>Width of the rectangle.</td></tr>
|
|
<tr><td class="paramname">h</td><td>Height of the rectangle.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the arc size for the given dimension.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a942524aac27cba6b7269a6656e531683"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::LoadImage" ref="a942524aac27cba6b7269a6656e531683" args="(String image)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">Image <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a942524aac27cba6b7269a6656e531683">com.mxgraph.mxGdiCanvas.LoadImage</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"><em>image</em></td><td>)</td>
|
|
<td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns an image instance for the given URL. If the URL has been loaded before than an instance of the same instance is returned as in the previous call. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/><h2>Member Data Documentation</h2>
|
|
<a class="anchor" id="aae86eb9f2145a6c97729fbd45ac4a5dc"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::g" ref="aae86eb9f2145a6c97729fbd45ac4a5dc" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#aea5c29449403b8dc069f3f2966767abc">Graphics</a> <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#aae86eb9f2145a6c97729fbd45ac4a5dc">com.mxgraph.mxGdiCanvas.g</a><code> [protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Global graphics handle to the image. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aafa5f7ccb103b83dc69b6439d5f6494a"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::imageCache" ref="aafa5f7ccb103b83dc69b6439d5f6494a" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">Dictionary<string, Image> <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#aafa5f7ccb103b83dc69b6439d5f6494a">com.mxgraph.mxGdiCanvas.imageCache</a> = new Dictionary<string, Image>()<code> [protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Cache for loading images. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a8ef97b9528ce5250c1083e6cb04f7142"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::PRESERVE_IMAGE_ASPECT" ref="a8ef97b9528ce5250c1083e6cb04f7142" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#a8ef97b9528ce5250c1083e6cb04f7142">com.mxgraph.mxGdiCanvas.PRESERVE_IMAGE_ASPECT</a> = true<code> [static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Specifies if image aspect should be preserved in drawImage. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/><h2>Property Documentation</h2>
|
|
<a class="anchor" id="aea5c29449403b8dc069f3f2966767abc"></a><!-- doxytag: member="com::mxgraph::mxGdiCanvas::Graphics" ref="aea5c29449403b8dc069f3f2966767abc" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#aea5c29449403b8dc069f3f2966767abc">Graphics</a> <a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html#aea5c29449403b8dc069f3f2966767abc">com.mxgraph.mxGdiCanvas.Graphics</a><code> [get, set]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Sets or gets the graphics object to paint the canvas. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following file:<ul>
|
|
<li>src/canvas/mxGdiCanvas.cs</li>
|
|
</ul>
|
|
</div><!-- contents -->
|
|
|
|
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated on Mon Apr 8 2013 12:22:31 for mxGraph by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.7.6.1
|
|
</small></address>
|
|
|
|
</body>
|
|
</html>
|