Top Description Fields Constructors Methods
org.apache.pdfbox.pdmodel.graphics.shading

public Class RadialShadingPaint

extends ShadingPaint<PDShadingType3>
Class Inheritance
Imports
java.awt.Color, .PaintContext, .Rectangle, .RenderingHints, java.awt.geom.AffineTransform, .Rectangle2D, java.awt.image.ColorModel, java.io.IOException, org.apache.commons.logging.Log, .LogFactory, org.apache.pdfbox.util.Matrix

AWT Paint for radial shading.

Field Summary

Modifier and TypeField and Description
private static final Log
Inherited from org.apache.pdfbox.pdmodel.graphics.shading.ShadingPaint:
matrixshading

Constructor Summary

AccessConstructor and Description
pack-priv
RadialShadingPaint(PDShadingType3
the shading resources
shading
,
Matrix
the pattern matrix concatenated with that of the parent content stream
matrix
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public PaintContext
createContext(ColorModel
the preferred ColorModel which represents the most convenient format for the caller to receive the pixel data, or null if there is no preference.
cm
,
Rectangle
the device space bounding box of the graphics primitive being rendered. Implementations of the Paint interface are allowed to throw NullPointerException for a null deviceBounds.
deviceBounds
,
Rectangle2D
the user space bounding box of the graphics primitive being rendered. Implementations of the Paint interface are allowed to throw NullPointerException for a null userBounds.
userBounds
,
AffineTransform
the AffineTransform from user space into device space. Implementations of the Paint interface are allowed to throw NullPointerException for a null xform.
xform
,
RenderingHints
the set of hints that the context object can use to choose between rendering alternatives. Implementations of the Paint interface are allowed to throw NullPointerException for a null hints.
hints
)

Implements java.awt.Paint.createContext.

Creates and returns a PaintContext used to generate the color pattern.

public int
getTransparency()

Implements java.awt.Transparency.getTransparency.

Returns the type of this Transparency.

Inherited from org.apache.pdfbox.pdmodel.graphics.shading.ShadingPaint:
getMatrixgetShading

Field Detail

LOGback to summary
private static final Log LOG

Constructor Detail

RadialShadingPaintback to summary
pack-priv RadialShadingPaint(PDShadingType3 shading, Matrix matrix)

Constructor.

Parameters
shading:PDShadingType3

the shading resources

matrix:Matrix

the pattern matrix concatenated with that of the parent content stream

Method Detail

createContextback to summary
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)

Implements java.awt.Paint.createContext.

Doc from java.awt.Paint.createContext.

Creates and returns a PaintContext used to generate the color pattern. The arguments to this method convey additional information about the rendering operation that may be used or ignored on various implementations of the Paint interface. A caller must pass non-null values for all of the arguments except for the ColorModel argument which may be null to indicate that no specific ColorModel type is preferred. Implementations of the Paint interface are allowed to use or ignore any of the arguments as makes sense for their function, and are not constrained to use the specified ColorModel for the returned PaintContext, even if it is not null. Implementations are allowed to throw NullPointerException for any null argument other than the ColorModel argument, but are not required to do so.

Parameters
cm:ColorModel

the preferred ColorModel which represents the most convenient format for the caller to receive the pixel data, or null if there is no preference.

deviceBounds:Rectangle

the device space bounding box of the graphics primitive being rendered. Implementations of the Paint interface are allowed to throw NullPointerException for a null deviceBounds.

userBounds:Rectangle2D

the user space bounding box of the graphics primitive being rendered. Implementations of the Paint interface are allowed to throw NullPointerException for a null userBounds.

xform:AffineTransform

the AffineTransform from user space into device space. Implementations of the Paint interface are allowed to throw NullPointerException for a null xform.

hints:RenderingHints

the set of hints that the context object can use to choose between rendering alternatives. Implementations of the Paint interface are allowed to throw NullPointerException for a null hints.

Returns:PaintContext

the PaintContext for generating color patterns.

Annotations
@Override
getTransparencyback to summary
public int getTransparency()

Implements java.awt.Transparency.getTransparency.

Doc from java.awt.Transparency.getTransparency.

Returns the type of this Transparency.

Returns:int

the field type of this Transparency, which is either OPAQUE, BITMASK or TRANSLUCENT.

Annotations
@Override