java.awt.PaintContext
public class AxialShadingContext extends ShadingContext implements java.awt.PaintContext
Constructor | Description |
---|---|
AxialShadingContext(PDShadingType2 shading,
java.awt.image.ColorModel colorModel,
java.awt.geom.AffineTransform xform,
Matrix matrix,
java.awt.Rectangle deviceBounds) |
Constructor creates an instance to be used for fill operations.
|
Modifier and Type | Method | Description |
---|---|---|
void |
dispose() |
|
java.awt.image.ColorModel |
getColorModel() |
|
float[] |
getCoords() |
Returns the coords values.
|
float[] |
getDomain() |
Returns the domain values.
|
boolean[] |
getExtend() |
Returns the extend values.
|
PDFunction |
getFunction() |
Returns the function.
|
java.awt.image.Raster |
getRaster(int x,
int y,
int w,
int h) |
public AxialShadingContext(PDShadingType2 shading, java.awt.image.ColorModel colorModel, java.awt.geom.AffineTransform xform, Matrix matrix, java.awt.Rectangle deviceBounds) throws java.io.IOException
shading
- the shading type to be usedcolorModel
- the color model to be usedxform
- transformation for user to device spacematrix
- the pattern matrix concatenated with that of the parent content streamdeviceBounds
- the bounds of the area to paint, in device unitsjava.io.IOException
- if there is an error getting the color space or doing color conversion.public void dispose()
dispose
in interface java.awt.PaintContext
public java.awt.image.ColorModel getColorModel()
getColorModel
in interface java.awt.PaintContext
public java.awt.image.Raster getRaster(int x, int y, int w, int h)
getRaster
in interface java.awt.PaintContext
public float[] getCoords()
public float[] getDomain()
public boolean[] getExtend()
public PDFunction getFunction() throws java.io.IOException
java.io.IOException
- if we were not able to create the function.Copyright © 2002–2018. All rights reserved.