| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!--NewPage--> |
| <HTML> |
| <HEAD> |
| <TITLE> |
| AbstractGraphics2D (Apache Batik Javadoc) |
| </TITLE> |
| |
| |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style"> |
| |
| <SCRIPT type="text/javascript"> |
| function windowTitle() |
| { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="AbstractGraphics2D (Apache Batik Javadoc)"; |
| } |
| } |
| </SCRIPT> |
| <NOSCRIPT> |
| </NOSCRIPT> |
| |
| </HEAD> |
| |
| <BODY BGCOLOR="white" onload="windowTitle();"> |
| <HR> |
| |
| |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <A NAME="navbar_top"><!-- --></A> |
| <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_top_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AbstractGraphics2D.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| PREV CLASS |
| <A HREF="../../../../../../org/apache/batik/ext/awt/g2d/DefaultGraphics2D.html" title="class in org.apache.batik.ext.awt.g2d"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../../index.html?org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="AbstractGraphics2D.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_top"></A> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| |
| <HR> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <H2> |
| <FONT SIZE="-1"> |
| org.apache.batik.ext.awt.g2d</FONT> |
| <BR> |
| Class AbstractGraphics2D</H2> |
| <PRE> |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> |
| <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">java.awt.Graphics</A> |
| <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">java.awt.Graphics2D</A> |
| <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.batik.ext.awt.g2d.AbstractGraphics2D</B> |
| </PRE> |
| <DL> |
| <DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</A></DD> |
| </DL> |
| <DL> |
| <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/DefaultGraphics2D.html" title="class in org.apache.batik.ext.awt.g2d">DefaultGraphics2D</A>, <A HREF="../../../../../../org/apache/batik/svggen/SVGGraphics2D.html" title="class in org.apache.batik.svggen">SVGGraphics2D</A></DD> |
| </DL> |
| <HR> |
| <DL> |
| <DT><PRE>public abstract class <B>AbstractGraphics2D</B><DT>extends <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A><DT>implements <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</A></DL> |
| </PRE> |
| |
| <P> |
| This extension of the <code>java.awt.Graphics2D</code> abstract class |
| is still abstract, but it implements a lot of the <code>Graphics2D</code> |
| method in a way that concrete implementations can reuse. |
| |
| This class uses a <code>GraphicContext</code> to store the state of |
| its various attributes that control the rendering, such as the |
| current <code>Font</code>, <code>Paint</code> or clip. |
| |
| Concrete implementations can focus on implementing the rendering |
| methods, such as <code>drawShape</code>. As a convenience, rendering |
| methods that can be expressed with other rendering methods (e.g., |
| <code>drawRect</code> can be expressed as <code>draw(new Rectangle(..))</code>), |
| are implemented by <code>AbstractGraphics2D</code> |
| <P> |
| |
| <P> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/GraphicContext.html" title="class in org.apache.batik.ext.awt.g2d"><CODE>GraphicContext</CODE></A></DL> |
| <HR> |
| |
| <P> |
| <!-- =========== FIELD SUMMARY =========== --> |
| |
| <A NAME="field_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Field Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected <A HREF="../../../../../../org/apache/batik/ext/awt/g2d/GraphicContext.html" title="class in org.apache.batik.ext.awt.g2d">GraphicContext</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#gc">gc</A></B></CODE> |
| |
| <BR> |
| Current state of the Graphic Context.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#textAsShapes">textAsShapes</A></B></CODE> |
| |
| <BR> |
| Text handling strategy.</TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| |
| <A NAME="constructor_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Constructor Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#AbstractGraphics2D(org.apache.batik.ext.awt.g2d.AbstractGraphics2D)">AbstractGraphics2D</A></B>(<A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html" title="class in org.apache.batik.ext.awt.g2d">AbstractGraphics2D</A> g)</CODE> |
| |
| <BR> |
| Creates a new AbstractGraphics2D from an existing instance.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#AbstractGraphics2D(boolean)">AbstractGraphics2D</A></B>(boolean textAsShapes)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ========== METHOD SUMMARY =========== --> |
| |
| <A NAME="method_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Method Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#addRenderingHints(java.util.Map)">addRenderingHints</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A> hints)</CODE> |
| |
| <BR> |
| Sets the values of an arbitrary number of preferences for the |
| rendering algorithms.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#clearRect(int, int, int, int)">clearRect</A></B>(int x, |
| int y, |
| int width, |
| int height)</CODE> |
| |
| <BR> |
| Clears the specified rectangle by filling it with the background |
| color of the current drawing surface.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#clip(java.awt.Shape)">clip</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A> s)</CODE> |
| |
| <BR> |
| 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.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#clipRect(int, int, int, int)">clipRect</A></B>(int x, |
| int y, |
| int width, |
| int height)</CODE> |
| |
| <BR> |
| Intersects the current clip with the specified rectangle.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#drawArc(int, int, int, int, int, int)">drawArc</A></B>(int x, |
| int y, |
| int width, |
| int height, |
| int startAngle, |
| int arcAngle)</CODE> |
| |
| <BR> |
| Draws the outline of a circular or elliptical arc |
| covering the specified rectangle.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#drawGlyphVector(java.awt.font.GlyphVector, float, float)">drawGlyphVector</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/font/GlyphVector.html?is-external=true" title="class or interface in java.awt.font">GlyphVector</A> g, |
| float x, |
| float y)</CODE> |
| |
| <BR> |
| Renders the text of the specified |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/font/GlyphVector.html?is-external=true" title="class or interface in java.awt.font"><CODE>GlyphVector</CODE></A> using |
| the <code>Graphics2D</code> context's rendering attributes.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#drawImage(java.awt.image.BufferedImage, java.awt.image.BufferedImageOp, int, int)">drawImage</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/BufferedImage.html?is-external=true" title="class or interface in java.awt.image">BufferedImage</A> img, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/BufferedImageOp.html?is-external=true" title="class or interface in java.awt.image">BufferedImageOp</A> op, |
| int x, |
| int y)</CODE> |
| |
| <BR> |
| Renders a <code>BufferedImage</code> that is |
| filtered with a |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/BufferedImageOp.html?is-external=true" title="class or interface in java.awt.image"><CODE>BufferedImageOp</CODE></A>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#drawImage(java.awt.Image, java.awt.geom.AffineTransform, java.awt.image.ImageObserver)">drawImage</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt">Image</A> img, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/AffineTransform.html?is-external=true" title="class or interface in java.awt.geom">AffineTransform</A> xform, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/ImageObserver.html?is-external=true" title="class or interface in java.awt.image">ImageObserver</A> obs)</CODE> |
| |
| <BR> |
| Renders an image, applying a transform from image space into user space |
| before drawing.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#drawImage(java.awt.Image, int, int, java.awt.Color, java.awt.image.ImageObserver)">drawImage</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt">Image</A> img, |
| int x, |
| int y, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A> bgcolor, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/ImageObserver.html?is-external=true" title="class or interface in java.awt.image">ImageObserver</A> observer)</CODE> |
| |
| <BR> |
| Draws as much of the specified image as is currently available.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#drawImage(java.awt.Image, int, int, int, int, java.awt.Color, java.awt.image.ImageObserver)">drawImage</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt">Image</A> img, |
| int x, |
| int y, |
| int width, |
| int height, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A> bgcolor, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/ImageObserver.html?is-external=true" title="class or interface in java.awt.image">ImageObserver</A> observer)</CODE> |
| |
| <BR> |
| Draws as much of the specified image as has already been scaled |
| to fit inside the specified rectangle.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#drawImage(java.awt.Image, int, int, int, int, int, int, int, int, java.awt.Color, java.awt.image.ImageObserver)">drawImage</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt">Image</A> img, |
| int dx1, |
| int dy1, |
| int dx2, |
| int dy2, |
| int sx1, |
| int sy1, |
| int sx2, |
| int sy2, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A> bgcolor, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/ImageObserver.html?is-external=true" title="class or interface in java.awt.image">ImageObserver</A> observer)</CODE> |
| |
| <BR> |
| 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.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#drawImage(java.awt.Image, int, int, int, int, int, int, int, int, java.awt.image.ImageObserver)">drawImage</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt">Image</A> img, |
| int dx1, |
| int dy1, |
| int dx2, |
| int dy2, |
| int sx1, |
| int sy1, |
| int sx2, |
| int sy2, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/ImageObserver.html?is-external=true" title="class or interface in java.awt.image">ImageObserver</A> observer)</CODE> |
| |
| <BR> |
| 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.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#drawLine(int, int, int, int)">drawLine</A></B>(int x1, |
| int y1, |
| int x2, |
| int y2)</CODE> |
| |
| <BR> |
| 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.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#drawOval(int, int, int, int)">drawOval</A></B>(int x, |
| int y, |
| int width, |
| int height)</CODE> |
| |
| <BR> |
| Draws the outline of an oval.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#drawPolygon(int[], int[], int)">drawPolygon</A></B>(int[] xPoints, |
| int[] yPoints, |
| int nPoints)</CODE> |
| |
| <BR> |
| Draws a closed polygon defined by |
| arrays of <i>x</i> and <i>y</i> coordinates.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#drawPolyline(int[], int[], int)">drawPolyline</A></B>(int[] xPoints, |
| int[] yPoints, |
| int nPoints)</CODE> |
| |
| <BR> |
| Draws a sequence of connected lines defined by |
| arrays of <i>x</i> and <i>y</i> coordinates.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#drawRect(int, int, int, int)">drawRect</A></B>(int x, |
| int y, |
| int width, |
| int height)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#drawRoundRect(int, int, int, int, int, int)">drawRoundRect</A></B>(int x, |
| int y, |
| int width, |
| int height, |
| int arcWidth, |
| int arcHeight)</CODE> |
| |
| <BR> |
| Draws an outlined round-cornered rectangle using this graphics |
| context's current color.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#drawString(java.text.AttributedCharacterIterator, int, int)">drawString</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/text/AttributedCharacterIterator.html?is-external=true" title="class or interface in java.text">AttributedCharacterIterator</A> iterator, |
| int x, |
| int y)</CODE> |
| |
| <BR> |
| Draws the text given by the specified iterator, using this |
| graphics context's current color.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#drawString(java.lang.String, int, int)">drawString</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str, |
| int x, |
| int y)</CODE> |
| |
| <BR> |
| Draws the text given by the specified string, using this |
| graphics context's current font and color.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#fillArc(int, int, int, int, int, int)">fillArc</A></B>(int x, |
| int y, |
| int width, |
| int height, |
| int startAngle, |
| int arcAngle)</CODE> |
| |
| <BR> |
| Fills a circular or elliptical arc covering the specified rectangle.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#fillOval(int, int, int, int)">fillOval</A></B>(int x, |
| int y, |
| int width, |
| int height)</CODE> |
| |
| <BR> |
| Fills an oval bounded by the specified rectangle with the |
| current color.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#fillPolygon(int[], int[], int)">fillPolygon</A></B>(int[] xPoints, |
| int[] yPoints, |
| int nPoints)</CODE> |
| |
| <BR> |
| Fills a closed polygon defined by |
| arrays of <i>x</i> and <i>y</i> coordinates.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#fillRect(int, int, int, int)">fillRect</A></B>(int x, |
| int y, |
| int width, |
| int height)</CODE> |
| |
| <BR> |
| Fills the specified rectangle.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#fillRoundRect(int, int, int, int, int, int)">fillRoundRect</A></B>(int x, |
| int y, |
| int width, |
| int height, |
| int arcWidth, |
| int arcHeight)</CODE> |
| |
| <BR> |
| Fills the specified rounded corner rectangle with the current color.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#getBackground()">getBackground</A></B>()</CODE> |
| |
| <BR> |
| Returns the background color used for clearing a region.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#getClip()">getClip</A></B>()</CODE> |
| |
| <BR> |
| Gets the current clipping area.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Rectangle.html?is-external=true" title="class or interface in java.awt">Rectangle</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#getClipBounds()">getClipBounds</A></B>()</CODE> |
| |
| <BR> |
| Returns the bounding rectangle of the current clipping area.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#getColor()">getColor</A></B>()</CODE> |
| |
| <BR> |
| Gets this graphics context's current color.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Composite.html?is-external=true" title="class or interface in java.awt">Composite</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#getComposite()">getComposite</A></B>()</CODE> |
| |
| <BR> |
| Returns the current <code>Composite</code> in the |
| <code>Graphics2D</code> context.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Font.html?is-external=true" title="class or interface in java.awt">Font</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#getFont()">getFont</A></B>()</CODE> |
| |
| <BR> |
| Gets the current font.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/font/FontRenderContext.html?is-external=true" title="class or interface in java.awt.font">FontRenderContext</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#getFontRenderContext()">getFontRenderContext</A></B>()</CODE> |
| |
| <BR> |
| Get the rendering context of the <code>Font</code> within this |
| <code>Graphics2D</code> context.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/apache/batik/ext/awt/g2d/GraphicContext.html" title="class in org.apache.batik.ext.awt.g2d">GraphicContext</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#getGraphicContext()">getGraphicContext</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Paint.html?is-external=true" title="class or interface in java.awt">Paint</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#getPaint()">getPaint</A></B>()</CODE> |
| |
| <BR> |
| Returns the current <code>Paint</code> of the |
| <code>Graphics2D</code> context.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#getRenderingHint(java.awt.RenderingHints.Key)">getRenderingHint</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/RenderingHints.Key.html?is-external=true" title="class or interface in java.awt">RenderingHints.Key</A> hintKey)</CODE> |
| |
| <BR> |
| Returns the value of a single preference for the rendering algorithms.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/RenderingHints.html?is-external=true" title="class or interface in java.awt">RenderingHints</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#getRenderingHints()">getRenderingHints</A></B>()</CODE> |
| |
| <BR> |
| Gets the preferences for the rendering algorithms.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Stroke.html?is-external=true" title="class or interface in java.awt">Stroke</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#getStroke()">getStroke</A></B>()</CODE> |
| |
| <BR> |
| Returns the current <code>Stroke</code> in the |
| <code>Graphics2D</code> context.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/AffineTransform.html?is-external=true" title="class or interface in java.awt.geom">AffineTransform</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#getTransform()">getTransform</A></B>()</CODE> |
| |
| <BR> |
| Returns a copy of the current <code>Transform</code> in the |
| <code>Graphics2D</code> context.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#hit(java.awt.Rectangle, java.awt.Shape, boolean)">hit</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Rectangle.html?is-external=true" title="class or interface in java.awt">Rectangle</A> rect, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A> s, |
| boolean onStroke)</CODE> |
| |
| <BR> |
| Checks whether or not the specified <code>Shape</code> intersects |
| the specified <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Rectangle.html?is-external=true" title="class or interface in java.awt"><CODE>Rectangle</CODE></A>, which is in device |
| space.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#rotate(double)">rotate</A></B>(double theta)</CODE> |
| |
| <BR> |
| Concatenates the current <code>Graphics2D</code> |
| <code>Transform</code> with a rotation transform.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#rotate(double, double, double)">rotate</A></B>(double theta, |
| double x, |
| double y)</CODE> |
| |
| <BR> |
| Concatenates the current <code>Graphics2D</code> |
| <code>Transform</code> with a translated rotation |
| transform.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#scale(double, double)">scale</A></B>(double sx, |
| double sy)</CODE> |
| |
| <BR> |
| 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.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setBackground(java.awt.Color)">setBackground</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A> color)</CODE> |
| |
| <BR> |
| Sets the background color for the <code>Graphics2D</code> context.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setClip(int, int, int, int)">setClip</A></B>(int x, |
| int y, |
| int width, |
| int height)</CODE> |
| |
| <BR> |
| Sets the current clip to the rectangle specified by the given |
| coordinates.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setClip(java.awt.Shape)">setClip</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A> clip)</CODE> |
| |
| <BR> |
| Sets the current clipping area to an arbitrary clip shape.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setColor(java.awt.Color)">setColor</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A> c)</CODE> |
| |
| <BR> |
| Sets this graphics context's current color to the specified |
| color.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setComposite(java.awt.Composite)">setComposite</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Composite.html?is-external=true" title="class or interface in java.awt">Composite</A> comp)</CODE> |
| |
| <BR> |
| Sets the <code>Composite</code> for the <code>Graphics2D</code> context.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setFont(java.awt.Font)">setFont</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Font.html?is-external=true" title="class or interface in java.awt">Font</A> font)</CODE> |
| |
| <BR> |
| Sets this graphics context's font to the specified font.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setPaint(java.awt.Paint)">setPaint</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Paint.html?is-external=true" title="class or interface in java.awt">Paint</A> paint)</CODE> |
| |
| <BR> |
| Sets the <code>Paint</code> attribute for the |
| <code>Graphics2D</code> context.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setPaintMode()">setPaintMode</A></B>()</CODE> |
| |
| <BR> |
| Sets the paint mode of this graphics context to overwrite the |
| destination with this graphics context's current color.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setRenderingHint(java.awt.RenderingHints.Key, java.lang.Object)">setRenderingHint</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/RenderingHints.Key.html?is-external=true" title="class or interface in java.awt">RenderingHints.Key</A> hintKey, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> hintValue)</CODE> |
| |
| <BR> |
| Sets the value of a single preference for the rendering algorithms.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setRenderingHints(java.util.Map)">setRenderingHints</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A> hints)</CODE> |
| |
| <BR> |
| Replaces the values of all preferences for the rendering |
| algorithms with the specified <code>hints</code>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setStroke(java.awt.Stroke)">setStroke</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Stroke.html?is-external=true" title="class or interface in java.awt">Stroke</A> s)</CODE> |
| |
| <BR> |
| Sets the <code>Stroke</code> for the <code>Graphics2D</code> context.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setTransform(java.awt.geom.AffineTransform)">setTransform</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/AffineTransform.html?is-external=true" title="class or interface in java.awt.geom">AffineTransform</A> Tx)</CODE> |
| |
| <BR> |
| Sets the <code>Transform</code> in the <code>Graphics2D</code> |
| context.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#shear(double, double)">shear</A></B>(double shx, |
| double shy)</CODE> |
| |
| <BR> |
| Concatenates the current <code>Graphics2D</code> |
| <code>Transform</code> with a shearing transform.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#transform(java.awt.geom.AffineTransform)">transform</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/AffineTransform.html?is-external=true" title="class or interface in java.awt.geom">AffineTransform</A> Tx)</CODE> |
| |
| <BR> |
| Composes an <code>AffineTransform</code> object with the |
| <code>Transform</code> in this <code>Graphics2D</code> according |
| to the rule last-specified-first-applied.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#translate(double, double)">translate</A></B>(double tx, |
| double ty)</CODE> |
| |
| <BR> |
| Concatenates the current |
| <code>Graphics2D</code> <code>Transform</code> |
| with a translation transform.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#translate(int, int)">translate</A></B>(int x, |
| int y)</CODE> |
| |
| <BR> |
| Translates the origin of the graphics context to the point |
| (<i>x</i>, <i>y</i>) in the current coordinate system.</TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_java.awt.Graphics2D"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Methods inherited from class java.awt.<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#draw(java.awt.Shape)" title="class or interface in java.awt">draw</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#draw3DRect(int, int, int, int, boolean)" title="class or interface in java.awt">draw3DRect</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#drawRenderableImage(java.awt.image.renderable.RenderableImage, java.awt.geom.AffineTransform)" title="class or interface in java.awt">drawRenderableImage</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#drawRenderedImage(java.awt.image.RenderedImage, java.awt.geom.AffineTransform)" title="class or interface in java.awt">drawRenderedImage</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#drawString(java.text.AttributedCharacterIterator, float, float)" title="class or interface in java.awt">drawString</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#drawString(java.lang.String, float, float)" title="class or interface in java.awt">drawString</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#fill(java.awt.Shape)" title="class or interface in java.awt">fill</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#fill3DRect(int, int, int, int, boolean)" title="class or interface in java.awt">fill3DRect</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#getDeviceConfiguration()" title="class or interface in java.awt">getDeviceConfiguration</A></CODE></TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_java.awt.Graphics"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Methods inherited from class java.awt.<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#copyArea(int, int, int, int, int, int)" title="class or interface in java.awt">copyArea</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#create()" title="class or interface in java.awt">create</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#create(int, int, int, int)" title="class or interface in java.awt">create</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#dispose()" title="class or interface in java.awt">dispose</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawBytes(byte[], int, int, int, int)" title="class or interface in java.awt">drawBytes</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawChars(char[], int, int, int, int)" title="class or interface in java.awt">drawChars</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawImage(java.awt.Image, int, int, java.awt.image.ImageObserver)" title="class or interface in java.awt">drawImage</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawImage(java.awt.Image, int, int, int, int, java.awt.image.ImageObserver)" title="class or interface in java.awt">drawImage</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawPolygon(java.awt.Polygon)" title="class or interface in java.awt">drawPolygon</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#fillPolygon(java.awt.Polygon)" title="class or interface in java.awt">fillPolygon</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#finalize()" title="class or interface in java.awt">finalize</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#getClipBounds(java.awt.Rectangle)" title="class or interface in java.awt">getClipBounds</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#getClipRect()" title="class or interface in java.awt">getClipRect</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#getFontMetrics()" title="class or interface in java.awt">getFontMetrics</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#getFontMetrics(java.awt.Font)" title="class or interface in java.awt">getFontMetrics</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#hitClip(int, int, int, int)" title="class or interface in java.awt">hitClip</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#setXORMode(java.awt.Color)" title="class or interface in java.awt">setXORMode</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#toString()" title="class or interface in java.awt">toString</A></CODE></TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <P> |
| |
| <!-- ============ FIELD DETAIL =========== --> |
| |
| <A NAME="field_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Field Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="gc"><!-- --></A><H3> |
| gc</H3> |
| <PRE> |
| protected <A HREF="../../../../../../org/apache/batik/ext/awt/g2d/GraphicContext.html" title="class in org.apache.batik.ext.awt.g2d">GraphicContext</A> <B>gc</B></PRE> |
| <DL> |
| <DD>Current state of the Graphic Context. The GraphicsContext |
| class manages the state of this <code>Graphics2D</code> graphic context |
| attributes. |
| <P> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="textAsShapes"><!-- --></A><H3> |
| textAsShapes</H3> |
| <PRE> |
| protected boolean <B>textAsShapes</B></PRE> |
| <DL> |
| <DD>Text handling strategy. |
| <P> |
| <DL> |
| </DL> |
| </DL> |
| |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| |
| <A NAME="constructor_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Constructor Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="AbstractGraphics2D(boolean)"><!-- --></A><H3> |
| AbstractGraphics2D</H3> |
| <PRE> |
| public <B>AbstractGraphics2D</B>(boolean textAsShapes)</PRE> |
| <DL> |
| <DL> |
| <DT><B>Parameters:</B><DD><CODE>textAsShapes</CODE> - if true, all text is turned into shapes in the |
| convertion. No text is output.</DL> |
| </DL> |
| <HR> |
| |
| <A NAME="AbstractGraphics2D(org.apache.batik.ext.awt.g2d.AbstractGraphics2D)"><!-- --></A><H3> |
| AbstractGraphics2D</H3> |
| <PRE> |
| public <B>AbstractGraphics2D</B>(<A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html" title="class in org.apache.batik.ext.awt.g2d">AbstractGraphics2D</A> g)</PRE> |
| <DL> |
| <DD>Creates a new AbstractGraphics2D from an existing instance. |
| <P> |
| <DL> |
| <DT><B>Parameters:</B><DD><CODE>g</CODE> - the AbstractGraphics2D whose properties should be copied</DL> |
| </DL> |
| |
| <!-- ============ METHOD DETAIL ========== --> |
| |
| <A NAME="method_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Method Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="translate(int, int)"><!-- --></A><H3> |
| translate</H3> |
| <PRE> |
| public void <B>translate</B>(int x, |
| int y)</PRE> |
| <DL> |
| <DD>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. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#translate(int, int)" title="class or interface in java.awt">translate</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>x</CODE> - the <i>x</i> coordinate.<DD><CODE>y</CODE> - the <i>y</i> coordinate.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getColor()"><!-- --></A><H3> |
| getColor</H3> |
| <PRE> |
| public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A> <B>getColor</B>()</PRE> |
| <DL> |
| <DD>Gets this graphics context's current color. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#getColor()" title="class or interface in java.awt">getColor</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>this graphics context's current color.<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt"><CODE>Color</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#setColor(java.awt.Color)" title="class or interface in java.awt"><CODE>Graphics.setColor(java.awt.Color)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setColor(java.awt.Color)"><!-- --></A><H3> |
| setColor</H3> |
| <PRE> |
| public void <B>setColor</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A> c)</PRE> |
| <DL> |
| <DD>Sets this graphics context's current color to the specified |
| color. All subsequent graphics operations using this graphics |
| context use this specified color. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#setColor(java.awt.Color)" title="class or interface in java.awt">setColor</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>c</CODE> - the new rendering color.<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt"><CODE>Color</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#getColor()" title="class or interface in java.awt"><CODE>Graphics.getColor()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setPaintMode()"><!-- --></A><H3> |
| setPaintMode</H3> |
| <PRE> |
| public void <B>setPaintMode</B>()</PRE> |
| <DL> |
| <DD>Sets the paint mode of this graphics context to overwrite the |
| destination with this graphics context's current color. |
| This sets the logical pixel operation function to the paint or |
| overwrite mode. All subsequent rendering operations will |
| overwrite the destination with the current color. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#setPaintMode()" title="class or interface in java.awt">setPaintMode</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getFont()"><!-- --></A><H3> |
| getFont</H3> |
| <PRE> |
| public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Font.html?is-external=true" title="class or interface in java.awt">Font</A> <B>getFont</B>()</PRE> |
| <DL> |
| <DD>Gets the current font. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#getFont()" title="class or interface in java.awt">getFont</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>this graphics context's current font.<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Font.html?is-external=true" title="class or interface in java.awt"><CODE>Font</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#setFont(java.awt.Font)" title="class or interface in java.awt"><CODE>Graphics.setFont(java.awt.Font)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setFont(java.awt.Font)"><!-- --></A><H3> |
| setFont</H3> |
| <PRE> |
| public void <B>setFont</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Font.html?is-external=true" title="class or interface in java.awt">Font</A> font)</PRE> |
| <DL> |
| <DD>Sets this graphics context's font to the specified font. |
| All subsequent text operations using this graphics context |
| use this font. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#setFont(java.awt.Font)" title="class or interface in java.awt">setFont</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>font</CODE> - the font.<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#getFont()" title="class or interface in java.awt"><CODE>Graphics.getFont()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getClipBounds()"><!-- --></A><H3> |
| getClipBounds</H3> |
| <PRE> |
| public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Rectangle.html?is-external=true" title="class or interface in java.awt">Rectangle</A> <B>getClipBounds</B>()</PRE> |
| <DL> |
| <DD>Returns the bounding rectangle of the current clipping area. |
| This method refers to 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>. |
| The coordinates in the rectangle are relative to the coordinate |
| system origin of this graphics context. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#getClipBounds()" title="class or interface in java.awt">getClipBounds</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the bounding rectangle of the current clipping area, |
| or <code>null</code> if no clip is set.<DT><B>Since:</B></DT> |
| <DD>JDK1.1</DD> |
| <DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#getClip()" title="class or interface in java.awt"><CODE>Graphics.getClip()</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#clipRect(int, int, int, int)" title="class or interface in java.awt"><CODE>Graphics.clipRect(int, int, int, int)</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#setClip(int, int, int, int)" title="class or interface in java.awt"><CODE>Graphics.setClip(int, int, int, int)</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#setClip(java.awt.Shape)" title="class or interface in java.awt"><CODE>Graphics.setClip(Shape)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="clipRect(int, int, int, int)"><!-- --></A><H3> |
| clipRect</H3> |
| <PRE> |
| public void <B>clipRect</B>(int x, |
| int y, |
| int width, |
| int height)</PRE> |
| <DL> |
| <DD>Intersects the current clip with the specified rectangle. |
| The resulting clipping area is the intersection of the current |
| clipping area and the specified rectangle. If there is no |
| current clipping area, either because the clip has never been |
| set, or the clip has been cleared using <code>setClip(null)</code>, |
| the specified rectangle becomes the new clip. |
| This method sets the user clip, which is independent of the |
| clipping associated with device bounds and window visibility. |
| This method can only be used to make the current clip smaller. |
| To set the current clip larger, use any of the setClip methods. |
| Rendering operations have no effect outside of the clipping area. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#clipRect(int, int, int, int)" title="class or interface in java.awt">clipRect</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>x</CODE> - the x coordinate of the rectangle to intersect the clip with<DD><CODE>y</CODE> - the y coordinate of the rectangle to intersect the clip with<DD><CODE>width</CODE> - the width of the rectangle to intersect the clip with<DD><CODE>height</CODE> - the height of the rectangle to intersect the clip with<DT><B>See Also:</B><DD><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setClip(int, int, int, int)"><CODE>setClip(int, int, int, int)</CODE></A>, |
| <A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setClip(java.awt.Shape)"><CODE>setClip(Shape)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setClip(int, int, int, int)"><!-- --></A><H3> |
| setClip</H3> |
| <PRE> |
| public void <B>setClip</B>(int x, |
| int y, |
| int width, |
| int height)</PRE> |
| <DL> |
| <DD>Sets the current clip to the rectangle specified by the given |
| coordinates. This method sets the user clip, which is |
| independent of the clipping associated with device bounds |
| and window visibility. |
| Rendering operations have no effect outside of the clipping area. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#setClip(int, int, int, int)" title="class or interface in java.awt">setClip</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>x</CODE> - the <i>x</i> coordinate of the new clip rectangle.<DD><CODE>y</CODE> - the <i>y</i> coordinate of the new clip rectangle.<DD><CODE>width</CODE> - the width of the new clip rectangle.<DD><CODE>height</CODE> - the height of the new clip rectangle.<DT><B>Since:</B></DT> |
| <DD>JDK1.1</DD> |
| <DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#clipRect(int, int, int, int)" title="class or interface in java.awt"><CODE>Graphics.clipRect(int, int, int, int)</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#setClip(java.awt.Shape)" title="class or interface in java.awt"><CODE>Graphics.setClip(Shape)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getClip()"><!-- --></A><H3> |
| getClip</H3> |
| <PRE> |
| public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A> <B>getClip</B>()</PRE> |
| <DL> |
| <DD>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>. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#getClip()" title="class or interface in java.awt">getClip</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>a <code>Shape</code> object representing the |
| current clipping area, or <code>null</code> if |
| no clip is set.<DT><B>Since:</B></DT> |
| <DD>JDK1.1</DD> |
| <DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#getClipBounds()" title="class or interface in java.awt"><CODE>Graphics.getClipBounds()</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#clipRect(int, int, int, int)" title="class or interface in java.awt"><CODE>Graphics.clipRect(int, int, int, int)</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#setClip(int, int, int, int)" title="class or interface in java.awt"><CODE>Graphics.setClip(int, int, int, int)</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#setClip(java.awt.Shape)" title="class or interface in java.awt"><CODE>Graphics.setClip(Shape)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setClip(java.awt.Shape)"><!-- --></A><H3> |
| setClip</H3> |
| <PRE> |
| public void <B>setClip</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A> clip)</PRE> |
| <DL> |
| <DD>Sets the current clipping area to an arbitrary clip shape. |
| Not all objects that implement the <code>Shape</code> |
| interface can be used to set the clip. The only |
| <code>Shape</code> objects that are guaranteed to be |
| supported are <code>Shape</code> objects that are |
| obtained via the <code>getClip</code> method and via |
| <code>Rectangle</code> objects. This method sets the |
| user clip, which is independent of the clipping associated |
| with device bounds and window visibility. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#setClip(java.awt.Shape)" title="class or interface in java.awt">setClip</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>clip</CODE> - the <code>Shape</code> to use to set the clip<DT><B>Since:</B></DT> |
| <DD>JDK1.1</DD> |
| <DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#getClip()" title="class or interface in java.awt"><CODE>Graphics.getClip()</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#clipRect(int, int, int, int)" title="class or interface in java.awt"><CODE>Graphics.clipRect(int, int, int, int)</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#setClip(int, int, int, int)" title="class or interface in java.awt"><CODE>Graphics.setClip(int, int, int, int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="drawLine(int, int, int, int)"><!-- --></A><H3> |
| drawLine</H3> |
| <PRE> |
| public void <B>drawLine</B>(int x1, |
| int y1, |
| int x2, |
| int y2)</PRE> |
| <DL> |
| <DD>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. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawLine(int, int, int, int)" title="class or interface in java.awt">drawLine</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>x1</CODE> - the first point's <i>x</i> coordinate.<DD><CODE>y1</CODE> - the first point's <i>y</i> coordinate.<DD><CODE>x2</CODE> - the second point's <i>x</i> coordinate.<DD><CODE>y2</CODE> - the second point's <i>y</i> coordinate.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="fillRect(int, int, int, int)"><!-- --></A><H3> |
| fillRect</H3> |
| <PRE> |
| public void <B>fillRect</B>(int x, |
| int y, |
| int width, |
| int height)</PRE> |
| <DL> |
| <DD>Fills the specified rectangle. |
| The left and right edges of the rectangle are at |
| <code>x</code> and <code>x + width - 1</code>. |
| The top and bottom edges are at |
| <code>y</code> and <code>y + height - 1</code>. |
| The resulting rectangle covers an area |
| <code>width</code> pixels wide by |
| <code>height</code> pixels tall. |
| The rectangle is filled using the graphics context's current color. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#fillRect(int, int, int, int)" title="class or interface in java.awt">fillRect</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>x</CODE> - the <i>x</i> coordinate |
| of the rectangle to be filled.<DD><CODE>y</CODE> - the <i>y</i> coordinate |
| of the rectangle to be filled.<DD><CODE>width</CODE> - the width of the rectangle to be filled.<DD><CODE>height</CODE> - the height of the rectangle to be filled.<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#clearRect(int, int, int, int)" title="class or interface in java.awt"><CODE>Graphics.clearRect(int, int, int, int)</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawRect(int, int, int, int)" title="class or interface in java.awt"><CODE>Graphics.drawRect(int, int, int, int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="drawRect(int, int, int, int)"><!-- --></A><H3> |
| drawRect</H3> |
| <PRE> |
| public void <B>drawRect</B>(int x, |
| int y, |
| int width, |
| int height)</PRE> |
| <DL> |
| <DD><DL> |
| <DT><B>Overrides:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawRect(int, int, int, int)" title="class or interface in java.awt">drawRect</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="clearRect(int, int, int, int)"><!-- --></A><H3> |
| clearRect</H3> |
| <PRE> |
| public void <B>clearRect</B>(int x, |
| int y, |
| int width, |
| int height)</PRE> |
| <DL> |
| <DD>Clears the specified rectangle by filling it with the background |
| color of the current drawing surface. This operation does not |
| use the current paint mode. |
| <p> |
| Beginning with Java 1.1, the background color |
| of offscreen images may be system dependent. Applications should |
| use <code>setColor</code> followed by <code>fillRect</code> to |
| ensure that an offscreen image is cleared to a specific color. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#clearRect(int, int, int, int)" title="class or interface in java.awt">clearRect</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>x</CODE> - the <i>x</i> coordinate of the rectangle to clear.<DD><CODE>y</CODE> - the <i>y</i> coordinate of the rectangle to clear.<DD><CODE>width</CODE> - the width of the rectangle to clear.<DD><CODE>height</CODE> - the height of the rectangle to clear.<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#fillRect(int, int, int, int)" title="class or interface in java.awt"><CODE>Graphics.fillRect(int, int, int, int)</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawRect(int, int, int, int)" title="class or interface in java.awt"><CODE>Graphics.drawRect(int, int, int, int)</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#setColor(java.awt.Color)" title="class or interface in java.awt"><CODE>Graphics.setColor(java.awt.Color)</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#setPaintMode()" title="class or interface in java.awt"><CODE>Graphics.setPaintMode()</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#setXORMode(java.awt.Color)" title="class or interface in java.awt"><CODE>Graphics.setXORMode(java.awt.Color)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="drawRoundRect(int, int, int, int, int, int)"><!-- --></A><H3> |
| drawRoundRect</H3> |
| <PRE> |
| public void <B>drawRoundRect</B>(int x, |
| int y, |
| int width, |
| int height, |
| int arcWidth, |
| int arcHeight)</PRE> |
| <DL> |
| <DD>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>. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawRoundRect(int, int, int, int, int, int)" title="class or interface in java.awt">drawRoundRect</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>x</CODE> - the <i>x</i> coordinate of the rectangle to be drawn.<DD><CODE>y</CODE> - the <i>y</i> coordinate of the rectangle to be drawn.<DD><CODE>width</CODE> - the width of the rectangle to be drawn.<DD><CODE>height</CODE> - the height of the rectangle to be drawn.<DD><CODE>arcWidth</CODE> - the horizontal diameter of the arc |
| at the four corners.<DD><CODE>arcHeight</CODE> - the vertical diameter of the arc |
| at the four corners.<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#fillRoundRect(int, int, int, int, int, int)" title="class or interface in java.awt"><CODE>Graphics.fillRoundRect(int, int, int, int, int, int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="fillRoundRect(int, int, int, int, int, int)"><!-- --></A><H3> |
| fillRoundRect</H3> |
| <PRE> |
| public void <B>fillRoundRect</B>(int x, |
| int y, |
| int width, |
| int height, |
| int arcWidth, |
| int arcHeight)</PRE> |
| <DL> |
| <DD>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>. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#fillRoundRect(int, int, int, int, int, int)" title="class or interface in java.awt">fillRoundRect</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>x</CODE> - the <i>x</i> coordinate of the rectangle to be filled.<DD><CODE>y</CODE> - the <i>y</i> coordinate of the rectangle to be filled.<DD><CODE>width</CODE> - the width of the rectangle to be filled.<DD><CODE>height</CODE> - the height of the rectangle to be filled.<DD><CODE>arcWidth</CODE> - the horizontal diameter |
| of the arc at the four corners.<DD><CODE>arcHeight</CODE> - the vertical diameter |
| of the arc at the four corners.<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawRoundRect(int, int, int, int, int, int)" title="class or interface in java.awt"><CODE>Graphics.drawRoundRect(int, int, int, int, int, int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="drawOval(int, int, int, int)"><!-- --></A><H3> |
| drawOval</H3> |
| <PRE> |
| public void <B>drawOval</B>(int x, |
| int y, |
| int width, |
| int height)</PRE> |
| <DL> |
| <DD>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. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawOval(int, int, int, int)" title="class or interface in java.awt">drawOval</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>x</CODE> - the <i>x</i> coordinate of the upper left |
| corner of the oval to be drawn.<DD><CODE>y</CODE> - the <i>y</i> coordinate of the upper left |
| corner of the oval to be drawn.<DD><CODE>width</CODE> - the width of the oval to be drawn.<DD><CODE>height</CODE> - the height of the oval to be drawn.<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#fillOval(int, int, int, int)" title="class or interface in java.awt"><CODE>Graphics.fillOval(int, int, int, int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="fillOval(int, int, int, int)"><!-- --></A><H3> |
| fillOval</H3> |
| <PRE> |
| public void <B>fillOval</B>(int x, |
| int y, |
| int width, |
| int height)</PRE> |
| <DL> |
| <DD>Fills an oval bounded by the specified rectangle with the |
| current color. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#fillOval(int, int, int, int)" title="class or interface in java.awt">fillOval</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>x</CODE> - the <i>x</i> coordinate of the upper left corner |
| of the oval to be filled.<DD><CODE>y</CODE> - the <i>y</i> coordinate of the upper left corner |
| of the oval to be filled.<DD><CODE>width</CODE> - the width of the oval to be filled.<DD><CODE>height</CODE> - the height of the oval to be filled.<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawOval(int, int, int, int)" title="class or interface in java.awt"><CODE>Graphics.drawOval(int, int, int, int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="drawArc(int, int, int, int, int, int)"><!-- --></A><H3> |
| drawArc</H3> |
| <PRE> |
| public void <B>drawArc</B>(int x, |
| int y, |
| int width, |
| int height, |
| int startAngle, |
| int arcAngle)</PRE> |
| <DL> |
| <DD>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. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawArc(int, int, int, int, int, int)" title="class or interface in java.awt">drawArc</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>x</CODE> - the <i>x</i> coordinate of the |
| upper-left corner of the arc to be drawn.<DD><CODE>y</CODE> - the <i>y</i> coordinate of the |
| upper-left corner of the arc to be drawn.<DD><CODE>width</CODE> - the width of the arc to be drawn.<DD><CODE>height</CODE> - the height of the arc to be drawn.<DD><CODE>startAngle</CODE> - the beginning angle.<DD><CODE>arcAngle</CODE> - the angular extent of the arc, |
| relative to the start angle.<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#fillArc(int, int, int, int, int, int)" title="class or interface in java.awt"><CODE>Graphics.fillArc(int, int, int, int, int, int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="fillArc(int, int, int, int, int, int)"><!-- --></A><H3> |
| fillArc</H3> |
| <PRE> |
| public void <B>fillArc</B>(int x, |
| int y, |
| int width, |
| int height, |
| int startAngle, |
| int arcAngle)</PRE> |
| <DL> |
| <DD>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. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#fillArc(int, int, int, int, int, int)" title="class or interface in java.awt">fillArc</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>x</CODE> - the <i>x</i> coordinate of the |
| upper-left corner of the arc to be filled.<DD><CODE>y</CODE> - the <i>y</i> coordinate of the |
| upper-left corner of the arc to be filled.<DD><CODE>width</CODE> - the width of the arc to be filled.<DD><CODE>height</CODE> - the height of the arc to be filled.<DD><CODE>startAngle</CODE> - the beginning angle.<DD><CODE>arcAngle</CODE> - the angular extent of the arc, |
| relative to the start angle.<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawArc(int, int, int, int, int, int)" title="class or interface in java.awt"><CODE>Graphics.drawArc(int, int, int, int, int, int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="drawPolyline(int[], int[], int)"><!-- --></A><H3> |
| drawPolyline</H3> |
| <PRE> |
| public void <B>drawPolyline</B>(int[] xPoints, |
| int[] yPoints, |
| int nPoints)</PRE> |
| <DL> |
| <DD>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. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawPolyline(int[], int[], int)" title="class or interface in java.awt">drawPolyline</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>xPoints</CODE> - an array of <i>x</i> points<DD><CODE>yPoints</CODE> - an array of <i>y</i> points<DD><CODE>nPoints</CODE> - the total number of points<DT><B>Since:</B></DT> |
| <DD>JDK1.1</DD> |
| <DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawPolygon(int[], int[], int)" title="class or interface in java.awt"><CODE>Graphics.drawPolygon(int[], int[], int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="drawPolygon(int[], int[], int)"><!-- --></A><H3> |
| drawPolygon</H3> |
| <PRE> |
| public void <B>drawPolygon</B>(int[] xPoints, |
| int[] yPoints, |
| int nPoints)</PRE> |
| <DL> |
| <DD>Draws a closed polygon 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. |
| <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> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawPolygon(int[], int[], int)" title="class or interface in java.awt">drawPolygon</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>xPoints</CODE> - a an array of <code>x</code> coordinates.<DD><CODE>yPoints</CODE> - a an array of <code>y</code> coordinates.<DD><CODE>nPoints</CODE> - a the total number of points.<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#fillPolygon(int[], int[], int)" title="class or interface in java.awt"><CODE>Graphics.fillPolygon(int[],int[],int)</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawPolyline(int[], int[], int)" title="class or interface in java.awt"><CODE>Graphics.drawPolyline(int[], int[], int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="fillPolygon(int[], int[], int)"><!-- --></A><H3> |
| fillPolygon</H3> |
| <PRE> |
| public void <B>fillPolygon</B>(int[] xPoints, |
| int[] yPoints, |
| int nPoints)</PRE> |
| <DL> |
| <DD>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. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#fillPolygon(int[], int[], int)" title="class or interface in java.awt">fillPolygon</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>xPoints</CODE> - a an array of <code>x</code> coordinates.<DD><CODE>yPoints</CODE> - a an array of <code>y</code> coordinates.<DD><CODE>nPoints</CODE> - a the total number of points.<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawPolygon(int[], int[], int)" title="class or interface in java.awt"><CODE>Graphics.drawPolygon(int[], int[], int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="drawString(java.lang.String, int, int)"><!-- --></A><H3> |
| drawString</H3> |
| <PRE> |
| public void <B>drawString</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> str, |
| int x, |
| int y)</PRE> |
| <DL> |
| <DD>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. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#drawString(java.lang.String, int, int)" title="class or interface in java.awt">drawString</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>str</CODE> - the string to be drawn.<DD><CODE>x</CODE> - the <i>x</i> coordinate.<DD><CODE>y</CODE> - the <i>y</i> coordinate.<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawBytes(byte[], int, int, int, int)" title="class or interface in java.awt"><CODE>Graphics.drawBytes(byte[], int, int, int, int)</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawChars(char[], int, int, int, int)" title="class or interface in java.awt"><CODE>Graphics.drawChars(char[], int, int, int, int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="drawString(java.text.AttributedCharacterIterator, int, int)"><!-- --></A><H3> |
| drawString</H3> |
| <PRE> |
| public void <B>drawString</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/text/AttributedCharacterIterator.html?is-external=true" title="class or interface in java.text">AttributedCharacterIterator</A> iterator, |
| int x, |
| int y)</PRE> |
| <DL> |
| <DD>Draws the text given by the specified iterator, using this |
| graphics context's current color. The iterator has to specify a font |
| for each character. The baseline of the |
| first character is at position (<i>x</i>, <i>y</i>) in this |
| graphics context's coordinate system. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#drawString(java.text.AttributedCharacterIterator, int, int)" title="class or interface in java.awt">drawString</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>iterator</CODE> - the iterator whose text is to be drawn<DD><CODE>x</CODE> - the <i>x</i> coordinate.<DD><CODE>y</CODE> - the <i>y</i> coordinate.<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawBytes(byte[], int, int, int, int)" title="class or interface in java.awt"><CODE>Graphics.drawBytes(byte[], int, int, int, int)</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawChars(char[], int, int, int, int)" title="class or interface in java.awt"><CODE>Graphics.drawChars(char[], int, int, int, int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="drawImage(java.awt.Image, int, int, java.awt.Color, java.awt.image.ImageObserver)"><!-- --></A><H3> |
| drawImage</H3> |
| <PRE> |
| public boolean <B>drawImage</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt">Image</A> img, |
| int x, |
| int y, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A> bgcolor, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/ImageObserver.html?is-external=true" title="class or interface in java.awt.image">ImageObserver</A> observer)</PRE> |
| <DL> |
| <DD>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. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawImage(java.awt.Image, int, int, java.awt.Color, java.awt.image.ImageObserver)" title="class or interface in java.awt">drawImage</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>img</CODE> - the specified image to be drawn.<DD><CODE>x</CODE> - the <i>x</i> coordinate.<DD><CODE>y</CODE> - the <i>y</i> coordinate.<DD><CODE>bgcolor</CODE> - the background color to paint under the |
| non-opaque portions of the image.<DD><CODE>observer</CODE> - object to be notified as more of |
| the image is converted.<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt"><CODE>Image</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/ImageObserver.html?is-external=true" title="class or interface in java.awt.image"><CODE>ImageObserver</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/ImageObserver.html?is-external=true#imageUpdate(java.awt.Image, int, int, int, int, int)" title="class or interface in java.awt.image"><CODE>ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="drawImage(java.awt.Image, int, int, int, int, java.awt.Color, java.awt.image.ImageObserver)"><!-- --></A><H3> |
| drawImage</H3> |
| <PRE> |
| public boolean <B>drawImage</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt">Image</A> img, |
| int x, |
| int y, |
| int width, |
| int height, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A> bgcolor, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/ImageObserver.html?is-external=true" title="class or interface in java.awt.image">ImageObserver</A> observer)</PRE> |
| <DL> |
| <DD>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. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawImage(java.awt.Image, int, int, int, int, java.awt.Color, java.awt.image.ImageObserver)" title="class or interface in java.awt">drawImage</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>img</CODE> - the specified image to be drawn.<DD><CODE>x</CODE> - the <i>x</i> coordinate.<DD><CODE>y</CODE> - the <i>y</i> coordinate.<DD><CODE>width</CODE> - the width of the rectangle.<DD><CODE>height</CODE> - the height of the rectangle.<DD><CODE>bgcolor</CODE> - the background color to paint under the |
| non-opaque portions of the image.<DD><CODE>observer</CODE> - object to be notified as more of |
| the image is converted.<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt"><CODE>Image</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/ImageObserver.html?is-external=true" title="class or interface in java.awt.image"><CODE>ImageObserver</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/ImageObserver.html?is-external=true#imageUpdate(java.awt.Image, int, int, int, int, int)" title="class or interface in java.awt.image"><CODE>ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="drawImage(java.awt.Image, int, int, int, int, int, int, int, int, java.awt.image.ImageObserver)"><!-- --></A><H3> |
| drawImage</H3> |
| <PRE> |
| public boolean <B>drawImage</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt">Image</A> img, |
| int dx1, |
| int dy1, |
| int dx2, |
| int dy2, |
| int sx1, |
| int sy1, |
| int sx2, |
| int sy2, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/ImageObserver.html?is-external=true" title="class or interface in java.awt.image">ImageObserver</A> observer)</PRE> |
| <DL> |
| <DD>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. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawImage(java.awt.Image, int, int, int, int, int, int, int, int, java.awt.image.ImageObserver)" title="class or interface in java.awt">drawImage</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>img</CODE> - the specified image to be drawn<DD><CODE>dx1</CODE> - the <i>x</i> coordinate of the first corner of the |
| destination rectangle.<DD><CODE>dy1</CODE> - the <i>y</i> coordinate of the first corner of the |
| destination rectangle.<DD><CODE>dx2</CODE> - the <i>x</i> coordinate of the second corner of the |
| destination rectangle.<DD><CODE>dy2</CODE> - the <i>y</i> coordinate of the second corner of the |
| destination rectangle.<DD><CODE>sx1</CODE> - the <i>x</i> coordinate of the first corner of the |
| source rectangle.<DD><CODE>sy1</CODE> - the <i>y</i> coordinate of the first corner of the |
| source rectangle.<DD><CODE>sx2</CODE> - the <i>x</i> coordinate of the second corner of the |
| source rectangle.<DD><CODE>sy2</CODE> - the <i>y</i> coordinate of the second corner of the |
| source rectangle.<DD><CODE>observer</CODE> - object to be notified as more of the image is |
| scaled and converted.<DT><B>Since:</B></DT> |
| <DD>JDK1.1</DD> |
| <DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt"><CODE>Image</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/ImageObserver.html?is-external=true" title="class or interface in java.awt.image"><CODE>ImageObserver</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/ImageObserver.html?is-external=true#imageUpdate(java.awt.Image, int, int, int, int, int)" title="class or interface in java.awt.image"><CODE>ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="drawImage(java.awt.Image, int, int, int, int, int, int, int, int, java.awt.Color, java.awt.image.ImageObserver)"><!-- --></A><H3> |
| drawImage</H3> |
| <PRE> |
| public boolean <B>drawImage</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt">Image</A> img, |
| int dx1, |
| int dy1, |
| int dx2, |
| int dy2, |
| int sx1, |
| int sy1, |
| int sx2, |
| int sy2, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A> bgcolor, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/ImageObserver.html?is-external=true" title="class or interface in java.awt.image">ImageObserver</A> observer)</PRE> |
| <DL> |
| <DD>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. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#drawImage(java.awt.Image, int, int, int, int, int, int, int, int, java.awt.Color, java.awt.image.ImageObserver)" title="class or interface in java.awt">drawImage</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true" title="class or interface in java.awt">Graphics</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>img</CODE> - the specified image to be drawn<DD><CODE>dx1</CODE> - the <i>x</i> coordinate of the first corner of the |
| destination rectangle.<DD><CODE>dy1</CODE> - the <i>y</i> coordinate of the first corner of the |
| destination rectangle.<DD><CODE>dx2</CODE> - the <i>x</i> coordinate of the second corner of the |
| destination rectangle.<DD><CODE>dy2</CODE> - the <i>y</i> coordinate of the second corner of the |
| destination rectangle.<DD><CODE>sx1</CODE> - the <i>x</i> coordinate of the first corner of the |
| source rectangle.<DD><CODE>sy1</CODE> - the <i>y</i> coordinate of the first corner of the |
| source rectangle.<DD><CODE>sx2</CODE> - the <i>x</i> coordinate of the second corner of the |
| source rectangle.<DD><CODE>sy2</CODE> - the <i>y</i> coordinate of the second corner of the |
| source rectangle.<DD><CODE>bgcolor</CODE> - the background color to paint under the |
| non-opaque portions of the image.<DD><CODE>observer</CODE> - object to be notified as more of the image is |
| scaled and converted.<DT><B>Since:</B></DT> |
| <DD>JDK1.1</DD> |
| <DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt"><CODE>Image</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/ImageObserver.html?is-external=true" title="class or interface in java.awt.image"><CODE>ImageObserver</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/ImageObserver.html?is-external=true#imageUpdate(java.awt.Image, int, int, int, int, int)" title="class or interface in java.awt.image"><CODE>ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="drawImage(java.awt.Image, java.awt.geom.AffineTransform, java.awt.image.ImageObserver)"><!-- --></A><H3> |
| drawImage</H3> |
| <PRE> |
| public boolean <B>drawImage</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Image.html?is-external=true" title="class or interface in java.awt">Image</A> img, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/AffineTransform.html?is-external=true" title="class or interface in java.awt.geom">AffineTransform</A> xform, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/ImageObserver.html?is-external=true" title="class or interface in java.awt.image">ImageObserver</A> obs)</PRE> |
| <DL> |
| <DD>Renders an image, applying a transform from image space into user space |
| before drawing. |
| The transformation from user space into device space is done with |
| the current <code>Transform</code> in the <code>Graphics2D</code>. |
| The specified transformation is applied to the image before the |
| transform attribute in the <code>Graphics2D</code> context is applied. |
| The rendering attributes applied include the <code>Clip</code>, |
| <code>Transform</code>, and <code>Composite</code> attributes. |
| Note that no rendering is done if the specified transform is |
| noninvertible. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#drawImage(java.awt.Image, java.awt.geom.AffineTransform, java.awt.image.ImageObserver)" title="class or interface in java.awt">drawImage</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>img</CODE> - the <code>Image</code> to be rendered<DD><CODE>xform</CODE> - the transformation from image space into user space<DD><CODE>obs</CODE> - the <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/ImageObserver.html?is-external=true" title="class or interface in java.awt.image"><CODE>ImageObserver</CODE></A> |
| to be notified as more of the <code>Image</code> |
| is converted |
| <DT><B>Returns:</B><DD><code>true</code> if the <code>Image</code> is |
| fully loaded and completely rendered; |
| <code>false</code> if the <code>Image</code> is still being loaded.<DT><B>See Also:</B><DD><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#transform(java.awt.geom.AffineTransform)"><CODE>transform(java.awt.geom.AffineTransform)</CODE></A>, |
| <A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setTransform(java.awt.geom.AffineTransform)"><CODE>setTransform(java.awt.geom.AffineTransform)</CODE></A>, |
| <A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setComposite(java.awt.Composite)"><CODE>setComposite(java.awt.Composite)</CODE></A>, |
| <A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#clip(java.awt.Shape)"><CODE>clip(java.awt.Shape)</CODE></A>, |
| <A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setClip(java.awt.Shape)"><CODE>setClip(Shape)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="drawImage(java.awt.image.BufferedImage, java.awt.image.BufferedImageOp, int, int)"><!-- --></A><H3> |
| drawImage</H3> |
| <PRE> |
| public void <B>drawImage</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/BufferedImage.html?is-external=true" title="class or interface in java.awt.image">BufferedImage</A> img, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/BufferedImageOp.html?is-external=true" title="class or interface in java.awt.image">BufferedImageOp</A> op, |
| int x, |
| int y)</PRE> |
| <DL> |
| <DD>Renders a <code>BufferedImage</code> that is |
| filtered with a |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/BufferedImageOp.html?is-external=true" title="class or interface in java.awt.image"><CODE>BufferedImageOp</CODE></A>. |
| The rendering attributes applied include the <code>Clip</code>, |
| <code>Transform</code> |
| and <code>Composite</code> attributes. This is equivalent to: |
| <pre> |
| img1 = op.filter(img, null); |
| drawImage(img1, new AffineTransform(1f,0f,0f,1f,x,y), null); |
| </pre> |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#drawImage(java.awt.image.BufferedImage, java.awt.image.BufferedImageOp, int, int)" title="class or interface in java.awt">drawImage</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>img</CODE> - the <code>BufferedImage</code> to be rendered<DD><CODE>op</CODE> - the filter to be applied to the image before rendering<DD><CODE>x</CODE> - the x coordinate in user space where the image is rendered<DD><CODE>y</CODE> - the y coordinate in user space where the image is rendered<DT><B>See Also:</B><DD><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#transform(java.awt.geom.AffineTransform)"><CODE>transform(java.awt.geom.AffineTransform)</CODE></A>, |
| <A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setTransform(java.awt.geom.AffineTransform)"><CODE>setTransform(java.awt.geom.AffineTransform)</CODE></A>, |
| <A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setComposite(java.awt.Composite)"><CODE>setComposite(java.awt.Composite)</CODE></A>, |
| <A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#clip(java.awt.Shape)"><CODE>clip(java.awt.Shape)</CODE></A>, |
| <A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setClip(java.awt.Shape)"><CODE>setClip(Shape)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="drawGlyphVector(java.awt.font.GlyphVector, float, float)"><!-- --></A><H3> |
| drawGlyphVector</H3> |
| <PRE> |
| public void <B>drawGlyphVector</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/font/GlyphVector.html?is-external=true" title="class or interface in java.awt.font">GlyphVector</A> g, |
| float x, |
| float y)</PRE> |
| <DL> |
| <DD>Renders the text of the specified |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/font/GlyphVector.html?is-external=true" title="class or interface in java.awt.font"><CODE>GlyphVector</CODE></A> using |
| the <code>Graphics2D</code> context's rendering attributes. |
| The rendering attributes applied include the <code>Clip</code>, |
| <code>Transform</code>, <code>Paint</code>, and |
| <code>Composite</code> attributes. The <code>GlyphVector</code> |
| specifies individual glyphs from a <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Font.html?is-external=true" title="class or interface in java.awt"><CODE>Font</CODE></A>. |
| The <code>GlyphVector</code> can also contain the glyph positions. |
| This is the fastest way to render a set of characters to the |
| screen. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#drawGlyphVector(java.awt.font.GlyphVector, float, float)" title="class or interface in java.awt">drawGlyphVector</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>g</CODE> - the <code>GlyphVector</code> to be rendered<DD><CODE>x</CODE> - the x position in user space where the glyphs should be |
| rendered<DD><CODE>y</CODE> - the y position in user space where the glyphs should be |
| rendered<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Font.html?is-external=true#createGlyphVector(java.awt.font.FontRenderContext, char[])" title="class or interface in java.awt"><CODE>Font.createGlyphVector(FontRenderContext, char[])</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/font/GlyphVector.html?is-external=true" title="class or interface in java.awt.font"><CODE>GlyphVector</CODE></A>, |
| <A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setPaint(java.awt.Paint)"><CODE>setPaint(java.awt.Paint)</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#setColor(java.awt.Color)" title="class or interface in java.awt"><CODE>Graphics.setColor(java.awt.Color)</CODE></A>, |
| <A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setTransform(java.awt.geom.AffineTransform)"><CODE>setTransform(java.awt.geom.AffineTransform)</CODE></A>, |
| <A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setComposite(java.awt.Composite)"><CODE>setComposite(java.awt.Composite)</CODE></A>, |
| <A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setClip(java.awt.Shape)"><CODE>setClip(Shape)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="hit(java.awt.Rectangle, java.awt.Shape, boolean)"><!-- --></A><H3> |
| hit</H3> |
| <PRE> |
| public boolean <B>hit</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Rectangle.html?is-external=true" title="class or interface in java.awt">Rectangle</A> rect, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A> s, |
| boolean onStroke)</PRE> |
| <DL> |
| <DD>Checks whether or not the specified <code>Shape</code> intersects |
| the specified <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Rectangle.html?is-external=true" title="class or interface in java.awt"><CODE>Rectangle</CODE></A>, which is in device |
| space. If <code>onStroke</code> is false, this method checks |
| whether or not the interior of the specified <code>Shape</code> |
| intersects the specified <code>Rectangle</code>. If |
| <code>onStroke</code> is <code>true</code>, this method checks |
| whether or not the <code>Stroke</code> of the specified |
| <code>Shape</code> outline intersects the specified |
| <code>Rectangle</code>. |
| The rendering attributes taken into account include the |
| <code>Clip</code>, <code>Transform</code>, and <code>Stroke</code> |
| attributes. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#hit(java.awt.Rectangle, java.awt.Shape, boolean)" title="class or interface in java.awt">hit</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>rect</CODE> - the area in device space to check for a hit<DD><CODE>s</CODE> - the <code>Shape</code> to check for a hit<DD><CODE>onStroke</CODE> - flag used to choose between testing the |
| stroked or the filled shape. If the flag is <code>true</code>, the |
| <code>Stroke</code> oultine is tested. If the flag is |
| <code>false</code>, the filled <code>Shape</code> is tested. |
| <DT><B>Returns:</B><DD><code>true</code> if there is a hit; <code>false</code> |
| otherwise.<DT><B>See Also:</B><DD><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setStroke(java.awt.Stroke)"><CODE>setStroke(java.awt.Stroke)</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#fill(java.awt.Shape)" title="class or interface in java.awt"><CODE>Graphics2D.fill(Shape)</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#draw(java.awt.Shape)" title="class or interface in java.awt"><CODE>Graphics2D.draw(Shape)</CODE></A>, |
| <A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#transform(java.awt.geom.AffineTransform)"><CODE>transform(java.awt.geom.AffineTransform)</CODE></A>, |
| <A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setTransform(java.awt.geom.AffineTransform)"><CODE>setTransform(java.awt.geom.AffineTransform)</CODE></A>, |
| <A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#clip(java.awt.Shape)"><CODE>clip(java.awt.Shape)</CODE></A>, |
| <A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setClip(java.awt.Shape)"><CODE>setClip(Shape)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setComposite(java.awt.Composite)"><!-- --></A><H3> |
| setComposite</H3> |
| <PRE> |
| public void <B>setComposite</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Composite.html?is-external=true" title="class or interface in java.awt">Composite</A> comp)</PRE> |
| <DL> |
| <DD>Sets the <code>Composite</code> for the <code>Graphics2D</code> context. |
| The <code>Composite</code> is used in all drawing methods such as |
| <code>drawImage</code>, <code>drawString</code>, <code>draw</code>, |
| and <code>fill</code>. It specifies how new pixels are to be combined |
| with the existing pixels on the graphics device during the rendering |
| process. |
| <p>If this <code>Graphics2D</code> context is drawing to a |
| <code>Component</code> on the display screen and the |
| <code>Composite</code> is a custom object rather than an |
| instance of the <code>AlphaComposite</code> class, and if |
| there is a security manager, its <code>checkPermission</code> |
| method is called with an <code>AWTPermission("readDisplayPixels")</code> |
| permission. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#setComposite(java.awt.Composite)" title="class or interface in java.awt">setComposite</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>comp</CODE> - the <code>Composite</code> object to be used for rendering |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/SecurityException.html?is-external=true" title="class or interface in java.lang">SecurityException</A></CODE> - if a custom <code>Composite</code> object is being |
| used to render to the screen and a security manager |
| is set and its <code>checkPermission</code> method |
| does not allow the operation.<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#setXORMode(java.awt.Color)" title="class or interface in java.awt"><CODE>Graphics.setXORMode(java.awt.Color)</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#setPaintMode()" title="class or interface in java.awt"><CODE>Graphics.setPaintMode()</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/AlphaComposite.html?is-external=true" title="class or interface in java.awt"><CODE>AlphaComposite</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setPaint(java.awt.Paint)"><!-- --></A><H3> |
| setPaint</H3> |
| <PRE> |
| public void <B>setPaint</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Paint.html?is-external=true" title="class or interface in java.awt">Paint</A> paint)</PRE> |
| <DL> |
| <DD>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>. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#setPaint(java.awt.Paint)" title="class or interface in java.awt">setPaint</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>paint</CODE> - the <code>Paint</code> object to be used to generate |
| color during the rendering process, or <code>null</code><DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#setColor(java.awt.Color)" title="class or interface in java.awt"><CODE>Graphics.setColor(java.awt.Color)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setStroke(java.awt.Stroke)"><!-- --></A><H3> |
| setStroke</H3> |
| <PRE> |
| public void <B>setStroke</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Stroke.html?is-external=true" title="class or interface in java.awt">Stroke</A> s)</PRE> |
| <DL> |
| <DD>Sets the <code>Stroke</code> for the <code>Graphics2D</code> context. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#setStroke(java.awt.Stroke)" title="class or interface in java.awt">setStroke</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>s</CODE> - the <code>Stroke</code> object to be used to stroke a |
| <code>Shape</code> during the rendering process</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setRenderingHint(java.awt.RenderingHints.Key, java.lang.Object)"><!-- --></A><H3> |
| setRenderingHint</H3> |
| <PRE> |
| public void <B>setRenderingHint</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/RenderingHints.Key.html?is-external=true" title="class or interface in java.awt">RenderingHints.Key</A> hintKey, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> hintValue)</PRE> |
| <DL> |
| <DD>Sets the value of a single preference for the rendering algorithms. |
| Hint categories include controls for rendering quality and overall |
| time/quality trade-off in the rendering process. Refer to the |
| <code>RenderingHints</code> class for definitions of some common |
| keys and values. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#setRenderingHint(java.awt.RenderingHints.Key, java.lang.Object)" title="class or interface in java.awt">setRenderingHint</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>hintKey</CODE> - the key of the hint to be set.<DD><CODE>hintValue</CODE> - the value indicating preferences for the specified |
| hint category.<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/RenderingHints.html?is-external=true" title="class or interface in java.awt"><CODE>RenderingHints</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getRenderingHint(java.awt.RenderingHints.Key)"><!-- --></A><H3> |
| getRenderingHint</H3> |
| <PRE> |
| public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> <B>getRenderingHint</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/RenderingHints.Key.html?is-external=true" title="class or interface in java.awt">RenderingHints.Key</A> hintKey)</PRE> |
| <DL> |
| <DD>Returns the value of a single preference for the rendering algorithms. |
| Hint categories include controls for rendering quality and overall |
| time/quality trade-off in the rendering process. Refer to the |
| <code>RenderingHints</code> class for definitions of some common |
| keys and values. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#getRenderingHint(java.awt.RenderingHints.Key)" title="class or interface in java.awt">getRenderingHint</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>hintKey</CODE> - the key corresponding to the hint to get. |
| <DT><B>Returns:</B><DD>an object representing the value for the specified hint key. |
| Some of the keys and their associated values are defined in the |
| <code>RenderingHints</code> class.<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/RenderingHints.html?is-external=true" title="class or interface in java.awt"><CODE>RenderingHints</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setRenderingHints(java.util.Map)"><!-- --></A><H3> |
| setRenderingHints</H3> |
| <PRE> |
| public void <B>setRenderingHints</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A> hints)</PRE> |
| <DL> |
| <DD>Replaces the values of all preferences for the rendering |
| algorithms with the specified <code>hints</code>. |
| The existing values for all rendering hints are discarded and |
| the new set of known hints and values are initialized from the |
| specified <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><CODE>Map</CODE></A> object. |
| Hint categories include controls for rendering quality and |
| overall time/quality trade-off in the rendering process. |
| Refer to the <code>RenderingHints</code> class for definitions of |
| some common keys and values. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#setRenderingHints(java.util.Map)" title="class or interface in java.awt">setRenderingHints</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>hints</CODE> - the rendering hints to be set<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/RenderingHints.html?is-external=true" title="class or interface in java.awt"><CODE>RenderingHints</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="addRenderingHints(java.util.Map)"><!-- --></A><H3> |
| addRenderingHints</H3> |
| <PRE> |
| public void <B>addRenderingHints</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A> hints)</PRE> |
| <DL> |
| <DD>Sets the values of an arbitrary number of preferences for the |
| rendering algorithms. |
| Only values for the rendering hints that are present in the |
| specified <code>Map</code> object are modified. |
| All other preferences not present in the specified |
| object are left unmodified. |
| Hint categories include controls for rendering quality and |
| overall time/quality trade-off in the rendering process. |
| Refer to the <code>RenderingHints</code> class for definitions of |
| some common keys and values. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#addRenderingHints(java.util.Map)" title="class or interface in java.awt">addRenderingHints</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>hints</CODE> - the rendering hints to be set<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/RenderingHints.html?is-external=true" title="class or interface in java.awt"><CODE>RenderingHints</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getRenderingHints()"><!-- --></A><H3> |
| getRenderingHints</H3> |
| <PRE> |
| public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/RenderingHints.html?is-external=true" title="class or interface in java.awt">RenderingHints</A> <B>getRenderingHints</B>()</PRE> |
| <DL> |
| <DD>Gets the preferences for the rendering algorithms. Hint categories |
| include controls for rendering quality and overall time/quality |
| trade-off in the rendering process. |
| Returns all of the hint key/value pairs that were ever specified in |
| one operation. Refer to the |
| <code>RenderingHints</code> class for definitions of some common |
| keys and values. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#getRenderingHints()" title="class or interface in java.awt">getRenderingHints</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>a reference to an instance of <code>RenderingHints</code> |
| that contains the current preferences.<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/RenderingHints.html?is-external=true" title="class or interface in java.awt"><CODE>RenderingHints</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="translate(double, double)"><!-- --></A><H3> |
| translate</H3> |
| <PRE> |
| public void <B>translate</B>(double tx, |
| double ty)</PRE> |
| <DL> |
| <DD>Concatenates the current |
| <code>Graphics2D</code> <code>Transform</code> |
| with a translation transform. |
| Subsequent rendering is translated by the specified |
| distance relative to the previous position. |
| This is equivalent to calling transform(T), where T is an |
| <code>AffineTransform</code> represented by the following matrix: |
| <pre> |
| [ 1 0 tx ] |
| [ 0 1 ty ] |
| [ 0 0 1 ] |
| </pre> |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#translate(double, double)" title="class or interface in java.awt">translate</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>tx</CODE> - the distance to translate along the x-axis<DD><CODE>ty</CODE> - the distance to translate along the y-axis</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="rotate(double)"><!-- --></A><H3> |
| rotate</H3> |
| <PRE> |
| public void <B>rotate</B>(double theta)</PRE> |
| <DL> |
| <DD>Concatenates the current <code>Graphics2D</code> |
| <code>Transform</code> with a rotation transform. |
| Subsequent rendering is rotated by the specified radians relative |
| to the previous origin. |
| This is equivalent to calling <code>transform(R)</code>, where R is an |
| <code>AffineTransform</code> represented by the following matrix: |
| <pre> |
| [ cos(theta) -sin(theta) 0 ] |
| [ sin(theta) cos(theta) 0 ] |
| [ 0 0 1 ] |
| </pre> |
| Rotating with a positive angle theta rotates points on the positive |
| x axis toward the positive y axis. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#rotate(double)" title="class or interface in java.awt">rotate</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>theta</CODE> - the angle of rotation in radians</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="rotate(double, double, double)"><!-- --></A><H3> |
| rotate</H3> |
| <PRE> |
| public void <B>rotate</B>(double theta, |
| double x, |
| double y)</PRE> |
| <DL> |
| <DD>Concatenates the current <code>Graphics2D</code> |
| <code>Transform</code> with a translated rotation |
| transform. Subsequent rendering is transformed by a transform |
| which is constructed by translating to the specified location, |
| rotating by the specified radians, and translating back by the same |
| amount as the original translation. This is equivalent to the |
| following sequence of calls: |
| <pre> |
| translate(x, y); |
| rotate(theta); |
| translate(-x, -y); |
| </pre> |
| Rotating with a positive angle theta rotates points on the positive |
| x axis toward the positive y axis. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#rotate(double, double, double)" title="class or interface in java.awt">rotate</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>theta</CODE> - the angle of rotation in radians<DD><CODE>x</CODE> - the x coordinate of the origin of the rotation<DD><CODE>y</CODE> - the y coordinate of the origin of the rotation</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="scale(double, double)"><!-- --></A><H3> |
| scale</H3> |
| <PRE> |
| public void <B>scale</B>(double sx, |
| double sy)</PRE> |
| <DL> |
| <DD>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> |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#scale(double, double)" title="class or interface in java.awt">scale</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>sx</CODE> - the amount by which X coordinates in subsequent |
| rendering operations are multiplied relative to previous |
| rendering operations.<DD><CODE>sy</CODE> - the amount by which Y coordinates in subsequent |
| rendering operations are multiplied relative to previous |
| rendering operations.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="shear(double, double)"><!-- --></A><H3> |
| shear</H3> |
| <PRE> |
| public void <B>shear</B>(double shx, |
| double shy)</PRE> |
| <DL> |
| <DD>Concatenates the current <code>Graphics2D</code> |
| <code>Transform</code> with a shearing transform. |
| Subsequent renderings are sheared by the specified |
| multiplier relative to the previous position. |
| This is equivalent to calling <code>transform(SH)</code>, where SH |
| is an <code>AffineTransform</code> represented by the following |
| matrix: |
| <pre> |
| [ 1 shx 0 ] |
| [ shy 1 0 ] |
| [ 0 0 1 ] |
| </pre> |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#shear(double, double)" title="class or interface in java.awt">shear</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>shx</CODE> - the multiplier by which coordinates are shifted in |
| the positive X axis direction as a function of their Y coordinate<DD><CODE>shy</CODE> - the multiplier by which coordinates are shifted in |
| the positive Y axis direction as a function of their X coordinate</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="transform(java.awt.geom.AffineTransform)"><!-- --></A><H3> |
| transform</H3> |
| <PRE> |
| public void <B>transform</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/AffineTransform.html?is-external=true" title="class or interface in java.awt.geom">AffineTransform</A> Tx)</PRE> |
| <DL> |
| <DD>Composes an <code>AffineTransform</code> object with the |
| <code>Transform</code> in this <code>Graphics2D</code> according |
| to the rule last-specified-first-applied. If the current |
| <code>Transform</code> is Cx, the result of composition |
| with Tx is a new <code>Transform</code> Cx'. Cx' becomes the |
| current <code>Transform</code> for this <code>Graphics2D</code>. |
| Transforming a point p by the updated <code>Transform</code> Cx' is |
| equivalent to first transforming p by Tx and then transforming |
| the result by the original <code>Transform</code> Cx. In other |
| words, Cx'(p) = Cx(Tx(p)). A copy of the Tx is made, if necessary, |
| so further modifications to Tx do not affect rendering. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#transform(java.awt.geom.AffineTransform)" title="class or interface in java.awt">transform</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>Tx</CODE> - the <code>AffineTransform</code> object to be composed with |
| the current <code>Transform</code><DT><B>See Also:</B><DD><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setTransform(java.awt.geom.AffineTransform)"><CODE>setTransform(java.awt.geom.AffineTransform)</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/AffineTransform.html?is-external=true" title="class or interface in java.awt.geom"><CODE>AffineTransform</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setTransform(java.awt.geom.AffineTransform)"><!-- --></A><H3> |
| setTransform</H3> |
| <PRE> |
| public void <B>setTransform</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/AffineTransform.html?is-external=true" title="class or interface in java.awt.geom">AffineTransform</A> Tx)</PRE> |
| <DL> |
| <DD>Sets the <code>Transform</code> in the <code>Graphics2D</code> |
| context. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#setTransform(java.awt.geom.AffineTransform)" title="class or interface in java.awt">setTransform</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>Tx</CODE> - the <code>AffineTransform</code> object to be used in the |
| rendering process<DT><B>See Also:</B><DD><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#transform(java.awt.geom.AffineTransform)"><CODE>transform(java.awt.geom.AffineTransform)</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/AffineTransform.html?is-external=true" title="class or interface in java.awt.geom"><CODE>AffineTransform</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getTransform()"><!-- --></A><H3> |
| getTransform</H3> |
| <PRE> |
| public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/AffineTransform.html?is-external=true" title="class or interface in java.awt.geom">AffineTransform</A> <B>getTransform</B>()</PRE> |
| <DL> |
| <DD>Returns a copy of the current <code>Transform</code> in the |
| <code>Graphics2D</code> context. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#getTransform()" title="class or interface in java.awt">getTransform</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the current <code>AffineTransform</code> in the |
| <code>Graphics2D</code> context.<DT><B>See Also:</B><DD><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#transform(java.awt.geom.AffineTransform)"><CODE>transform(java.awt.geom.AffineTransform)</CODE></A>, |
| <A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setTransform(java.awt.geom.AffineTransform)"><CODE>setTransform(java.awt.geom.AffineTransform)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getPaint()"><!-- --></A><H3> |
| getPaint</H3> |
| <PRE> |
| public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Paint.html?is-external=true" title="class or interface in java.awt">Paint</A> <B>getPaint</B>()</PRE> |
| <DL> |
| <DD>Returns the current <code>Paint</code> of the |
| <code>Graphics2D</code> context. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#getPaint()" title="class or interface in java.awt">getPaint</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the current <code>Graphics2D</code> <code>Paint</code>, |
| which defines a color or pattern.<DT><B>See Also:</B><DD><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setPaint(java.awt.Paint)"><CODE>setPaint(java.awt.Paint)</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#setColor(java.awt.Color)" title="class or interface in java.awt"><CODE>Graphics.setColor(java.awt.Color)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getComposite()"><!-- --></A><H3> |
| getComposite</H3> |
| <PRE> |
| public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Composite.html?is-external=true" title="class or interface in java.awt">Composite</A> <B>getComposite</B>()</PRE> |
| <DL> |
| <DD>Returns the current <code>Composite</code> in the |
| <code>Graphics2D</code> context. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#getComposite()" title="class or interface in java.awt">getComposite</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the current <code>Graphics2D</code> <code>Composite</code>, |
| which defines a compositing style.<DT><B>See Also:</B><DD><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setComposite(java.awt.Composite)"><CODE>setComposite(java.awt.Composite)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setBackground(java.awt.Color)"><!-- --></A><H3> |
| setBackground</H3> |
| <PRE> |
| public void <B>setBackground</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A> color)</PRE> |
| <DL> |
| <DD>Sets the background color for the <code>Graphics2D</code> context. |
| The background color is used for clearing a region. |
| When a <code>Graphics2D</code> is constructed for a |
| <code>Component</code>, the background color is |
| inherited from the <code>Component</code>. Setting the background color |
| in the <code>Graphics2D</code> context only affects the subsequent |
| <code>clearRect</code> calls and not the background color of the |
| <code>Component</code>. To change the background |
| of the <code>Component</code>, use appropriate methods of |
| the <code>Component</code>. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#setBackground(java.awt.Color)" title="class or interface in java.awt">setBackground</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>color</CODE> - the background color that isused in |
| subsequent calls to <code>clearRect</code><DT><B>See Also:</B><DD><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#getBackground()"><CODE>getBackground()</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#clearRect(int, int, int, int)" title="class or interface in java.awt"><CODE>Graphics.clearRect(int, int, int, int)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getBackground()"><!-- --></A><H3> |
| getBackground</H3> |
| <PRE> |
| public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A> <B>getBackground</B>()</PRE> |
| <DL> |
| <DD>Returns the background color used for clearing a region. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#getBackground()" title="class or interface in java.awt">getBackground</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the current <code>Graphics2D</code> <code>Color</code>, |
| which defines the background color.<DT><B>See Also:</B><DD><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setBackground(java.awt.Color)"><CODE>setBackground(java.awt.Color)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getStroke()"><!-- --></A><H3> |
| getStroke</H3> |
| <PRE> |
| public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Stroke.html?is-external=true" title="class or interface in java.awt">Stroke</A> <B>getStroke</B>()</PRE> |
| <DL> |
| <DD>Returns the current <code>Stroke</code> in the |
| <code>Graphics2D</code> context. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#getStroke()" title="class or interface in java.awt">getStroke</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the current <code>Graphics2D</code> <code>Stroke</code>, |
| which defines the line style.<DT><B>See Also:</B><DD><A HREF="../../../../../../org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html#setStroke(java.awt.Stroke)"><CODE>setStroke(java.awt.Stroke)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="clip(java.awt.Shape)"><!-- --></A><H3> |
| clip</H3> |
| <PRE> |
| public void <B>clip</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A> s)</PRE> |
| <DL> |
| <DD>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 |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics.html?is-external=true#setClip(java.awt.Shape)" title="class or interface in java.awt"><CODE>setClip</CODE></A> with a |
| <code>null</code> argument, the specified <code>Shape</code> becomes |
| the new user clip. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#clip(java.awt.Shape)" title="class or interface in java.awt">clip</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><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>.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getFontRenderContext()"><!-- --></A><H3> |
| getFontRenderContext</H3> |
| <PRE> |
| public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/font/FontRenderContext.html?is-external=true" title="class or interface in java.awt.font">FontRenderContext</A> <B>getFontRenderContext</B>()</PRE> |
| <DL> |
| <DD>Get the rendering context of the <code>Font</code> within this |
| <code>Graphics2D</code> context. |
| The <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/font/FontRenderContext.html?is-external=true" title="class or interface in java.awt.font"><CODE>FontRenderContext</CODE></A> |
| encapsulates application hints such as anti-aliasing and |
| fractional metrics, as well as target device specific information |
| such as dots-per-inch. This information should be provided by the |
| application when using objects that perform typographical |
| formatting, such as <code>Font</code> and |
| <code>TextLayout</code>. This information should also be provided |
| by applications that perform their own layout and need accurate |
| measurements of various characteristics of glyphs such as advance |
| and line height when various rendering hints have been applied to |
| the text rendering. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true#getFontRenderContext()" title="class or interface in java.awt">getFontRenderContext</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html?is-external=true" title="class or interface in java.awt">Graphics2D</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>a reference to an instance of FontRenderContext.<DT><B>Since:</B></DT> |
| <DD>JDK1.2</DD> |
| <DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/font/FontRenderContext.html?is-external=true" title="class or interface in java.awt.font"><CODE>FontRenderContext</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Font.html?is-external=true#createGlyphVector(java.awt.font.FontRenderContext, char[])" title="class or interface in java.awt"><CODE>Font.createGlyphVector(FontRenderContext,char[])</CODE></A>, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/font/TextLayout.html?is-external=true" title="class or interface in java.awt.font"><CODE>TextLayout</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getGraphicContext()"><!-- --></A><H3> |
| getGraphicContext</H3> |
| <PRE> |
| public <A HREF="../../../../../../org/apache/batik/ext/awt/g2d/GraphicContext.html" title="class in org.apache.batik.ext.awt.g2d">GraphicContext</A> <B>getGraphicContext</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the <A HREF="../../../../../../org/apache/batik/ext/awt/g2d/GraphicContext.html" title="class in org.apache.batik.ext.awt.g2d"><CODE>GraphicContext</CODE></A> of this <code>Graphics2D</code>.</DL> |
| </DD> |
| </DL> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <HR> |
| |
| |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <A NAME="navbar_bottom"><!-- --></A> |
| <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_bottom_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AbstractGraphics2D.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| PREV CLASS |
| <A HREF="../../../../../../org/apache/batik/ext/awt/g2d/DefaultGraphics2D.html" title="class in org.apache.batik.ext.awt.g2d"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../../index.html?org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="AbstractGraphics2D.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_bottom"></A> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| |
| <HR> |
| Copyright © 2017 <a href='http://www.apache.org/'>Apache Software Foundation</a>. All Rights Reserved. |
| </BODY> |
| </HTML> |