| java.lang.Object com.sun.perseus.j2d.LinearGradientPaintDef
LinearGradientPaintDef | public class LinearGradientPaintDef implements PaintDef(Code) | | LinearGradientPaint support.
version: $Id: LinearGradientPaintDef.java,v 1.4 2006/04/21 06:35:26 st125089 Exp $ |
Constructor Summary | |
public | LinearGradientPaintDef(float x0, float y0, float x1, float y1, float[] fractions, int[] rgba, int cycleMethod, boolean isObjectBBox, Transform gradientTransform) Constructs an LinearGradientPaint .
Parameters: x0 - the gradient starting point along the x-axis Parameters: y0 - the gradient starting point along the y-axis Parameters: x1 - the gradient end point along the x-axis Parameters: y1 - the gradient end point along the y-axis. 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) | | |
cycleMethod | int cycleMethod(Code) | | One of the cycle methods (CYCLE_NONE,
CYCLE_REPEAT, CYCLE_REFLECT
|
frac | int[] frac(Code) | | The array of stop values, as fixed point values.
|
fractions | float[] fractions(Code) | | The array of stop values.
|
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.
|
rgba | int[] rgba(Code) | | The array of ARGB color values.
|
x0 | float x0(Code) | | The gradient starting point along the x-axis
|
x1 | float x1(Code) | | The gradient end point along the x-axis
|
y0 | float y0(Code) | | The gradient starting point along the y-axis
|
y1 | float y1(Code) | | The gradient end point along the y-axis.
|
LinearGradientPaintDef | public LinearGradientPaintDef(float x0, float y0, float x1, float y1, float[] fractions, int[] rgba, int cycleMethod, boolean isObjectBBox, Transform gradientTransform)(Code) | | Constructs an LinearGradientPaint .
Parameters: x0 - the gradient starting point along the x-axis Parameters: y0 - the gradient starting point along the y-axis Parameters: x1 - the gradient end point along the x-axis Parameters: y1 - the gradient end point along the y-axis. 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. |
|
|