Package com.sun.pdfview.pattern
Class PatternType1.Type1PaintContext
java.lang.Object
com.sun.pdfview.pattern.PatternType1.Type1PaintContext
- All Implemented Interfaces:
PaintContext
- Enclosing class:
PatternType1
A simple paint context that uses an existing raster in device
space to generate pixels
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Rectangle2D
the anchor boxprivate ColorModel
the color modelprivate Raster
the image data, as a raster in device coordinatesprivate float
the x offsetprivate float
the y offset -
Constructor Summary
ConstructorsConstructorDescriptionType1PaintContext
(ColorModel colorModel, Rectangle2D bbox, float xstep, float ystep, Raster data) Create a paint context -
Method Summary
-
Field Details
-
colorModel
the color model -
bbox
the anchor box -
xstep
private float xstepthe x offset -
ystep
private float ystepthe y offset -
data
the image data, as a raster in device coordinates
-
-
Constructor Details
-
Type1PaintContext
Type1PaintContext(ColorModel colorModel, Rectangle2D bbox, float xstep, float ystep, Raster data) Create a paint context
-
-
Method Details
-
dispose
public void dispose()- Specified by:
dispose
in interfacePaintContext
-
getColorModel
- Specified by:
getColorModel
in interfacePaintContext
-
getRaster
- Specified by:
getRaster
in interfacePaintContext
-