Package com.sun.pdfview.pattern
Class PatternType1.Type1PaintContext
- java.lang.Object
-
- com.sun.pdfview.pattern.PatternType1.Type1PaintContext
-
- All Implemented Interfaces:
java.awt.PaintContext
- Enclosing class:
- PatternType1
class PatternType1.Type1PaintContext extends java.lang.Object implements java.awt.PaintContext
A simple paint context that uses an existing raster in device space to generate pixels
-
-
Field Summary
Fields Modifier and Type Field Description private java.awt.geom.Rectangle2D
bbox
the anchor boxprivate java.awt.image.ColorModel
colorModel
the color modelprivate java.awt.image.Raster
data
the image data, as a raster in device coordinatesprivate float
xstep
the x offsetprivate float
ystep
the y offset
-
Constructor Summary
Constructors Constructor Description Type1PaintContext(java.awt.image.ColorModel colorModel, java.awt.geom.Rectangle2D bbox, float xstep, float ystep, java.awt.image.Raster data)
Create a paint context
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
java.awt.image.ColorModel
getColorModel()
java.awt.image.Raster
getRaster(int x, int y, int w, int h)
-
-
-
Field Detail
-
colorModel
private java.awt.image.ColorModel colorModel
the color model
-
bbox
private java.awt.geom.Rectangle2D bbox
the anchor box
-
xstep
private float xstep
the x offset
-
ystep
private float ystep
the y offset
-
data
private java.awt.image.Raster data
the image data, as a raster in device coordinates
-
-
Method Detail
-
dispose
public void dispose()
- Specified by:
dispose
in interfacejava.awt.PaintContext
-
getColorModel
public java.awt.image.ColorModel getColorModel()
- Specified by:
getColorModel
in interfacejava.awt.PaintContext
-
getRaster
public java.awt.image.Raster getRaster(int x, int y, int w, int h)
- Specified by:
getRaster
in interfacejava.awt.PaintContext
-
-