public class PatternColor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
e_colored_tiling_pattern
The Constant e_colored_tiling_pattern.
|
static int |
e_constant_spacing
The Constant e_constant_spacing.
|
static int |
e_constant_spacing_fast_fill
The Constant e_constant_spacing_fast_fill.
|
static int |
e_no_distortion
The Constant e_no_distortion.
|
static int |
e_null
The Constant e_null.
|
static int |
e_shading
The Constant e_shading.
|
static int |
e_uncolored_tiling_pattern
The Constant e_uncolored_tiling_pattern.
|
Constructor and Description |
---|
PatternColor(Obj pattern)
Create a PatternColor from the given SDF/Cos object listed under Pattern entry
in page Resource dictionary.
|
Modifier and Type | Method and Description |
---|---|
Rect |
getBBox()
Get the bounding box.
|
Matrix2D |
getMatrix()
Get the matrix.
|
Obj |
getSDFObj()
Get the SDFObj.
|
Shading |
getShading()
Get the shading pattern's gradient fill.
|
int |
getTilingType()
Get the PatternColor tiling type.
|
int |
getType()
Get the PatternColor type.
|
static int |
getType(Obj pattern)
Get the type from given PatternColor
|
double |
getXStep()
Get the horizontal spacing between pattern cells
|
double |
getYStep()
Get the vertical spacing between pattern cells
|
public static final int e_uncolored_tiling_pattern
public static final int e_colored_tiling_pattern
public static final int e_shading
public static final int e_null
public static final int e_constant_spacing
public static final int e_no_distortion
public static final int e_constant_spacing_fast_fill
public PatternColor(Obj pattern)
pattern
- the patternpublic static int getType(Obj pattern) throws PDFNetException
pattern
- the given PatternColorPDFNetException
public int getType() throws PDFNetException
PDFNetException
public Obj getSDFObj() throws PDFNetException
PDFNetException
public Matrix2D getMatrix() throws PDFNetException
PDFNetException
public Shading getShading() throws PDFNetException
Note: for patterns other than Shading this method throws an exception.
PDFNetException
public int getTilingType() throws PDFNetException
Note: for patterns other than Tiling this method throws an exception.
PDFNetException
public Rect getBBox() throws PDFNetException
Note: for patterns other than Tiling this method throws an exception.
PDFNetException
public double getXStep() throws PDFNetException
Note: that XStep and YStep may differ from the dimensions of the pattern cell implied by the BBox entry. This allows tiling with irregularly shaped figures. XStep and YStep may be either positive or negative, but not zero.
Note: for patterns other than Tiling this method throws an exception.
PDFNetException
public double getYStep() throws PDFNetException
Note: for patterns other than Tiling this method throws an exception.
PDFNetException