| Modifier and Type | Class and Description |
|---|---|
| public class |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final Color[] | |
| private final float[] | |
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public PathGradientPaint. | createContext(ColorModel
the preferred cm, Rectangle ColorModel which represents the most convenient
format for the caller to receive the pixel data, or null
if there is no preference.the device space bounding box
of the graphics primitive being rendered.
Implementations of the deviceBounds, Rectangle2D Paint interface
are allowed to throw NullPointerException
for a null deviceBounds.the user space bounding box
of the graphics primitive being rendered.
Implementations of the userBounds, AffineTransform Paint interface
are allowed to throw NullPointerException
for a null userBounds.the transform, RenderingHints AffineTransform from user
space into device space.
Implementations of the Paint interface
are allowed to throw NullPointerException
for a null xform.the set of hints that the context object can use to
choose between rendering alternatives.
Implementations of the hints)Paint interface
are allowed to throw NullPointerException
for a null hints.Implements java. Creates and returns a |
| public int | getTransparency()
Implements java. Returns the type of this |
| capStyle | back to summary |
|---|---|
| private final int capStyle | |
| colors | back to summary |
|---|---|
| private final Color[] colors | |
| fractions | back to summary |
|---|---|
| private final float[] fractions | |
| joinStyle | back to summary |
|---|---|
| private final int joinStyle | |
| transparency | back to summary |
|---|---|
| private final int transparency | |
| PathGradientPaint | back to summary |
|---|---|
| pack-priv PathGradientPaint(float[] fractions, Color[] colors) | |
| PathGradientPaint | back to summary |
|---|---|
| private PathGradientPaint(float[] fractions, Color[] colors, int capStyle, int joinStyle) | |
| createContext | back to summary |
|---|---|
| public PathGradientPaint. Implements java. Doc from java. Creates and returns a
| |
| getTransparency | back to summary |
|---|---|
| public int getTransparency() Implements java. Doc from java. Returns the type of this
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Rectangle | |
| pack-priv final int | |
| pack-priv final RenderingHints | |
| pack-priv final PaintContext | |
| pack-priv WritableRaster | |
| protected final Shape | shape
for POI: the shape will be only known when the subclasses determines the concrete implementation in the draw/-content method, so we need to postpone the setting/creation as long as possible |
| pack-priv final Rectangle2D | |
| protected final AffineTransform |
| Access | Constructor and Description |
|---|---|
| pack-priv | PathGradientContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
|
| Modifier and Type | Method and Description |
|---|---|
| public WritableRaster | |
| public void | dispose()
Implements java. Releases the resources allocated for the operation. |
| public ColorModel | getColorModel()
Implements java. Returns the |
| pack-priv int | |
| public Raster | getRaster(int
the x coordinate of the area in device space
for which colors are generated. xOffset, int the y coordinate of the area in device space
for which colors are generated. yOffset, int the width of the area in device space w, int the height of the area in device space h)Implements java. Returns a |
| deviceBounds | back to summary |
|---|---|
| pack-priv final Rectangle deviceBounds | |
| gradientSteps | back to summary |
|---|---|
| pack-priv final int gradientSteps | |
| hints | back to summary |
|---|---|
| pack-priv final RenderingHints hints | |
| pCtx | back to summary |
|---|---|
| pack-priv final PaintContext pCtx | |
| raster | back to summary |
|---|---|
| pack-priv WritableRaster raster | |
| shape | back to summary |
|---|---|
| protected final Shape shape for POI: the shape will be only known when the subclasses determines the concrete implementation in the draw/-content method, so we need to postpone the setting/creation as long as possible | |
| userBounds | back to summary |
|---|---|
| pack-priv final Rectangle2D userBounds | |
| xform | back to summary |
|---|---|
| protected final AffineTransform xform | |
| PathGradientContext | back to summary |
|---|---|
| pack-priv PathGradientContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) | |
| createRaster | back to summary |
|---|---|
| public WritableRaster createRaster() | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements java. Doc from java. Releases the resources allocated for the operation. | |
| getColorModel | back to summary |
|---|---|
| public ColorModel getColorModel() Implements java. Doc from java. Returns the
| |
| getGradientSteps | back to summary |
|---|---|
| pack-priv int getGradientSteps(Shape gradientShape) | |
| getRaster | back to summary |
|---|---|
| public Raster getRaster(int xOffset, int yOffset, int w, int h) Implements java. Doc from java. Returns a
| |