public class RMMultipleStopGradient
extends java.lang.Object
implements java.awt.PaintContext, java.awt.Paint
| Modifier and Type | Class and Description |
|---|---|
static class |
RMMultipleStopGradient.AngleGradient
Multiple stop angle gradient with angles.
|
static class |
RMMultipleStopGradient.DiamondGradient
A multiple stop diamond gradient.
|
static class |
RMMultipleStopGradient.RadialGradient
Multiple stop radial gradient.
|
| Constructor and Description |
|---|
RMMultipleStopGradient(float x0,
float y0,
float x1,
float y1,
RMGradientFill fill) |
| Modifier and Type | Method and Description |
|---|---|
java.awt.PaintContext |
createContext(java.awt.image.ColorModel cm,
java.awt.Rectangle deviceBounds,
java.awt.geom.Rectangle2D userBounds,
java.awt.geom.AffineTransform xform,
java.awt.RenderingHints hints) |
void |
dispose() |
void |
doShading(int[] argb_samples,
int x,
int y,
int w,
int h)
Shading loop.
|
java.awt.image.ColorModel |
getColorModel()
ARGB.
|
java.awt.image.Raster |
getRaster(int x,
int y,
int w,
int h) |
int |
getShadePixel(float t)
Returns the argb pixel value for the distance along the shading axis.
|
int |
getTransparency()
Alpha & color definitions
|
void |
setDeviceTransform(java.awt.geom.AffineTransform x,
java.awt.Rectangle devRect)
Sets the transform from user space to device space.
|
public RMMultipleStopGradient(float x0,
float y0,
float x1,
float y1,
RMGradientFill fill)
public java.awt.PaintContext createContext(java.awt.image.ColorModel cm,
java.awt.Rectangle deviceBounds,
java.awt.geom.Rectangle2D userBounds,
java.awt.geom.AffineTransform xform,
java.awt.RenderingHints hints)
createContext in interface java.awt.Paintpublic void dispose()
dispose in interface java.awt.PaintContextpublic java.awt.image.Raster getRaster(int x,
int y,
int w,
int h)
getRaster in interface java.awt.PaintContextpublic int getTransparency()
getTransparency in interface java.awt.Transparencypublic java.awt.image.ColorModel getColorModel()
getColorModel in interface java.awt.PaintContextpublic void doShading(int[] argb_samples,
int x,
int y,
int w,
int h)
public int getShadePixel(float t)
public void setDeviceTransform(java.awt.geom.AffineTransform x,
java.awt.Rectangle devRect)