| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!--NewPage--> |
| <HTML> |
| <HEAD> |
| <TITLE> |
| RadialGradientPaint (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="RadialGradientPaint (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/RadialGradientPaint.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"> |
| <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.CycleMethodEnum.html" title="class in org.apache.batik.ext.awt"><B>PREV CLASS</B></A> |
| <A HREF="../../../../../org/apache/batik/ext/awt/RenderingHintsKeyExt.html" title="class in org.apache.batik.ext.awt"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../index.html?org/apache/batik/ext/awt/RadialGradientPaint.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="RadialGradientPaint.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: <A HREF="#nested_classes_inherited_from_class_org.apache.batik.ext.awt.MultipleGradientPaint">NESTED</A> | <A HREF="#fields_inherited_from_class_org.apache.batik.ext.awt.MultipleGradientPaint">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: FIELD | <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</FONT> |
| <BR> |
| Class RadialGradientPaint</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="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.html" title="class in org.apache.batik.ext.awt">org.apache.batik.ext.awt.MultipleGradientPaint</A> |
| <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.batik.ext.awt.RadialGradientPaint</B> |
| </PRE> |
| <DL> |
| <DT><B>All Implemented Interfaces:</B> <DD><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>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Transparency.html?is-external=true" title="class or interface in java.awt">Transparency</A></DD> |
| </DL> |
| <HR> |
| <DL> |
| <DT><PRE>public final class <B>RadialGradientPaint</B><DT>extends <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.html" title="class in org.apache.batik.ext.awt">MultipleGradientPaint</A></DL> |
| </PRE> |
| |
| <P> |
| <p> |
| This class provides a way to fill a shape with a circular radial color |
| gradient pattern. The user may specify 2 or more gradient colors, and this |
| paint will provide an interpolation between each color. |
| <p> |
| |
| The user must provide an array of floats specifying how to distribute the |
| colors along the gradient. These values should range from 0.0 to 1.0 and |
| act like keyframes along the gradient (they mark where the gradient should |
| be exactly a particular color). |
| |
| <p> |
| This paint will map the first color of the gradient to a focus point within |
| the circle, and the last color to the perimeter of the circle, interpolating |
| smoothly for any inbetween colors specified by the user. Any line drawn |
| from the focus point to the circumference will span the all the gradient |
| colors. By default the focus is set to be the center of the circle. |
| |
| <p> |
| Specifying a focus point outside of the circle's radius will result in the |
| focus being set to the intersection point of the focus-center line and the |
| perimenter of the circle. |
| <p> |
| |
| Specifying a cycle method allows the user to control the painting behavior |
| outside of the bounds of the circle's radius. See LinearGradientPaint for |
| more details. |
| |
| <p> |
| The following code demonstrates typical usage of RadialGradientPaint: |
| <p> |
| <code> |
| Point2D center = new Point2D.Float(0, 0);<br> |
| float radius = 20; |
| float[] dist = {0.0, 0.2, 1.0};<br> |
| Color[] colors = {Color.red, Color.white, Color.blue};<br> |
| RadialGradientPaint p = new RadialGradientPaint(center, radius, |
| dist, colors); |
| </code> |
| |
| <p> In the event that the user does not set the first keyframe value equal |
| to 0 and the last keyframe value equal to 1, keyframes will be created at |
| these positions and the first and last colors will be replicated there. |
| So, if a user specifies the following arrays to construct a gradient:<br> |
| {Color.blue, Color.red}, {.3, .7}<br> |
| this will be converted to a gradient with the following keyframes: |
| {Color.blue, Color.blue, Color.red, Color.red}, {0, .3, .7, 1} |
| |
| |
| <p> |
| <img src = "radial.jpg"> |
| <p> |
| This image demonstrates a radial gradient with NO_CYCLE and default focus. |
| <p> |
| |
| <img src = "radial2.jpg"> |
| <p> |
| This image demonstrates a radial gradient with NO_CYCLE and non-centered |
| focus. |
| <p> |
| |
| <img src = "radial3.jpg"> |
| <p> |
| This image demonstrates a radial gradient with REFLECT and non-centered |
| focus. |
| <P> |
| |
| <P> |
| <HR> |
| |
| <P> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| |
| <A NAME="nested_class_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>Nested Class Summary</B></FONT></TH> |
| </TR> |
| </TABLE> |
| <A NAME="nested_classes_inherited_from_class_org.apache.batik.ext.awt.MultipleGradientPaint"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Nested classes/interfaces inherited from class org.apache.batik.ext.awt.<A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.html" title="class in org.apache.batik.ext.awt">MultipleGradientPaint</A></B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.ColorSpaceEnum.html" title="class in org.apache.batik.ext.awt">MultipleGradientPaint.ColorSpaceEnum</A>, <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.CycleMethodEnum.html" title="class in org.apache.batik.ext.awt">MultipleGradientPaint.CycleMethodEnum</A></CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <!-- =========== 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> |
| </TABLE> |
| <A NAME="fields_inherited_from_class_org.apache.batik.ext.awt.MultipleGradientPaint"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Fields inherited from class org.apache.batik.ext.awt.<A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.html" title="class in org.apache.batik.ext.awt">MultipleGradientPaint</A></B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.html#colors">colors</A>, <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.html#colorSpace">colorSpace</A>, <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.html#cycleMethod">cycleMethod</A>, <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.html#fractions">fractions</A>, <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.html#gradientTransform">gradientTransform</A>, <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.html#LINEAR_RGB">LINEAR_RGB</A>, <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.html#NO_CYCLE">NO_CYCLE</A>, <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.html#REFLECT">REFLECT</A>, <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.html#REPEAT">REPEAT</A>, <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.html#SRGB">SRGB</A>, <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.html#transparency">transparency</A></CODE></TD> |
| </TR> |
| </TABLE> |
| <A NAME="fields_inherited_from_class_java.awt.Transparency"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Fields inherited from interface java.awt.<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Transparency.html?is-external=true" title="class or interface in java.awt">Transparency</A></B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Transparency.html?is-external=true#BITMASK" title="class or interface in java.awt">BITMASK</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Transparency.html?is-external=true#OPAQUE" title="class or interface in java.awt">OPAQUE</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/Transparency.html?is-external=true#TRANSLUCENT" title="class or interface in java.awt">TRANSLUCENT</A></CODE></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/RadialGradientPaint.html#RadialGradientPaint(float, float, float, float[], java.awt.Color[])">RadialGradientPaint</A></B>(float cx, |
| float cy, |
| float radius, |
| float[] fractions, |
| <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>[] colors)</CODE> |
| |
| <BR> |
| |
| |
| Constructs a <code>RadialGradientPaint</code>, using the center as the |
| focus point.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../../org/apache/batik/ext/awt/RadialGradientPaint.html#RadialGradientPaint(float, float, float, float, float, float[], java.awt.Color[])">RadialGradientPaint</A></B>(float cx, |
| float cy, |
| float radius, |
| float fx, |
| float fy, |
| float[] fractions, |
| <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>[] colors)</CODE> |
| |
| <BR> |
| |
| |
| Constructs a <code>RadialGradientPaint</code>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../../org/apache/batik/ext/awt/RadialGradientPaint.html#RadialGradientPaint(java.awt.geom.Point2D, float, float[], java.awt.Color[])">RadialGradientPaint</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Point2D.html?is-external=true" title="class or interface in java.awt.geom">Point2D</A> center, |
| float radius, |
| float[] fractions, |
| <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>[] colors)</CODE> |
| |
| <BR> |
| |
| |
| Constructs a <code>RadialGradientPaint</code>, using the center as the |
| focus point.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../../org/apache/batik/ext/awt/RadialGradientPaint.html#RadialGradientPaint(java.awt.geom.Point2D, float, java.awt.geom.Point2D, float[], java.awt.Color[])">RadialGradientPaint</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Point2D.html?is-external=true" title="class or interface in java.awt.geom">Point2D</A> center, |
| float radius, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Point2D.html?is-external=true" title="class or interface in java.awt.geom">Point2D</A> focus, |
| float[] fractions, |
| <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>[] colors)</CODE> |
| |
| <BR> |
| |
| |
| Constructs a <code>RadialGradientPaint</code>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../../org/apache/batik/ext/awt/RadialGradientPaint.html#RadialGradientPaint(java.awt.geom.Point2D, float, java.awt.geom.Point2D, float[], java.awt.Color[], org.apache.batik.ext.awt.MultipleGradientPaint.CycleMethodEnum, org.apache.batik.ext.awt.MultipleGradientPaint.ColorSpaceEnum)">RadialGradientPaint</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Point2D.html?is-external=true" title="class or interface in java.awt.geom">Point2D</A> center, |
| float radius, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Point2D.html?is-external=true" title="class or interface in java.awt.geom">Point2D</A> focus, |
| float[] fractions, |
| <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>[] colors, |
| <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.CycleMethodEnum.html" title="class in org.apache.batik.ext.awt">MultipleGradientPaint.CycleMethodEnum</A> cycleMethod, |
| <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.ColorSpaceEnum.html" title="class in org.apache.batik.ext.awt">MultipleGradientPaint.ColorSpaceEnum</A> colorSpace)</CODE> |
| |
| <BR> |
| |
| |
| Constructs a <code>RadialGradientPaint</code>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../../org/apache/batik/ext/awt/RadialGradientPaint.html#RadialGradientPaint(java.awt.geom.Point2D, float, java.awt.geom.Point2D, float[], java.awt.Color[], org.apache.batik.ext.awt.MultipleGradientPaint.CycleMethodEnum, org.apache.batik.ext.awt.MultipleGradientPaint.ColorSpaceEnum, java.awt.geom.AffineTransform)">RadialGradientPaint</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Point2D.html?is-external=true" title="class or interface in java.awt.geom">Point2D</A> center, |
| float radius, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Point2D.html?is-external=true" title="class or interface in java.awt.geom">Point2D</A> focus, |
| float[] fractions, |
| <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>[] colors, |
| <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.CycleMethodEnum.html" title="class in org.apache.batik.ext.awt">MultipleGradientPaint.CycleMethodEnum</A> cycleMethod, |
| <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.ColorSpaceEnum.html" title="class in org.apache.batik.ext.awt">MultipleGradientPaint.ColorSpaceEnum</A> colorSpace, |
| <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> gradientTransform)</CODE> |
| |
| <BR> |
| |
| |
| Constructs a <code>RadialGradientPaint</code>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../../org/apache/batik/ext/awt/RadialGradientPaint.html#RadialGradientPaint(java.awt.geom.Rectangle2D, float[], java.awt.Color[])">RadialGradientPaint</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Rectangle2D.html?is-external=true" title="class or interface in java.awt.geom">Rectangle2D</A> gradientBounds, |
| float[] fractions, |
| <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>[] colors)</CODE> |
| |
| <BR> |
| |
| |
| Constructs a <code>RadialGradientPaint</code>, the gradient circle is |
| defined by a bounding box.</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> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/PaintContext.html?is-external=true" title="class or interface in java.awt">PaintContext</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/apache/batik/ext/awt/RadialGradientPaint.html#createContext(java.awt.image.ColorModel, java.awt.Rectangle, java.awt.geom.Rectangle2D, java.awt.geom.AffineTransform, java.awt.RenderingHints)">createContext</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/ColorModel.html?is-external=true" title="class or interface in java.awt.image">ColorModel</A> cm, |
| <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> deviceBounds, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Rectangle2D.html?is-external=true" title="class or interface in java.awt.geom">Rectangle2D</A> userBounds, |
| <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> transform, |
| <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> hints)</CODE> |
| |
| <BR> |
| |
| Creates and returns a PaintContext used to generate the color pattern, |
| for use by the internal rendering engine.</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/Point2D.html?is-external=true" title="class or interface in java.awt.geom">Point2D</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/apache/batik/ext/awt/RadialGradientPaint.html#getCenterPoint()">getCenterPoint</A></B>()</CODE> |
| |
| <BR> |
| Returns a copy of the center point of the radial gradient.</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/Point2D.html?is-external=true" title="class or interface in java.awt.geom">Point2D</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/apache/batik/ext/awt/RadialGradientPaint.html#getFocusPoint()">getFocusPoint</A></B>()</CODE> |
| |
| <BR> |
| Returns a copy of the end point of the gradient axis.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> float</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/apache/batik/ext/awt/RadialGradientPaint.html#getRadius()">getRadius</A></B>()</CODE> |
| |
| <BR> |
| Returns the radius of the circle defining the radial gradient.</TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_org.apache.batik.ext.awt.MultipleGradientPaint"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Methods inherited from class org.apache.batik.ext.awt.<A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.html" title="class in org.apache.batik.ext.awt">MultipleGradientPaint</A></B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.html#getColors()">getColors</A>, <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.html#getColorSpace()">getColorSpace</A>, <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.html#getCycleMethod()">getCycleMethod</A>, <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.html#getFractions()">getFractions</A>, <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.html#getTransform()">getTransform</A>, <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.html#getTransparency()">getTransparency</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#finalize()" title="class or interface in java.lang">finalize</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#toString()" title="class or interface in java.lang">toString</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> |
| |
| <!-- ========= 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="RadialGradientPaint(float, float, float, float[], java.awt.Color[])"><!-- --></A><H3> |
| RadialGradientPaint</H3> |
| <PRE> |
| public <B>RadialGradientPaint</B>(float cx, |
| float cy, |
| float radius, |
| float[] fractions, |
| <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>[] colors)</PRE> |
| <DL> |
| <DD><p> |
| |
| Constructs a <code>RadialGradientPaint</code>, using the center as the |
| focus point. |
| <P> |
| <DL> |
| <DT><B>Parameters:</B><DD><CODE>cx</CODE> - the x coordinate in user space of the center point of the |
| circle defining the gradient. The last color of the gradient is mapped |
| to the perimeter of this circle<DD><CODE>cy</CODE> - the y coordinate in user space of the center point of the |
| circle defining the gradient. The last color of the gradient is mapped |
| to the perimeter of this circle<DD><CODE>radius</CODE> - the radius of the circle defining the extents of the |
| color gradient<DD><CODE>fractions</CODE> - numbers ranging from 0.0 to 1.0 specifying the |
| distribution of colors along the gradient<DD><CODE>colors</CODE> - array of colors to use in the gradient. The first color |
| is used at the focus point, the last color around the perimeter of the |
| circle. |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if fractions.length != colors.length, or if colors is less |
| than 2 in size, or if radius < 0</DL> |
| </DL> |
| <HR> |
| |
| <A NAME="RadialGradientPaint(java.awt.geom.Point2D, float, float[], java.awt.Color[])"><!-- --></A><H3> |
| RadialGradientPaint</H3> |
| <PRE> |
| public <B>RadialGradientPaint</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Point2D.html?is-external=true" title="class or interface in java.awt.geom">Point2D</A> center, |
| float radius, |
| float[] fractions, |
| <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>[] colors)</PRE> |
| <DL> |
| <DD><p> |
| |
| Constructs a <code>RadialGradientPaint</code>, using the center as the |
| focus point. |
| <P> |
| <DL> |
| <DT><B>Parameters:</B><DD><CODE>center</CODE> - the center point, in user space, of the circle defining |
| the gradient<DD><CODE>radius</CODE> - the radius of the circle defining the extents of the |
| color gradient<DD><CODE>fractions</CODE> - numbers ranging from 0.0 to 1.0 specifying the |
| distribution of colors along the gradient<DD><CODE>colors</CODE> - array of colors to use in the gradient. The first color |
| is used at the focus point, the last color around the perimeter of the |
| circle. |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if center point is null |
| <DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if fractions.length != colors.length, or if colors is less |
| than 2 in size, or if radius < 0</DL> |
| </DL> |
| <HR> |
| |
| <A NAME="RadialGradientPaint(float, float, float, float, float, float[], java.awt.Color[])"><!-- --></A><H3> |
| RadialGradientPaint</H3> |
| <PRE> |
| public <B>RadialGradientPaint</B>(float cx, |
| float cy, |
| float radius, |
| float fx, |
| float fy, |
| float[] fractions, |
| <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>[] colors)</PRE> |
| <DL> |
| <DD><p> |
| |
| Constructs a <code>RadialGradientPaint</code>. |
| <P> |
| <DL> |
| <DT><B>Parameters:</B><DD><CODE>cx</CODE> - the x coordinate in user space of the center point of the |
| circle defining the gradient. The last color of the gradient is mapped |
| to the perimeter of this circle<DD><CODE>cy</CODE> - the y coordinate in user space of the center point of the |
| circle defining the gradient. The last color of the gradient is mapped |
| to the perimeter of this circle<DD><CODE>radius</CODE> - the radius of the circle defining the extents of the |
| color gradient<DD><CODE>fx</CODE> - the x coordinate of the point in user space to which the |
| first color is mapped<DD><CODE>fy</CODE> - the y coordinate of the point in user space to which the |
| first color is mapped<DD><CODE>fractions</CODE> - numbers ranging from 0.0 to 1.0 specifying the |
| distribution of colors along the gradient<DD><CODE>colors</CODE> - array of colors to use in the gradient. The first color |
| is used at the focus point, the last color around the perimeter of the |
| circle. |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if fractions.length != colors.length, or if colors is less |
| than 2 in size, or if radius < 0</DL> |
| </DL> |
| <HR> |
| |
| <A NAME="RadialGradientPaint(java.awt.geom.Point2D, float, java.awt.geom.Point2D, float[], java.awt.Color[])"><!-- --></A><H3> |
| RadialGradientPaint</H3> |
| <PRE> |
| public <B>RadialGradientPaint</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Point2D.html?is-external=true" title="class or interface in java.awt.geom">Point2D</A> center, |
| float radius, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Point2D.html?is-external=true" title="class or interface in java.awt.geom">Point2D</A> focus, |
| float[] fractions, |
| <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>[] colors)</PRE> |
| <DL> |
| <DD><p> |
| |
| Constructs a <code>RadialGradientPaint</code>. |
| <P> |
| <DL> |
| <DT><B>Parameters:</B><DD><CODE>center</CODE> - the center point, in user space, of the circle defining |
| the gradient. The last color of the gradient is mapped to the perimeter |
| of this circle<DD><CODE>radius</CODE> - the radius of the circle defining the extents of the color |
| gradient<DD><CODE>focus</CODE> - the point, in user space, to which the first color is |
| mapped<DD><CODE>fractions</CODE> - numbers ranging from 0.0 to 1.0 specifying the |
| distribution of colors along the gradient<DD><CODE>colors</CODE> - array of colors to use in the gradient. The first color |
| is used at the focus point, the last color around the perimeter of the |
| circle. |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if one of the points is null |
| <DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if fractions.length != colors.length, or if colors is less |
| than 2 in size, or if radius < 0</DL> |
| </DL> |
| <HR> |
| |
| <A NAME="RadialGradientPaint(java.awt.geom.Point2D, float, java.awt.geom.Point2D, float[], java.awt.Color[], org.apache.batik.ext.awt.MultipleGradientPaint.CycleMethodEnum, org.apache.batik.ext.awt.MultipleGradientPaint.ColorSpaceEnum)"><!-- --></A><H3> |
| RadialGradientPaint</H3> |
| <PRE> |
| public <B>RadialGradientPaint</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Point2D.html?is-external=true" title="class or interface in java.awt.geom">Point2D</A> center, |
| float radius, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Point2D.html?is-external=true" title="class or interface in java.awt.geom">Point2D</A> focus, |
| float[] fractions, |
| <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>[] colors, |
| <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.CycleMethodEnum.html" title="class in org.apache.batik.ext.awt">MultipleGradientPaint.CycleMethodEnum</A> cycleMethod, |
| <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.ColorSpaceEnum.html" title="class in org.apache.batik.ext.awt">MultipleGradientPaint.ColorSpaceEnum</A> colorSpace)</PRE> |
| <DL> |
| <DD><p> |
| |
| Constructs a <code>RadialGradientPaint</code>. |
| <P> |
| <DL> |
| <DT><B>Parameters:</B><DD><CODE>center</CODE> - the center point in user space of the circle defining the |
| gradient. The last color of the gradient is mapped to the perimeter of |
| this circle<DD><CODE>radius</CODE> - the radius of the circle defining the extents of the color |
| gradient<DD><CODE>focus</CODE> - the point in user space to which the first color is mapped<DD><CODE>fractions</CODE> - numbers ranging from 0.0 to 1.0 specifying the |
| distribution of colors along the gradient<DD><CODE>colors</CODE> - array of colors to use in the gradient. The first color is |
| used at the focus point, the last color around the perimeter of the |
| circle.<DD><CODE>cycleMethod</CODE> - either NO_CYCLE, REFLECT, or REPEAT<DD><CODE>colorSpace</CODE> - which colorspace to use for interpolation, |
| either SRGB or LINEAR_RGB |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if one of the points is null |
| <DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if fractions.length != colors.length, or if colors is less |
| than 2 in size, or if radius < 0</DL> |
| </DL> |
| <HR> |
| |
| <A NAME="RadialGradientPaint(java.awt.geom.Point2D, float, java.awt.geom.Point2D, float[], java.awt.Color[], org.apache.batik.ext.awt.MultipleGradientPaint.CycleMethodEnum, org.apache.batik.ext.awt.MultipleGradientPaint.ColorSpaceEnum, java.awt.geom.AffineTransform)"><!-- --></A><H3> |
| RadialGradientPaint</H3> |
| <PRE> |
| public <B>RadialGradientPaint</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Point2D.html?is-external=true" title="class or interface in java.awt.geom">Point2D</A> center, |
| float radius, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Point2D.html?is-external=true" title="class or interface in java.awt.geom">Point2D</A> focus, |
| float[] fractions, |
| <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>[] colors, |
| <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.CycleMethodEnum.html" title="class in org.apache.batik.ext.awt">MultipleGradientPaint.CycleMethodEnum</A> cycleMethod, |
| <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.ColorSpaceEnum.html" title="class in org.apache.batik.ext.awt">MultipleGradientPaint.ColorSpaceEnum</A> colorSpace, |
| <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> gradientTransform)</PRE> |
| <DL> |
| <DD><p> |
| |
| Constructs a <code>RadialGradientPaint</code>. |
| <P> |
| <DL> |
| <DT><B>Parameters:</B><DD><CODE>center</CODE> - the center point in user space of the circle defining the |
| gradient. The last color of the gradient is mapped to the perimeter of |
| this circle<DD><CODE>radius</CODE> - the radius of the circle defining the extents of the color |
| gradient.<DD><CODE>focus</CODE> - the point in user space to which the first color is mapped<DD><CODE>fractions</CODE> - numbers ranging from 0.0 to 1.0 specifying the |
| distribution of colors along the gradient<DD><CODE>colors</CODE> - array of colors to use in the gradient. The first color is |
| used at the focus point, the last color around the perimeter of the |
| circle.<DD><CODE>cycleMethod</CODE> - either NO_CYCLE, REFLECT, or REPEAT<DD><CODE>colorSpace</CODE> - which colorspace to use for interpolation, |
| either SRGB or LINEAR_RGB<DD><CODE>gradientTransform</CODE> - transform to apply to the gradient |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if one of the points is null, |
| or gradientTransform is null |
| <DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if fractions.length != colors.length, or if colors is less |
| than 2 in size, or if radius < 0</DL> |
| </DL> |
| <HR> |
| |
| <A NAME="RadialGradientPaint(java.awt.geom.Rectangle2D, float[], java.awt.Color[])"><!-- --></A><H3> |
| RadialGradientPaint</H3> |
| <PRE> |
| public <B>RadialGradientPaint</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Rectangle2D.html?is-external=true" title="class or interface in java.awt.geom">Rectangle2D</A> gradientBounds, |
| float[] fractions, |
| <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>[] colors)</PRE> |
| <DL> |
| <DD><p> |
| |
| Constructs a <code>RadialGradientPaint</code>, the gradient circle is |
| defined by a bounding box. |
| <P> |
| <DL> |
| <DT><B>Parameters:</B><DD><CODE>gradientBounds</CODE> - the bounding box, in user space, of the circle |
| defining outermost extent of the gradient.<DD><CODE>fractions</CODE> - numbers ranging from 0.0 to 1.0 specifying the |
| distribution of colors along the gradient<DD><CODE>colors</CODE> - array of colors to use in the gradient. The first color |
| is used at the focus point, the last color around the perimeter of the |
| circle. |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if the gradientBounds is null |
| <DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if fractions.length != colors.length, or if colors is less |
| than 2 in size, or if radius < 0</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="createContext(java.awt.image.ColorModel, java.awt.Rectangle, java.awt.geom.Rectangle2D, java.awt.geom.AffineTransform, java.awt.RenderingHints)"><!-- --></A><H3> |
| createContext</H3> |
| <PRE> |
| public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/PaintContext.html?is-external=true" title="class or interface in java.awt">PaintContext</A> <B>createContext</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/ColorModel.html?is-external=true" title="class or interface in java.awt.image">ColorModel</A> cm, |
| <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> deviceBounds, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Rectangle2D.html?is-external=true" title="class or interface in java.awt.geom">Rectangle2D</A> userBounds, |
| <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> transform, |
| <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> hints)</PRE> |
| <DL> |
| <DD><p> |
| Creates and returns a PaintContext used to generate the color pattern, |
| for use by the internal rendering engine. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>cm</CODE> - <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/image/ColorModel.html?is-external=true" title="class or interface in java.awt.image"><CODE>ColorModel</CODE></A> that receives |
| the <code>Paint</code> data. This is used only as a hint.<DD><CODE>deviceBounds</CODE> - the device space bounding box of the |
| graphics primitive being rendered<DD><CODE>userBounds</CODE> - the user space bounding box of the |
| graphics primitive being rendered<DD><CODE>transform</CODE> - the <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> from user |
| space into device space<DD><CODE>hints</CODE> - the hints that the context object uses to choose |
| between rendering alternatives |
| <DT><B>Returns:</B><DD>the <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/PaintContext.html?is-external=true" title="class or interface in java.awt"><CODE>PaintContext</CODE></A> that generates color patterns. |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if the transform is not invertible<DT><B>See Also:</B><DD><A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/PaintContext.html?is-external=true" title="class or interface in java.awt"><CODE>PaintContext</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getCenterPoint()"><!-- --></A><H3> |
| getCenterPoint</H3> |
| <PRE> |
| public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Point2D.html?is-external=true" title="class or interface in java.awt.geom">Point2D</A> <B>getCenterPoint</B>()</PRE> |
| <DL> |
| <DD>Returns a copy of the center point of the radial gradient. |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>a <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Point2D.html?is-external=true" title="class or interface in java.awt.geom"><CODE>Point2D</CODE></A> object that is a copy of the center point</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getFocusPoint()"><!-- --></A><H3> |
| getFocusPoint</H3> |
| <PRE> |
| public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Point2D.html?is-external=true" title="class or interface in java.awt.geom">Point2D</A> <B>getFocusPoint</B>()</PRE> |
| <DL> |
| <DD>Returns a copy of the end point of the gradient axis. |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>a <A HREF="http://docs.oracle.com/javase/6/docs/api/java/awt/geom/Point2D.html?is-external=true" title="class or interface in java.awt.geom"><CODE>Point2D</CODE></A> object that is a copy of the focus point</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getRadius()"><!-- --></A><H3> |
| getRadius</H3> |
| <PRE> |
| public float <B>getRadius</B>()</PRE> |
| <DL> |
| <DD>Returns the radius of the circle defining the radial gradient. |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the radius of the circle defining the radial gradient</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/RadialGradientPaint.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"> |
| <A HREF="../../../../../org/apache/batik/ext/awt/MultipleGradientPaint.CycleMethodEnum.html" title="class in org.apache.batik.ext.awt"><B>PREV CLASS</B></A> |
| <A HREF="../../../../../org/apache/batik/ext/awt/RenderingHintsKeyExt.html" title="class in org.apache.batik.ext.awt"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../index.html?org/apache/batik/ext/awt/RadialGradientPaint.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="RadialGradientPaint.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: <A HREF="#nested_classes_inherited_from_class_org.apache.batik.ext.awt.MultipleGradientPaint">NESTED</A> | <A HREF="#fields_inherited_from_class_org.apache.batik.ext.awt.MultipleGradientPaint">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: FIELD | <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> |