| java.lang.Object com.sun.perseus.j2d.RadialGradientPaintDef
RadialGradientPaintDef | public class RadialGradientPaintDef implements PaintDef(Code) | | RadialGradientPaint support.
version: $Id: RadialGradientPaintDef.java,v 1.4 2006/04/21 06:35:33 st125089 Exp $ |
Constructor Summary | |
public | RadialGradientPaintDef(float cx, float cy, float fx, float fy, float r, float[] fractions, int[] rgba, int cycleMethod, boolean isObjectBBox, Transform gradientTransform) Constructs an RadialGradientPaint .
Parameters: cx - the gradient x-axis origin Parameters: cy - the gradient y-axis orign Parameters: fx - the gradient x-axis focal point Parameters: fy - the gradient y-axis focal point Parameters: r - the gradient radius Parameters: fractions - the array of stop values Parameters: rgba - the array of ARGB color values Parameters: cycleMethod - one of the cycle methods (CYCLE_NONE,CYCLE_REPEAT, CYCLE_REFLECT Parameters: isObjectBBox - if set to true, the RenderGraphic's current paintTarget object bounding box should be used to appendand additional transform to the gradientTransform. |
CYCLE_NONE | final public static int CYCLE_NONE(Code) | | |
CYCLE_REFLECT | final public static int CYCLE_REFLECT(Code) | | |
CYCLE_REPEAT | final public static int CYCLE_REPEAT(Code) | | |
cx | float cx(Code) | | The gradient x-axis center origin
|
cy | float cy(Code) | | The gradient y-axis center origin
|
cycleMethod | int cycleMethod(Code) | | One of the cycle methods (CYCLE_NONE,
CYCLE_REPEAT, CYCLE_REFLECT
|
frac | int[] frac(Code) | | The gradient stops, as fixed point values.
|
fractions | float[] fractions(Code) | | The gradient stops.
|
fx | float fx(Code) | | The gradient x-axis focal
|
fy | float fy(Code) | | The gradient y-axis focal
|
gradientTransform | protected Transform gradientTransform(Code) | | An additional transform from the gradient space. This corresponds to a
SVG gradientTransform attribute.
|
isObjectBBox | protected boolean isObjectBBox(Code) | | Set to true if this gradient is in objectBoundingBox space.
|
lastPaintOpacity | int lastPaintOpacity(Code) | | The last paintOpacity.
|
lrgba | int[] lrgba(Code) | | The last used rgba array, accounting for operation opacity.
|
r | float r(Code) | | The gradient radius
|
rgba | int[] rgba(Code) | | The array of ARGB color values.
|
RadialGradientPaintDef | public RadialGradientPaintDef(float cx, float cy, float fx, float fy, float r, float[] fractions, int[] rgba, int cycleMethod, boolean isObjectBBox, Transform gradientTransform)(Code) | | Constructs an RadialGradientPaint .
Parameters: cx - the gradient x-axis origin Parameters: cy - the gradient y-axis orign Parameters: fx - the gradient x-axis focal point Parameters: fy - the gradient y-axis focal point Parameters: r - the gradient radius Parameters: fractions - the array of stop values Parameters: rgba - the array of ARGB color values Parameters: cycleMethod - one of the cycle methods (CYCLE_NONE,CYCLE_REPEAT, CYCLE_REFLECT Parameters: isObjectBBox - if set to true, the RenderGraphic's current paintTarget object bounding box should be used to appendand additional transform to the gradientTransform. The objectBoundingBoxtransform is appended to the right of the gradientTransform. Parameters: gradientTransform - an additional transform to add between thedevice coordinate space and the gradient's coordinate space. |
setPaint | public void setPaint(PiscesRenderGraphics rg, PiscesRenderer pr, int paintOpacity)(Code) | | Sets the paint on a PiscesRender.
Parameters: rg - the RenderGraphics on requesting the paint to be set. Parameters: renderer - the PiscesRender on which to set the paint. Parameters: paintOpacity - additional paint opacity. |
|
|