Class 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 box
      private java.awt.image.ColorModel colorModel
      the color model
      private java.awt.image.Raster data
      the image data, as a raster in device coordinates
      private float xstep
      the x offset
      private 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • Type1PaintContext

        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 Detail

      • dispose

        public void dispose()
        Specified by:
        dispose in interface java.awt.PaintContext
      • getColorModel

        public java.awt.image.ColorModel getColorModel()
        Specified by:
        getColorModel in interface java.awt.PaintContext
      • getRaster

        public java.awt.image.Raster getRaster​(int x,
                                               int y,
                                               int w,
                                               int h)
        Specified by:
        getRaster in interface java.awt.PaintContext