Added: poi/site/publish/apidocs/org/apache/poi/sl/draw/SLGraphics.html URL: http://svn.apache.org/viewvc/poi/site/publish/apidocs/org/apache/poi/sl/draw/SLGraphics.html?rev=1711200&view=auto ============================================================================== --- poi/site/publish/apidocs/org/apache/poi/sl/draw/SLGraphics.html (added) +++ poi/site/publish/apidocs/org/apache/poi/sl/draw/SLGraphics.html Thu Oct 29 09:30:32 2015 @@ -0,0 +1,2866 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!-- NewPage --> +<html lang="en"> +<head> +<title>SLGraphics (POI API Documentation)</title> +<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="SLGraphics (POI API Documentation)"; + } +//--> +</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/SLGraphics.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> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../../../org/apache/poi/sl/draw/ImageRenderer.html" title="class in org.apache.poi.sl.draw"><span class="strong">Prev Class</span></a></li> +<li>Next Class</li> +</ul> +<ul class="navList"> +<li><a href="../../../../../index.html?org/apache/poi/sl/draw/SLGraphics.html" target="_top">Frames</a></li> +<li><a href="SLGraphics.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>Nested | </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">org.apache.poi.sl.draw</div> +<h2 title="Class SLGraphics" class="title">Class SLGraphics</h2> +</div> +<div class="contentContainer"> +<ul class="inheritance"> +<li>java.lang.Object</li> +<li> +<ul class="inheritance"> +<li>java.awt.Graphics</li> +<li> +<ul class="inheritance"> +<li>java.awt.Graphics2D</li> +<li> +<ul class="inheritance"> +<li>org.apache.poi.sl.draw.SLGraphics</li> +</ul> +</li> +</ul> +</li> +</ul> +</li> +</ul> +<div class="description"> +<ul class="blockList"> +<li class="blockList"> +<dl> +<dt>All Implemented Interfaces:</dt> +<dd>java.lang.Cloneable</dd> +</dl> +<hr> +<br> +<pre>public final class <span class="strong">SLGraphics</span> +extends java.awt.Graphics2D +implements java.lang.Cloneable</pre> +<div class="block">Translates Graphics2D calls into PowerPoint.</div> +<dl><dt><span class="strong">Author:</span></dt> + <dd>Yegor Kozlov</dd></dl> +</li> +</ul> +</div> +<div class="summary"> +<ul class="blockList"> +<li class="blockList"> +<!-- =========== 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>protected <a href="../../../../../org/apache/poi/util/POILogger.html" title="class in org.apache.poi.util">POILogger</a></code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#log">log</a></strong></code> </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="../../../../../org/apache/poi/sl/draw/SLGraphics.html#SLGraphics(org.apache.poi.sl.usermodel.GroupShape)">SLGraphics</a></strong>(<a href="../../../../../org/apache/poi/sl/usermodel/GroupShape.html" title="interface in org.apache.poi.sl.usermodel">GroupShape</a><?,?> group)</code> +<div class="block">Construct Java Graphics object which translates graphic calls in ppt drawing layer.</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="../../../../../org/apache/poi/sl/draw/SLGraphics.html#addRenderingHints(java.util.Map)">addRenderingHints</a></strong>(java.util.Map<?,?> hints)</code> +<div class="block">Sets the values of an arbitrary number of preferences for the + rendering algorithms.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#applyPaint(org.apache.poi.sl.usermodel.SimpleShape)">applyPaint</a></strong>(<a href="../../../../../org/apache/poi/sl/usermodel/SimpleShape.html" title="interface in org.apache.poi.sl.usermodel">SimpleShape</a><?,?> shape)</code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#applyStroke(org.apache.poi.sl.usermodel.SimpleShape)">applyStroke</a></strong>(<a href="../../../../../org/apache/poi/sl/usermodel/SimpleShape.html" title="interface in org.apache.poi.sl.usermodel">SimpleShape</a><?,?> shape)</code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#clearRect(int,%20int,%20int,%20int)">clearRect</a></strong>(int x, + int y, + int width, + int height)</code> +<div class="block">Clears the specified rectangle by filling it with the background + color of the current drawing surface.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#clip(java.awt.Shape)">clip</a></strong>(java.awt.Shape s)</code> +<div class="block">Intersects the current <code>Clip</code> with the interior of the + specified <code>Shape</code> and sets the <code>Clip</code> to the + resulting intersection.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#clipRect(int,%20int,%20int,%20int)">clipRect</a></strong>(int x, + int y, + int width, + int height)</code> +<div class="block">Intersects the current clip with the specified rectangle.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#copyArea(int,%20int,%20int,%20int,%20int,%20int)">copyArea</a></strong>(int x, + int y, + int width, + int height, + int dx, + int dy)</code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>java.awt.Graphics</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#create()">create</a></strong>()</code> +<div class="block">Creates a new <code>Graphics</code> object that is + a copy of this <code>Graphics</code> object.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#dispose()">dispose</a></strong>()</code> +<div class="block">Disposes of this graphics context and releases + any system resources that it is using.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#draw(java.awt.Shape)">draw</a></strong>(java.awt.Shape shape)</code> +<div class="block">Strokes the outline of a <code>Shape</code> using the settings of the + current <code>Graphics2D</code> context.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#drawArc(int,%20int,%20int,%20int,%20int,%20int)">drawArc</a></strong>(int x, + int y, + int width, + int height, + int startAngle, + int arcAngle)</code> +<div class="block">Draws the outline of a circular or elliptical arc + covering the specified rectangle.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#drawGlyphVector(java.awt.font.GlyphVector,%20float,%20float)">drawGlyphVector</a></strong>(java.awt.font.GlyphVector g, + float x, + float y)</code> +<div class="block">Renders the text of the specified + <code>GlyphVector</code> using + the <code>Graphics2D</code> context's rendering attributes.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#drawImage(java.awt.image.BufferedImage,%20java.awt.image.BufferedImageOp,%20int,%20int)">drawImage</a></strong>(java.awt.image.BufferedImage img, + java.awt.image.BufferedImageOp op, + int x, + int y)</code> +<div class="block">Renders a <code>BufferedImage</code> that is + filtered with a + <code>BufferedImageOp</code>.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#drawImage(java.awt.Image,%20java.awt.geom.AffineTransform,%20java.awt.image.ImageObserver)">drawImage</a></strong>(java.awt.Image img, + java.awt.geom.AffineTransform xform, + java.awt.image.ImageObserver obs)</code> +<div class="block">Renders an image, applying a transform from image space into user space + before drawing.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#drawImage(java.awt.Image,%20int,%20int,%20java.awt.Color,%20java.awt.image.ImageObserver)">drawImage</a></strong>(java.awt.Image img, + int x, + int y, + java.awt.Color bgcolor, + java.awt.image.ImageObserver observer)</code> +<div class="block">Draws as much of the specified image as is currently available.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#drawImage(java.awt.Image,%20int,%20int,%20java.awt.image.ImageObserver)">drawImage</a></strong>(java.awt.Image img, + int x, + int y, + java.awt.image.ImageObserver observer)</code> +<div class="block">Draws as much of the specified image as is currently available.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#drawImage(java.awt.Image,%20int,%20int,%20int,%20int,%20java.awt.Color,%20java.awt.image.ImageObserver)">drawImage</a></strong>(java.awt.Image img, + int x, + int y, + int width, + int height, + java.awt.Color bgcolor, + java.awt.image.ImageObserver observer)</code> +<div class="block">Draws as much of the specified image as has already been scaled + to fit inside the specified rectangle.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#drawImage(java.awt.Image,%20int,%20int,%20int,%20int,%20java.awt.image.ImageObserver)">drawImage</a></strong>(java.awt.Image img, + int x, + int y, + int width, + int height, + java.awt.image.ImageObserver observer)</code> +<div class="block">Draws as much of the specified image as has already been scaled + to fit inside the specified rectangle.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#drawImage(java.awt.Image,%20int,%20int,%20int,%20int,%20int,%20int,%20int,%20int,%20java.awt.Color,%20java.awt.image.ImageObserver)">drawImage</a></strong>(java.awt.Image img, + int dx1, + int dy1, + int dx2, + int dy2, + int sx1, + int sy1, + int sx2, + int sy2, + java.awt.Color bgcolor, + java.awt.image.ImageObserver observer)</code> +<div class="block">Draws as much of the specified area of the specified image as is + currently available, scaling it on the fly to fit inside the + specified area of the destination drawable surface.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#drawImage(java.awt.Image,%20int,%20int,%20int,%20int,%20int,%20int,%20int,%20int,%20java.awt.image.ImageObserver)">drawImage</a></strong>(java.awt.Image img, + int dx1, + int dy1, + int dx2, + int dy2, + int sx1, + int sy1, + int sx2, + int sy2, + java.awt.image.ImageObserver observer)</code> +<div class="block">Draws as much of the specified area of the specified image as is + currently available, scaling it on the fly to fit inside the + specified area of the destination drawable surface.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#drawLine(int,%20int,%20int,%20int)">drawLine</a></strong>(int x1, + int y1, + int x2, + int y2)</code> +<div class="block">Draws a line, using the current color, between the points + <code>(x1, y1)</code> and <code>(x2, y2)</code> + in this graphics context's coordinate system.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#drawOval(int,%20int,%20int,%20int)">drawOval</a></strong>(int x, + int y, + int width, + int height)</code> +<div class="block">Draws the outline of an oval.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#drawPolygon(int[],%20int[],%20int)">drawPolygon</a></strong>(int[] xPoints, + int[] yPoints, + int nPoints)</code> +<div class="block">Draws a closed polygon defined by + arrays of <i>x</i> and <i>y</i> coordinates.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#drawPolyline(int[],%20int[],%20int)">drawPolyline</a></strong>(int[] xPoints, + int[] yPoints, + int nPoints)</code> +<div class="block">Draws a sequence of connected lines defined by + arrays of <i>x</i> and <i>y</i> coordinates.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#drawRect(int,%20int,%20int,%20int)">drawRect</a></strong>(int x, + int y, + int width, + int height)</code> +<div class="block">Draws the outline of the specified rectangle.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#drawRenderableImage(java.awt.image.renderable.RenderableImage,%20java.awt.geom.AffineTransform)">drawRenderableImage</a></strong>(java.awt.image.renderable.RenderableImage img, + java.awt.geom.AffineTransform xform)</code> +<div class="block">Renders a <code>RenderedImage</code>, + applying a transform from image + space into user space before drawing.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#drawRenderedImage(java.awt.image.RenderedImage,%20java.awt.geom.AffineTransform)">drawRenderedImage</a></strong>(java.awt.image.RenderedImage img, + java.awt.geom.AffineTransform xform)</code> +<div class="block">Renders a + <code>RenderableImage</code>, + applying a transform from image space into user space before drawing.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#drawRoundRect(int,%20int,%20int,%20int,%20int,%20int)">drawRoundRect</a></strong>(int x, + int y, + int width, + int height, + int arcWidth, + int arcHeight)</code> +<div class="block">Draws an outlined round-cornered rectangle using this graphics + context's current color.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#drawString(java.text.AttributedCharacterIterator,%20float,%20float)">drawString</a></strong>(java.text.AttributedCharacterIterator iterator, + float x, + float y)</code> +<div class="block">Renders the text of the specified iterator, using the + <code>Graphics2D</code> context's current <code>Paint</code>.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#drawString(java.text.AttributedCharacterIterator,%20int,%20int)">drawString</a></strong>(java.text.AttributedCharacterIterator iterator, + int x, + int y)</code> +<div class="block">Draws the text given by the specified iterator, using this + graphics context's current color.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#drawString(java.lang.String,%20float,%20float)">drawString</a></strong>(java.lang.String s, + float x, + float y)</code> +<div class="block">Renders the text specified by the specified <code>String</code>, + using the current text attribute state in the <code>Graphics2D</code> context.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#drawString(java.lang.String,%20int,%20int)">drawString</a></strong>(java.lang.String str, + int x, + int y)</code> +<div class="block">Draws the text given by the specified string, using this + graphics context's current font and color.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#fill(java.awt.Shape)">fill</a></strong>(java.awt.Shape shape)</code> +<div class="block">Fills the interior of a <code>Shape</code> using the settings of the + <code>Graphics2D</code> context.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#fillArc(int,%20int,%20int,%20int,%20int,%20int)">fillArc</a></strong>(int x, + int y, + int width, + int height, + int startAngle, + int arcAngle)</code> +<div class="block">Fills a circular or elliptical arc covering the specified rectangle.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#fillOval(int,%20int,%20int,%20int)">fillOval</a></strong>(int x, + int y, + int width, + int height)</code> +<div class="block">Fills an oval bounded by the specified rectangle with the + current color.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#fillPolygon(int[],%20int[],%20int)">fillPolygon</a></strong>(int[] xPoints, + int[] yPoints, + int nPoints)</code> +<div class="block">Fills a closed polygon defined by + arrays of <i>x</i> and <i>y</i> coordinates.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#fillRect(int,%20int,%20int,%20int)">fillRect</a></strong>(int x, + int y, + int width, + int height)</code> +<div class="block">Fills the specified rectangle.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#fillRoundRect(int,%20int,%20int,%20int,%20int,%20int)">fillRoundRect</a></strong>(int x, + int y, + int width, + int height, + int arcWidth, + int arcHeight)</code> +<div class="block">Fills the specified rounded corner rectangle with the current color.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>java.awt.Color</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#getBackground()">getBackground</a></strong>()</code> +<div class="block">Returns the background color used for clearing a region.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>java.awt.Shape</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#getClip()">getClip</a></strong>()</code> +<div class="block">Gets the current clipping area.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>java.awt.Rectangle</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#getClipBounds()">getClipBounds</a></strong>()</code> +<div class="block">Returns the bounding rectangle of the current clipping area.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>java.awt.Color</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#getColor()">getColor</a></strong>()</code> +<div class="block">Gets this graphics context's current color.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>java.awt.Composite</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#getComposite()">getComposite</a></strong>()</code> +<div class="block">Returns the current <code>Composite</code> in the + <code>Graphics2D</code> context.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>java.awt.GraphicsConfiguration</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#getDeviceConfiguration()">getDeviceConfiguration</a></strong>()</code> +<div class="block">Returns the device configuration associated with this + <code>Graphics2D</code>.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>java.awt.Font</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#getFont()">getFont</a></strong>()</code> +<div class="block">Gets the current font.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>java.awt.FontMetrics</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#getFontMetrics(java.awt.Font)">getFontMetrics</a></strong>(java.awt.Font f)</code> +<div class="block">Gets the font metrics for the specified font.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>java.awt.font.FontRenderContext</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#getFontRenderContext()">getFontRenderContext</a></strong>()</code> +<div class="block">Get the rendering context of the <code>Font</code> within this + <code>Graphics2D</code> context.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>java.awt.Paint</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#getPaint()">getPaint</a></strong>()</code> +<div class="block">Returns the current <code>Paint</code> of the + <code>Graphics2D</code> context.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>java.lang.Object</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#getRenderingHint(java.awt.RenderingHints.Key)">getRenderingHint</a></strong>(java.awt.RenderingHints.Key hintKey)</code> +<div class="block">Returns the value of a single preference for the rendering algorithms.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>java.awt.RenderingHints</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#getRenderingHints()">getRenderingHints</a></strong>()</code> +<div class="block">Gets the preferences for the rendering algorithms.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/poi/sl/usermodel/GroupShape.html" title="interface in org.apache.poi.sl.usermodel">GroupShape</a><?,?></code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#getShapeGroup()">getShapeGroup</a></strong>()</code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>java.awt.Stroke</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#getStroke()">getStroke</a></strong>()</code> +<div class="block">Returns the current <code>Stroke</code> in the + <code>Graphics2D</code> context.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>java.awt.geom.AffineTransform</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#getTransform()">getTransform</a></strong>()</code> +<div class="block">Returns a copy of the current <code>Transform</code> in the + <code>Graphics2D</code> context.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#hit(java.awt.Rectangle,%20java.awt.Shape,%20boolean)">hit</a></strong>(java.awt.Rectangle rect, + java.awt.Shape s, + boolean onStroke)</code> +<div class="block">Checks whether or not the specified <code>Shape</code> intersects + the specified <code>Rectangle</code>, which is in device + space.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#rotate(double)">rotate</a></strong>(double theta)</code> +<div class="block">Concatenates the current <code>Graphics2D</code> + <code>Transform</code> with a rotation transform.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#rotate(double,%20double,%20double)">rotate</a></strong>(double theta, + double x, + double y)</code> +<div class="block">Concatenates the current <code>Graphics2D</code> + <code>Transform</code> with a translated rotation + transform.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#scale(double,%20double)">scale</a></strong>(double sx, + double sy)</code> +<div class="block">Concatenates the current <code>Graphics2D</code> + <code>Transform</code> with a scaling transformation + Subsequent rendering is resized according to the specified scaling + factors relative to the previous scaling.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setBackground(java.awt.Color)">setBackground</a></strong>(java.awt.Color color)</code> +<div class="block">Sets the background color for the <code>Graphics2D</code> context.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setClip(int,%20int,%20int,%20int)">setClip</a></strong>(int x, + int y, + int width, + int height)</code> +<div class="block">Sets the current clip to the rectangle specified by the given + coordinates.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setClip(java.awt.Shape)">setClip</a></strong>(java.awt.Shape clip)</code> +<div class="block">Sets the current clipping area to an arbitrary clip shape.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setColor(java.awt.Color)">setColor</a></strong>(java.awt.Color c)</code> +<div class="block">Sets this graphics context's current color to the specified + color.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setComposite(java.awt.Composite)">setComposite</a></strong>(java.awt.Composite comp)</code> +<div class="block">Sets the <code>Composite</code> for the <code>Graphics2D</code> context.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setFont(java.awt.Font)">setFont</a></strong>(java.awt.Font font)</code> +<div class="block">Sets this graphics context's font to the specified font.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setPaint(java.awt.Paint)">setPaint</a></strong>(java.awt.Paint paint)</code> +<div class="block">Sets the <code>Paint</code> attribute for the + <code>Graphics2D</code> context.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setPaintMode()">setPaintMode</a></strong>()</code> +<div class="block">Sets the paint mode of this graphics context to overwrite the + destination with this graphics context's current color.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setRenderingHint(java.awt.RenderingHints.Key,%20java.lang.Object)">setRenderingHint</a></strong>(java.awt.RenderingHints.Key hintKey, + java.lang.Object hintValue)</code> +<div class="block">Sets the value of a single preference for the rendering algorithms.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setRenderingHints(java.util.Map)">setRenderingHints</a></strong>(java.util.Map<?,?> hints)</code> +<div class="block">Replaces the values of all preferences for the rendering + algorithms with the specified <code>hints</code>.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setStroke(java.awt.Stroke)">setStroke</a></strong>(java.awt.Stroke s)</code> +<div class="block">Sets the <code>Stroke</code> for the <code>Graphics2D</code> context.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setTransform(java.awt.geom.AffineTransform)">setTransform</a></strong>(java.awt.geom.AffineTransform Tx)</code> +<div class="block">Sets the <code>Transform</code> in the <code>Graphics2D</code> + context.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setXORMode(java.awt.Color)">setXORMode</a></strong>(java.awt.Color c1)</code> +<div class="block">Sets the paint mode of this graphics context to alternate between + this graphics context's current color and the new specified color.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#shear(double,%20double)">shear</a></strong>(double shx, + double shy)</code> +<div class="block">Concatenates the current <code>Graphics2D</code> + <code>Transform</code> with a shearing transform.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#transform(java.awt.geom.AffineTransform)">transform</a></strong>(java.awt.geom.AffineTransform Tx)</code> +<div class="block">Composes an <code>AffineTransform</code> object with the + <code>Transform</code> in this <code>Graphics2D</code> according + to the rule last-specified-first-applied.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#translate(double,%20double)">translate</a></strong>(double tx, + double ty)</code> +<div class="block">Concatenates the current + <code>Graphics2D</code> <code>Transform</code> + with a translation transform.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#translate(int,%20int)">translate</a></strong>(int x, + int y)</code> +<div class="block">Translates the origin of the graphics context to the point + (<i>x</i>, <i>y</i>) in the current coordinate system.</div> +</td> +</tr> +</table> +<ul class="blockList"> +<li class="blockList"><a name="methods_inherited_from_class_java.awt.Graphics2D"> +<!-- --> +</a> +<h3>Methods inherited from class java.awt.Graphics2D</h3> +<code>draw3DRect, fill3DRect</code></li> +</ul> +<ul class="blockList"> +<li class="blockList"><a name="methods_inherited_from_class_java.awt.Graphics"> +<!-- --> +</a> +<h3>Methods inherited from class java.awt.Graphics</h3> +<code>create, drawBytes, drawChars, drawPolygon, fillPolygon, finalize, getClipBounds, getClipRect, getFontMetrics, hitClip, toString</code></li> +</ul> +<ul class="blockList"> +<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> +<!-- --> +</a> +<h3>Methods inherited from class java.lang.Object</h3> +<code>clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</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="log"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>log</h4> +<pre>protected <a href="../../../../../org/apache/poi/util/POILogger.html" title="class in org.apache.poi.util">POILogger</a> log</pre> +</li> +</ul> +</li> +</ul> +<!-- ========= CONSTRUCTOR DETAIL ======== --> +<ul class="blockList"> +<li class="blockList"><a name="constructor_detail"> +<!-- --> +</a> +<h3>Constructor Detail</h3> +<a name="SLGraphics(org.apache.poi.sl.usermodel.GroupShape)"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>SLGraphics</h4> +<pre>public SLGraphics(<a href="../../../../../org/apache/poi/sl/usermodel/GroupShape.html" title="interface in org.apache.poi.sl.usermodel">GroupShape</a><?,?> group)</pre> +<div class="block">Construct Java Graphics object which translates graphic calls in ppt drawing layer.</div> +<dl><dt><span class="strong">Parameters:</span></dt><dd><code>group</code> - The shape group to write the graphics calls into.</dd></dl> +</li> +</ul> +</li> +</ul> +<!-- ============ METHOD DETAIL ========== --> +<ul class="blockList"> +<li class="blockList"><a name="method_detail"> +<!-- --> +</a> +<h3>Method Detail</h3> +<a name="getShapeGroup()"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getShapeGroup</h4> +<pre>public <a href="../../../../../org/apache/poi/sl/usermodel/GroupShape.html" title="interface in org.apache.poi.sl.usermodel">GroupShape</a><?,?> getShapeGroup()</pre> +<dl><dt><span class="strong">Returns:</span></dt><dd>the shape group being used for drawing</dd></dl> +</li> +</ul> +<a name="getFont()"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getFont</h4> +<pre>public java.awt.Font getFont()</pre> +<div class="block">Gets the current font.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>getFont</code> in class <code>java.awt.Graphics</code></dd> +<dt><span class="strong">Returns:</span></dt><dd>this graphics context's current font.</dd><dt><span class="strong">See Also:</span></dt><dd><code>Font</code>, +<code>Graphics.setFont(Font)</code></dd></dl> +</li> +</ul> +<a name="setFont(java.awt.Font)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setFont</h4> +<pre>public void setFont(java.awt.Font font)</pre> +<div class="block">Sets this graphics context's font to the specified font. + All subsequent text operations using this graphics context + use this font.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>setFont</code> in class <code>java.awt.Graphics</code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>font</code> - the font.</dd><dt><span class="strong">See Also:</span></dt><dd><code>Graphics.getFont()</code>, +<code>Graphics.drawString(java.lang.String, int, int)</code>, +<code>Graphics.drawBytes(byte[], int, int, int, int)</code>, +<code>Graphics.drawChars(char[], int, int, int, int)</code></dd></dl> +</li> +</ul> +<a name="getColor()"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getColor</h4> +<pre>public java.awt.Color getColor()</pre> +<div class="block">Gets this graphics context's current color.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>getColor</code> in class <code>java.awt.Graphics</code></dd> +<dt><span class="strong">Returns:</span></dt><dd>this graphics context's current color.</dd><dt><span class="strong">See Also:</span></dt><dd><code>Color</code>, +<code>Graphics.setColor(java.awt.Color)</code></dd></dl> +</li> +</ul> +<a name="setColor(java.awt.Color)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setColor</h4> +<pre>public void setColor(java.awt.Color c)</pre> +<div class="block">Sets this graphics context's current color to the specified + color. All subsequent graphics operations using this graphics + context use this specified color.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>setColor</code> in class <code>java.awt.Graphics</code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>c</code> - the new rendering color.</dd><dt><span class="strong">See Also:</span></dt><dd><code>Color</code>, +<code>Graphics.getColor()</code></dd></dl> +</li> +</ul> +<a name="getStroke()"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getStroke</h4> +<pre>public java.awt.Stroke getStroke()</pre> +<div class="block">Returns the current <code>Stroke</code> in the + <code>Graphics2D</code> context.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>getStroke</code> in class <code>java.awt.Graphics2D</code></dd> +<dt><span class="strong">Returns:</span></dt><dd>the current <code>Graphics2D</code> <code>Stroke</code>, + which defines the line style.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setStroke(java.awt.Stroke)"><code>setStroke(java.awt.Stroke)</code></a></dd></dl> +</li> +</ul> +<a name="setStroke(java.awt.Stroke)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setStroke</h4> +<pre>public void setStroke(java.awt.Stroke s)</pre> +<div class="block">Sets the <code>Stroke</code> for the <code>Graphics2D</code> context.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>setStroke</code> in class <code>java.awt.Graphics2D</code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>s</code> - the <code>Stroke</code> object to be used to stroke a + <code>Shape</code> during the rendering process</dd></dl> +</li> +</ul> +<a name="getPaint()"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getPaint</h4> +<pre>public java.awt.Paint getPaint()</pre> +<div class="block">Returns the current <code>Paint</code> of the + <code>Graphics2D</code> context.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>getPaint</code> in class <code>java.awt.Graphics2D</code></dd> +<dt><span class="strong">Returns:</span></dt><dd>the current <code>Graphics2D</code> <code>Paint</code>, + which defines a color or pattern.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setPaint(java.awt.Paint)"><code>setPaint(java.awt.Paint)</code></a>, +<code>Graphics.setColor(java.awt.Color)</code></dd></dl> +</li> +</ul> +<a name="setPaint(java.awt.Paint)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setPaint</h4> +<pre>public void setPaint(java.awt.Paint paint)</pre> +<div class="block">Sets the <code>Paint</code> attribute for the + <code>Graphics2D</code> context. Calling this method + with a <code>null</code> <code>Paint</code> object does + not have any effect on the current <code>Paint</code> attribute + of this <code>Graphics2D</code>.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>setPaint</code> in class <code>java.awt.Graphics2D</code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>paint</code> - the <code>Paint</code> object to be used to generate + color during the rendering process, or <code>null</code></dd><dt><span class="strong">See Also:</span></dt><dd><code>Graphics.setColor(java.awt.Color)</code></dd></dl> +</li> +</ul> +<a name="getTransform()"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getTransform</h4> +<pre>public java.awt.geom.AffineTransform getTransform()</pre> +<div class="block">Returns a copy of the current <code>Transform</code> in the + <code>Graphics2D</code> context.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>getTransform</code> in class <code>java.awt.Graphics2D</code></dd> +<dt><span class="strong">Returns:</span></dt><dd>the current <code>AffineTransform</code> in the + <code>Graphics2D</code> context.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#_transform"><code>_transform</code></a>, +<a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setTransform(java.awt.geom.AffineTransform)"><code>setTransform(java.awt.geom.AffineTransform)</code></a></dd></dl> +</li> +</ul> +<a name="setTransform(java.awt.geom.AffineTransform)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setTransform</h4> +<pre>public void setTransform(java.awt.geom.AffineTransform Tx)</pre> +<div class="block">Sets the <code>Transform</code> in the <code>Graphics2D</code> + context.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>setTransform</code> in class <code>java.awt.Graphics2D</code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>Tx</code> - the <code>AffineTransform</code> object to be used in the + rendering process</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#_transform"><code>_transform</code></a>, +<code>AffineTransform</code></dd></dl> +</li> +</ul> +<a name="draw(java.awt.Shape)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>draw</h4> +<pre>public void draw(java.awt.Shape shape)</pre> +<div class="block">Strokes the outline of a <code>Shape</code> using the settings of the + current <code>Graphics2D</code> context. The rendering attributes + applied include the <code>Clip</code>, <code>Transform</code>, + <code>Paint</code>, <code>Composite</code> and + <code>Stroke</code> attributes.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>draw</code> in class <code>java.awt.Graphics2D</code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>shape</code> - the <code>Shape</code> to be rendered</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setStroke(java.awt.Stroke)"><code>setStroke(java.awt.Stroke)</code></a>, +<a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setPaint(java.awt.Paint)"><code>setPaint(java.awt.Paint)</code></a>, +<code>Graphics.setColor(java.awt.Color)</code>, +<a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#_transform"><code>_transform</code></a>, +<a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setTransform(java.awt.geom.AffineTransform)"><code>setTransform(java.awt.geom.AffineTransform)</code></a>, +<a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#clip(java.awt.Shape)"><code>clip(java.awt.Shape)</code></a>, +<a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setClip(java.awt.Shape)"><code>setClip(java.awt.Shape)</code></a>, +<a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setComposite(java.awt.Composite)"><code>setComposite(java.awt.Composite)</code></a></dd></dl> +</li> +</ul> +<a name="drawString(java.lang.String, float, float)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>drawString</h4> +<pre>public void drawString(java.lang.String s, + float x, + float y)</pre> +<div class="block">Renders the text specified by the specified <code>String</code>, + using the current text attribute state in the <code>Graphics2D</code> context. + The baseline of the first character is at position + (<i>x</i>, <i>y</i>) in the User Space. + The rendering attributes applied include the <code>Clip</code>, + <code>Transform</code>, <code>Paint</code>, <code>Font</code> and + <code>Composite</code> attributes. For characters in script systems + such as Hebrew and Arabic, the glyphs can be rendered from right to + left, in which case the coordinate supplied is the location of the + leftmost character on the baseline.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>drawString</code> in class <code>java.awt.Graphics2D</code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>s</code> - the <code>String</code> to be rendered</dd><dd><code>x</code> - the x coordinate of the location where the + <code>String</code> should be rendered</dd><dd><code>y</code> - the y coordinate of the location where the + <code>String</code> should be rendered</dd> +<dt><span class="strong">Throws:</span></dt> +<dd><code>java.lang.NullPointerException</code> - if <code>str</code> is + <code>null</code></dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setPaint(java.awt.Paint)"><code>setPaint(java.awt.Paint)</code></a>, +<code>Graphics.setColor(java.awt.Color)</code>, +<code>Graphics.setFont(java.awt.Font)</code>, +<a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setTransform(java.awt.geom.AffineTransform)"><code>setTransform(java.awt.geom.AffineTransform)</code></a>, +<a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setComposite(java.awt.Composite)"><code>setComposite(java.awt.Composite)</code></a>, +<a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setClip(java.awt.Shape)"><code>setClip(java.awt.Shape)</code></a></dd></dl> +</li> +</ul> +<a name="fill(java.awt.Shape)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>fill</h4> +<pre>public void fill(java.awt.Shape shape)</pre> +<div class="block">Fills the interior of a <code>Shape</code> using the settings of the + <code>Graphics2D</code> context. The rendering attributes applied + include the <code>Clip</code>, <code>Transform</code>, + <code>Paint</code>, and <code>Composite</code>.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>fill</code> in class <code>java.awt.Graphics2D</code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>shape</code> - the <code>Shape</code> to be filled</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setPaint(java.awt.Paint)"><code>setPaint(java.awt.Paint)</code></a>, +<code>Graphics.setColor(java.awt.Color)</code>, +<a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#_transform"><code>_transform</code></a>, +<a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setTransform(java.awt.geom.AffineTransform)"><code>setTransform(java.awt.geom.AffineTransform)</code></a>, +<a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setComposite(java.awt.Composite)"><code>setComposite(java.awt.Composite)</code></a>, +<a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#clip(java.awt.Shape)"><code>clip(java.awt.Shape)</code></a>, +<a href="../../../../../org/apache/poi/sl/draw/SLGraphics.html#setClip(java.awt.Shape)"><code>setClip(java.awt.Shape)</code></a></dd></dl> +</li> +</ul> +<a name="translate(int, int)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>translate</h4> +<pre>public void translate(int x, + int y)</pre> +<div class="block">Translates the origin of the graphics context to the point + (<i>x</i>, <i>y</i>) in the current coordinate system. + Modifies this graphics context so that its new origin corresponds + to the point (<i>x</i>, <i>y</i>) in this graphics context's + original coordinate system. All coordinates used in subsequent + rendering operations on this graphics context will be relative + to this new origin.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>translate</code> in class <code>java.awt.Graphics2D</code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the <i>x</i> coordinate.</dd><dd><code>y</code> - the <i>y</i> coordinate.</dd></dl> +</li> +</ul> +<a name="clip(java.awt.Shape)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>clip</h4> +<pre>public void clip(java.awt.Shape s)</pre> +<div class="block">Intersects the current <code>Clip</code> with the interior of the + specified <code>Shape</code> and sets the <code>Clip</code> to the + resulting intersection. The specified <code>Shape</code> is + transformed with the current <code>Graphics2D</code> + <code>Transform</code> before being intersected with the current + <code>Clip</code>. This method is used to make the current + <code>Clip</code> smaller. + To make the <code>Clip</code> larger, use <code>setClip</code>. + The <i>user clip</i> modified by this method is independent of the + clipping associated with device bounds and visibility. If no clip has + previously been set, or if the clip has been cleared using + <code>setClip</code> with a + <code>null</code> argument, the specified <code>Shape</code> becomes + the new user clip.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>clip</code> in class <code>java.awt.Graphics2D</code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>s</code> - the <code>Shape</code> to be intersected with the current + <code>Clip</code>. If <code>s</code> is <code>null</code>, + this method clears the current <code>Clip</code>.</dd></dl> +</li> +</ul> +<a name="getClip()"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getClip</h4> +<pre>public java.awt.Shape getClip()</pre> +<div class="block">Gets the current clipping area. + This method returns the user clip, which is independent of the + clipping associated with device bounds and window visibility. + If no clip has previously been set, or if the clip has been + cleared using <code>setClip(null)</code>, this method returns + <code>null</code>.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>getClip</code> in class <code>java.awt.Graphics</code></dd> +<dt><span class="strong">Returns:</span></dt><dd>a <code>Shape</code> object representing the + current clipping area, or <code>null</code> if + no clip is set.</dd><dt><span class="strong">Since:</span></dt> + <dd>JDK1.1</dd> +<dt><span class="strong">See Also:</span></dt><dd><code>Graphics.getClipBounds()</code>, +<code>Graphics.clipRect(int, int, int, int)</code>, +<code>Graphics.setClip(int, int, int, int)</code>, +<code>Graphics.setClip(Shape)</code></dd></dl> +</li> +</ul> +<a name="scale(double, double)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>scale</h4> +<pre>public void scale(double sx, + double sy)</pre> +<div class="block">Concatenates the current <code>Graphics2D</code> + <code>Transform</code> with a scaling transformation + Subsequent rendering is resized according to the specified scaling + factors relative to the previous scaling. + This is equivalent to calling <code>transform(S)</code>, where S is an + <code>AffineTransform</code> represented by the following matrix: + <pre> + [ sx 0 0 ] + [ 0 sy 0 ] + [ 0 0 1 ] + </pre></div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>scale</code> in class <code>java.awt.Graphics2D</code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>sx</code> - the amount by which X coordinates in subsequent + rendering operations are multiplied relative to previous + rendering operations.</dd><dd><code>sy</code> - the amount by which Y coordinates in subsequent + rendering operations are multiplied relative to previous + rendering operations.</dd></dl> +</li> +</ul> +<a name="drawRoundRect(int, int, int, int, int, int)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>drawRoundRect</h4> +<pre>public void drawRoundRect(int x, + int y, + int width, + int height, + int arcWidth, + int arcHeight)</pre> +<div class="block">Draws an outlined round-cornered rectangle using this graphics + context's current color. The left and right edges of the rectangle + are at <code>x</code> and <code>x + width</code>, + respectively. The top and bottom edges of the rectangle are at + <code>y</code> and <code>y + height</code>.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>drawRoundRect</code> in class <code>java.awt.Graphics</code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the <i>x</i> coordinate of the rectangle to be drawn.</dd><dd><code>y</code> - the <i>y</i> coordinate of the rectangle to be drawn.</dd><dd><code>width</code> - the width of the rectangle to be drawn.</dd><dd><code>height</code> - the height of the rectangle to be drawn.</dd><dd><code>arcWidth</code> - the horizontal diameter of the arc + at the four corners.</dd><dd><code>arcHeight</code> - the vertical diameter of the arc + at the four corners.</dd><dt><span class="strong">See Also:</span></dt><dd><code>Graphics.fillRoundRect(int, int, int, int, int, int)</code></dd></dl> +</li> +</ul> +<a name="drawString(java.lang.String, int, int)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>drawString</h4> +<pre>public void drawString(java.lang.String str, + int x, + int y)</pre> +<div class="block">Draws the text given by the specified string, using this + graphics context's current font and color. The baseline of the + first character is at position (<i>x</i>, <i>y</i>) in this + graphics context's coordinate system.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>drawString</code> in class <code>java.awt.Graphics2D</code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>str</code> - the string to be drawn.</dd><dd><code>x</code> - the <i>x</i> coordinate.</dd><dd><code>y</code> - the <i>y</i> coordinate.</dd><dt><span class="strong">See Also:</span></dt><dd><code>Graphics.drawBytes(byte[], int, int, int, int)</code>, +<code>Graphics.drawChars(char[], int, int, int, int)</code></dd></dl> +</li> +</ul> +<a name="fillOval(int, int, int, int)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>fillOval</h4> +<pre>public void fillOval(int x, + int y, + int width, + int height)</pre> +<div class="block">Fills an oval bounded by the specified rectangle with the + current color.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>fillOval</code> in class <code>java.awt.Graphics</code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the <i>x</i> coordinate of the upper left corner + of the oval to be filled.</dd><dd><code>y</code> - the <i>y</i> coordinate of the upper left corner + of the oval to be filled.</dd><dd><code>width</code> - the width of the oval to be filled.</dd><dd><code>height</code> - the height of the oval to be filled.</dd><dt><span class="strong">See Also:</span></dt><dd><code>Graphics.drawOval(int, int, int, int)</code></dd></dl> +</li> +</ul> +<a name="fillRoundRect(int, int, int, int, int, int)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>fillRoundRect</h4> +<pre>public void fillRoundRect(int x, + int y, + int width, + int height, + int arcWidth, + int arcHeight)</pre> +<div class="block">Fills the specified rounded corner rectangle with the current color. + The left and right edges of the rectangle + are at <code>x</code> and <code>x + width - 1</code>, + respectively. The top and bottom edges of the rectangle are at + <code>y</code> and <code>y + height - 1</code>.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>fillRoundRect</code> in class <code>java.awt.Graphics</code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the <i>x</i> coordinate of the rectangle to be filled.</dd><dd><code>y</code> - the <i>y</i> coordinate of the rectangle to be filled.</dd><dd><code>width</code> - the width of the rectangle to be filled.</dd><dd><code>height</code> - the height of the rectangle to be filled.</dd><dd><code>arcWidth</code> - the horizontal diameter + of the arc at the four corners.</dd><dd><code>arcHeight</code> - the vertical diameter + of the arc at the four corners.</dd><dt><span class="strong">See Also:</span></dt><dd><code>Graphics.drawRoundRect(int, int, int, int, int, int)</code></dd></dl> +</li> +</ul> +<a name="fillArc(int, int, int, int, int, int)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>fillArc</h4> +<pre>public void fillArc(int x, + int y, + int width, + int height, + int startAngle, + int arcAngle)</pre> +<div class="block">Fills a circular or elliptical arc covering the specified rectangle. + <p> + The resulting arc begins at <code>startAngle</code> and extends + for <code>arcAngle</code> degrees. + Angles are interpreted such that 0 degrees + is at the 3 o'clock position. + A positive value indicates a counter-clockwise rotation + while a negative value indicates a clockwise rotation. + <p> + The center of the arc is the center of the rectangle whose origin + is (<i>x</i>, <i>y</i>) and whose size is specified by the + <code>width</code> and <code>height</code> arguments. + <p> + The resulting arc covers an area + <code>width + 1</code> pixels wide + by <code>height + 1</code> pixels tall. + <p> + The angles are specified relative to the non-square extents of + the bounding rectangle such that 45 degrees always falls on the + line from the center of the ellipse to the upper right corner of + the bounding rectangle. As a result, if the bounding rectangle is + noticeably longer in one axis than the other, the angles to the + start and end of the arc segment will be skewed farther along the + longer axis of the bounds.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>fillArc</code> in class <code>java.awt.Graphics</code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the <i>x</i> coordinate of the + upper-left corner of the arc to be filled.</dd><dd><code>y</code> - the <i>y</i> coordinate of the + upper-left corner of the arc to be filled.</dd><dd><code>width</code> - the width of the arc to be filled.</dd><dd><code>height</code> - the height of the arc to be filled.</dd><dd><code>startAngle</code> - the beginning angle.</dd><dd><code>arcAngle</code> - the angular extent of the arc, + relative to the start angle.</dd><dt><span class="strong">See Also:</span></dt><dd><code>Graphics.drawArc(int, int, int, int, int, int)</code></dd></dl> +</li> +</ul> +<a name="drawArc(int, int, int, int, int, int)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>drawArc</h4> +<pre>public void drawArc(int x, + int y, + int width, + int height, + int startAngle, + int arcAngle)</pre> +<div class="block">Draws the outline of a circular or elliptical arc + covering the specified rectangle. + <p> + The resulting arc begins at <code>startAngle</code> and extends + for <code>arcAngle</code> degrees, using the current color. + Angles are interpreted such that 0 degrees + is at the 3 o'clock position. + A positive value indicates a counter-clockwise rotation + while a negative value indicates a clockwise rotation. + <p> + The center of the arc is the center of the rectangle whose origin + is (<i>x</i>, <i>y</i>) and whose size is specified by the + <code>width</code> and <code>height</code> arguments. + <p> + The resulting arc covers an area + <code>width + 1</code> pixels wide + by <code>height + 1</code> pixels tall. + <p> + The angles are specified relative to the non-square extents of + the bounding rectangle such that 45 degrees always falls on the + line from the center of the ellipse to the upper right corner of + the bounding rectangle. As a result, if the bounding rectangle is + noticeably longer in one axis than the other, the angles to the + start and end of the arc segment will be skewed farther along the + longer axis of the bounds.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>drawArc</code> in class <code>java.awt.Graphics</code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the <i>x</i> coordinate of the + upper-left corner of the arc to be drawn.</dd><dd><code>y</code> - the <i>y</i> coordinate of the + upper-left corner of the arc to be drawn.</dd><dd><code>width</code> - the width of the arc to be drawn.</dd><dd><code>height</code> - the height of the arc to be drawn.</dd><dd><code>startAngle</code> - the beginning angle.</dd><dd><code>arcAngle</code> - the angular extent of the arc, + relative to the start angle.</dd><dt><span class="strong">See Also:</span></dt><dd><code>Graphics.fillArc(int, int, int, int, int, int)</code></dd></dl> +</li> +</ul> +<a name="drawPolyline(int[], int[], int)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>drawPolyline</h4> +<pre>public void drawPolyline(int[] xPoints, + int[] yPoints, + int nPoints)</pre> +<div class="block">Draws a sequence of connected lines defined by + arrays of <i>x</i> and <i>y</i> coordinates. + Each pair of (<i>x</i>, <i>y</i>) coordinates defines a point. + The figure is not closed if the first point + differs from the last point.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>drawPolyline</code> in class <code>java.awt.Graphics</code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>xPoints</code> - an array of <i>x</i> points</dd><dd><code>yPoints</code> - an array of <i>y</i> points</dd><dd><code>nPoints</code> - the total number of points</dd><dt><span class="strong">Since:</span></dt> + <dd>JDK1.1</dd> +<dt><span class="strong">See Also:</span></dt><dd><code>Graphics.drawPolygon(int[], int[], int)</code></dd></dl> +</li> +</ul> +<a name="drawOval(int, int, int, int)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>drawOval</h4> +<pre>public void drawOval(int x, + int y, + int width, + int height)</pre> +<div class="block">Draws the outline of an oval. + The result is a circle or ellipse that fits within the + rectangle specified by the <code>x</code>, <code>y</code>, + <code>width</code>, and <code>height</code> arguments. + <p> + The oval covers an area that is + <code>width + 1</code> pixels wide + and <code>height + 1</code> pixels tall.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>drawOval</code> in class <code>java.awt.Graphics</code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the <i>x</i> coordinate of the upper left + corner of the oval to be drawn.</dd><dd><code>y</code> - the <i>y</i> coordinate of the upper left + corner of the oval to be drawn.</dd><dd><code>width</code> - the width of the oval to be drawn.</dd><dd><code>height</code> - the height of the oval to be drawn.</dd><dt><span class="strong">See Also:</span></dt><dd><code>Graphics.fillOval(int, int, int, int)</code></dd></dl> +</li> +</ul> +<a name="drawImage(java.awt.Image, int, int, java.awt.Color, java.awt.image.ImageObserver)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>drawImage</h4> +<pre>public boolean drawImage(java.awt.Image img, + int x, + int y, + java.awt.Color bgcolor, + java.awt.image.ImageObserver observer)</pre> +<div class="block">Draws as much of the specified image as is currently available. + The image is drawn with its top-left corner at + (<i>x</i>, <i>y</i>) in this graphics context's coordinate + space. Transparent pixels are drawn in the specified + background color. + <p> + This operation is equivalent to filling a rectangle of the + width and height of the specified image with the given color and then + drawing the image on top of it, but possibly more efficient. + <p> + This method returns immediately in all cases, even if the + complete image has not yet been loaded, and it has not been dithered + and converted for the current output device. + <p> + If the image has not yet been completely loaded, then + <code>drawImage</code> returns <code>false</code>. As more of + the image becomes available, the process that draws the image notifies + the specified image observer.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>drawImage</code> in class <code>java.awt.Graphics</code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>img</code> - the specified image to be drawn.</dd><dd><code>x</code> - the <i>x</i> coordinate.</dd><dd><code>y</code> - the <i>y</i> coordinate.</dd><dd><code>bgcolor</code> - the background color to paint under the + non-opaque portions of the image.</dd><dd><code>observer</code> - object to be notified as more of + the image is converted.</dd><dt><span class="strong">See Also:</span></dt><dd><code>Image</code>, +<code>ImageObserver</code>, +<code>ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int)</code></dd></dl> +</li> +</ul> +<a name="drawImage(java.awt.Image, int, int, int, int, java.awt.Color, java.awt.image.ImageObserver)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>drawImage</h4> +<pre>public boolean drawImage(java.awt.Image img, + int x, + int y, + int width, + int height, + java.awt.Color bgcolor, + java.awt.image.ImageObserver observer)</pre> +<div class="block">Draws as much of the specified image as has already been scaled + to fit inside the specified rectangle. + <p> + The image is drawn inside the specified rectangle of this + graphics context's coordinate space, and is scaled if + necessary. Transparent pixels are drawn in the specified + background color. + This operation is equivalent to filling a rectangle of the + width and height of the specified image with the given color and then + drawing the image on top of it, but possibly more efficient. + <p> + This method returns immediately in all cases, even if the + entire image has not yet been scaled, dithered, and converted + for the current output device. + If the current output representation is not yet complete then + <code>drawImage</code> returns <code>false</code>. As more of + the image becomes available, the process that draws the image notifies + the specified image observer. + <p> + A scaled version of an image will not necessarily be + available immediately just because an unscaled version of the + image has been constructed for this output device. Each size of + the image may be cached separately and generated from the original + data in a separate image production sequence.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>drawImage</code> in class <code>java.awt.Graphics</code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>img</code> - the specified image to be drawn.</dd><dd><code>x</code> - the <i>x</i> coordinate.</dd><dd><code>y</code> - the <i>y</i> coordinate.</dd><dd><code>width</code> - the width of the rectangle.</dd><dd><code>height</code> - the height of the rectangle.</dd><dd><code>bgcolor</code> - the background color to paint under the + non-opaque portions of the image.</dd><dd><code>observer</code> - object to be notified as more of + the image is converted.</dd><dt><span class="strong">See Also:</span></dt><dd><code>Image</code>, +<code>ImageObserver</code>, +<code>ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int)</code></dd></dl> +</li> +</ul> +<a name="drawImage(java.awt.Image, int, int, int, int, int, int, int, int, java.awt.image.ImageObserver)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>drawImage</h4> +<pre>public boolean drawImage(java.awt.Image img, + int dx1, + int dy1, + int dx2, + int dy2, + int sx1, + int sy1, + int sx2, + int sy2, + java.awt.image.ImageObserver observer)</pre> +<div class="block">Draws as much of the specified area of the specified image as is + currently available, scaling it on the fly to fit inside the + specified area of the destination drawable surface. Transparent pixels + do not affect whatever pixels are already there. + <p> + This method returns immediately in all cases, even if the + image area to be drawn has not yet been scaled, dithered, and converted + for the current output device. + If the current output representation is not yet complete then + <code>drawImage</code> returns <code>false</code>. As more of + the image becomes available, the process that draws the image notifies + the specified image observer. + <p> + This method always uses the unscaled version of the image + to render the scaled rectangle and performs the required + scaling on the fly. It does not use a cached, scaled version + of the image for this operation. Scaling of the image from source + to destination is performed such that the first coordinate + of the source rectangle is mapped to the first coordinate of + the destination rectangle, and the second source coordinate is + mapped to the second destination coordinate. The subimage is + scaled and flipped as needed to preserve those mappings.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>drawImage</code> in class <code>java.awt.Graphics</code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>img</code> - the specified image to be drawn</dd><dd><code>dx1</code> - the <i>x</i> coordinate of the first corner of the + destination rectangle.</dd><dd><code>dy1</code> - the <i>y</i> coordinate of the first corner of the + destination rectangle.</dd><dd><code>dx2</code> - the <i>x</i> coordinate of the second corner of the + destination rectangle.</dd><dd><code>dy2</code> - the <i>y</i> coordinate of the second corner of the + destination rectangle.</dd><dd><code>sx1</code> - the <i>x</i> coordinate of the first corner of the + source rectangle.</dd><dd><code>sy1</code> - the <i>y</i> coordinate of the first corner of the + source rectangle.</dd><dd><code>sx2</code> - the <i>x</i> coordinate of the second corner of the + source rectangle.</dd><dd><code>sy2</code> - the <i>y</i> coordinate of the second corner of the + source rectangle.</dd><dd><code>observer</code> - object to be notified as more of the image is + scaled and converted.</dd><dt><span class="strong">Since:</span></dt> + <dd>JDK1.1</dd> +<dt><span class="strong">See Also:</span></dt><dd><code>Image</code>, +<code>ImageObserver</code>, +<code>ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int)</code></dd></dl> +</li> +</ul> +<a name="drawImage(java.awt.Image, int, int, int, int, int, int, int, int, java.awt.Color, java.awt.image.ImageObserver)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>drawImage</h4> +<pre>public boolean drawImage(java.awt.Image img, + int dx1, + int dy1, + int dx2, + int dy2, + int sx1, + int sy1, + int sx2, + int sy2, + java.awt.Color bgcolor, + java.awt.image.ImageObserver observer)</pre> +<div class="block">Draws as much of the specified area of the specified image as is + currently available, scaling it on the fly to fit inside the + specified area of the destination drawable surface. + <p> + Transparent pixels are drawn in the specified background color. + This operation is equivalent to filling a rectangle of the + width and height of the specified image with the given color and then + drawing the image on top of it, but possibly more efficient. + <p> + This method returns immediately in all cases, even if the + image area to be drawn has not yet been scaled, dithered, and converted + for the current output device. + If the current output representation is not yet complete then + <code>drawImage</code> returns <code>false</code>. As more of + the image becomes available, the process that draws the image notifies + the specified image observer. + <p> + This method always uses the unscaled version of the image + to render the scaled rectangle and performs the required + scaling on the fly. It does not use a cached, scaled version + of the image for this operation. Scaling of the image from source + to destination is performed such that the first coordinate + of the source rectangle is mapped to the first coordinate of + the destination rectangle, and the second source coordinate is + mapped to the second destination coordinate. The subimage is + scaled and flipped as needed to preserve those mappings.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>drawImage</code> in class <code>java.awt.Graphics</code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>img</code> - the specified image to be drawn</dd><dd><code>dx1</code> - the <i>x</i> coordinate of the first corner of the + destination rectangle.</dd><dd><code>dy1</code> - the <i>y</i> coordinate of the first corner of the + destination rectangle.</dd><dd><code>dx2</code> - the <i>x</i> coordinate of the second corner of the + destination rectangle.</dd><dd><code>dy2</code> - the <i>y</i> coordinate of the second corner of the + destination rectangle.</dd><dd><code>sx1</code> - the <i>x</i> coordinate of the first corner of the + source rectangle.</dd><dd><code>sy1</code> - the <i>y</i> coordinate of the first corner of the + source rectangle.</dd><dd><code>sx2</code> - the <i>x</i> coordinate of the second corner of the + source rectangle.</dd><dd><code>sy2</code> - the <i>y</i> coordinate of the second corner of the + source rectangle.</dd><dd><code>bgcolor</code> - the background color to paint under the + non-opaque portions of the image.</dd><dd><code>observer</code> - object to be notified as more of the image is + scaled and converted.</dd><dt><span class="strong">Since:</span></dt> + <dd>JDK1.1</dd> +<dt><span class="strong">See Also:</span></dt><dd><code>Image</code>, +<code>ImageObserver</code>, +<code>ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int)</code></dd></dl> +</li> +</ul> +<a name="drawImage(java.awt.Image, int, int, java.awt.image.ImageObserver)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>drawImage</h4> +<pre>public boolean drawImage(java.awt.Image img, + int x, + int y, + java.awt.image.ImageObserver observer)</pre> +<div class="block">Draws as much of the specified image as is currently available. + The image is drawn with its top-left corner at + (<i>x</i>, <i>y</i>) in this graphics context's coordinate + space. Transparent pixels in the image do not affect whatever + pixels are already there. + <p> + This method returns immediately in all cases, even if the + complete image has not yet been loaded, and it has not been dithered + and converted for the current output device. + <p> + If the image has completely loaded and its pixels are + no longer being changed, then + <code>drawImage</code> returns <code>true</code>. + Otherwise, <code>drawImage</code> returns <code>false</code> + and as more of + the image becomes available + or it is time to draw another frame of animation, + the process that loads the image notifies + the specified image observer.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>drawImage</code> in class <code>java.awt.Graphics</code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>img</code> - the specified image to be drawn. This method does + nothing if <code>img</code> is null.</dd><dd><code>x</code> - the <i>x</i> coordinate.</dd><dd><code>y</code> - the <i>y</i> coordinate.</dd><dd><code>observer</code> - object to be notified as more of + the image is converted.</dd> +<dt><span class="strong">Returns:</span></dt><dd><code>false</code> if the image pixels are still changing; + <code>true</code> otherwise.</dd><dt><span class="strong">See Also:</span></dt><dd><code>Image</code>, +<code>ImageObserver</code>, +<code>ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int)</code></dd></dl> +</li> +</ul> +<a name="dispose()"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>dispose</h4> +<pre>public void dispose()</pre> +<div class="block">Disposes of this graphics context and releases + any system resources that it is using. + A <code>Graphics</code> object cannot be used after + <code>dispose</code>has been called. + <p> + When a Java program runs, a large number of <code>Graphics</code> + objects can be created within a short time frame. + Although the finalization process of the garbage collector + also disposes of the same system resources, it is preferable + to manually free the associated resources by calling this + method rather than to rely on a finalization process which + may not run to completion for a long period of time. + <p> + Graphics objects which are provided as arguments to the + <code>paint</code> and <code>update</code> methods + of components are automatically released by the system when + those methods return. For efficiency, programmers should + call <code>dispose</code> when finished using + a <code>Graphics</code> object only if it was created + directly from a component or another <code>Graphics</code> object.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>dispose</code> in class <code>java.awt.Graphics</code></dd> +<dt><span class="strong">See Also:</span></dt><dd><code>Graphics.finalize()</code>, +<code>Component.paint(java.awt.Graphics)</code>, +<code>Component.update(java.awt.Graphics)</code>, +<code>Component.getGraphics()</code>, +<code>Graphics.create()</code></dd></dl> +</li> +</ul> +<a name="drawLine(int, int, int, int)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>drawLine</h4> +<pre>public void drawLine(int x1, + int y1, + int x2, + int y2)</pre> +<div class="block">Draws a line, using the current color, between the points + <code>(x1, y1)</code> and <code>(x2, y2)</code> + in this graphics context's coordinate system.</div> +<dl> +<dt><strong>Specified by:</strong></dt> +<dd><code>drawLine</code> in class <code>java.awt.Graphics</code></dd> +<dt><span class="strong">Parameters:</span></dt><dd><code>x1</code> - the first point's <i>x</i> coordinate.</dd><dd><code>y1</code> - the first point's <i>y</i> coordinate.</dd><dd><code>x2</code> - the second point's <i>x</i> coordinate.</dd><dd><code>y2</code> - the second point's <i>y</i> coordinate.</dd></dl> +</li> +</ul> +<a name="fillPolygon(int[], int[], int)"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>fillPolygon</h4> +<pre>public void fillPolygon(int[] xPoints, + int[] yPoints, + int nPoints)</pre> +<div class="block">Fills a closed polygon defined by + arrays of <i>x</i> and <i>y</i> coordinates. + <p> + This method draws the polygon defined by <code>nPoint</code> line + segments, where the first <code>nPoint - 1</code> + line segments are line segments from + <code>(xPoints[i - 1], yPoints[i - 1])</code> + to <code>(xPoints[i], yPoints[i])</code>, for + 1 ≤ <i>i</i> ≤ <code>nPoints</code>. + The figure is automatically closed by drawing a line connecting + the final point to the first point, if those points are different. + <p> + The area inside the polygon is defined using an + even-odd fill rule, also known as the alternating rule.</div> +<dl> +<dt><strong>Specified by:</strong></dt>
[... 1085 lines stripped ...] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
