public class ShadedPaint extends Object implements PdfPaint, Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
AXIAL |
static int |
COONS |
protected float[] |
coords |
int |
cropH |
int |
cropX |
protected float[] |
domain |
static int |
FREEFORM |
protected PDFFunction[] |
function |
static int |
FUNCTION |
boolean |
isPrinting |
static int |
LATTICEFORM |
static int |
RADIAL |
float |
scaling |
protected GenericColorSpace |
shadingColorSpace
colorspace to use for shading
|
protected int |
shadingType
type used - see values in ShadingFactory
|
static int |
TENSOR |
int |
textX |
int |
textY |
BITMASK, OPAQUE, TRANSLUCENT| Constructor and Description |
|---|
ShadedPaint() |
ShadedPaint(PdfObject Shading,
boolean isPrinting,
GenericColorSpace shadingColorSpace,
PdfObjectReader currentPdfFile,
float[][] matrix,
boolean colorsReversed)
read general values
|
| Modifier and Type | Method and Description |
|---|---|
PaintContext |
createContext(ColorModel cm,
Rectangle db,
Rectangle2D ub,
AffineTransform xform,
RenderingHints hints) |
int |
getRGB() |
int |
getTransparency() |
boolean |
isPattern() |
boolean |
isTexture() |
void |
setScaling(double cropX,
double cropH,
float scaling,
float textX,
float textY) |
public static final int FUNCTION
public static final int AXIAL
public static final int RADIAL
public static final int FREEFORM
public static final int LATTICEFORM
public static final int COONS
public static final int TENSOR
protected PDFFunction[] function
protected GenericColorSpace shadingColorSpace
protected float[] coords
protected int shadingType
protected float[] domain
public float scaling
public int cropX
public int textX
public int textY
public int cropH
public boolean isPrinting
public ShadedPaint(PdfObject Shading, boolean isPrinting, GenericColorSpace shadingColorSpace, PdfObjectReader currentPdfFile, float[][] matrix, boolean colorsReversed)
public ShadedPaint()
public PaintContext createContext(ColorModel cm, Rectangle db, Rectangle2D ub, AffineTransform xform, RenderingHints hints)
createContext in interface Paintpublic int getTransparency()
getTransparency in interface Transparencypublic void setScaling(double cropX,
double cropH,
float scaling,
float textX,
float textY)
setScaling in interface PdfPaintCopyright © 2017. All rights reserved.