src/java.desktop/share/classes/sun/java2d/loops/FillSpans.java

Print this page




  28  * @author Charlton Innovations, Inc.
  29  */
  30 
  31 package sun.java2d.loops;
  32 
  33 import sun.java2d.loops.GraphicsPrimitive;
  34 import sun.java2d.pipe.SpanIterator;
  35 import java.awt.Color;
  36 import java.awt.image.ColorModel;
  37 import java.awt.image.Raster;
  38 import sun.java2d.SunGraphics2D;
  39 import sun.java2d.SurfaceData;
  40 
  41 /**
  42  * FillSpans
  43  * 1) draw solid color onto destination surface
  44  * 2) rectangular areas to fill come from SpanIterator
  45  */
  46 public class FillSpans extends GraphicsPrimitive
  47 {
  48     public final static String methodSignature = "FillSpans(...)".toString();
  49 
  50     public final static int primTypeID = makePrimTypeID();
  51 
  52     public static FillSpans locate(SurfaceType srctype,
  53                                    CompositeType comptype,
  54                                    SurfaceType dsttype)
  55     {
  56         return (FillSpans)
  57             GraphicsPrimitiveMgr.locate(primTypeID,
  58                                         srctype, comptype, dsttype);
  59     }
  60 
  61     protected FillSpans(SurfaceType srctype,
  62                         CompositeType comptype,
  63                         SurfaceType dsttype)
  64     {
  65         super(methodSignature, primTypeID, srctype, comptype, dsttype);
  66     }
  67 
  68     public FillSpans(long pNativePrim,
  69                      SurfaceType srctype,
  70                      CompositeType comptype,




  28  * @author Charlton Innovations, Inc.
  29  */
  30 
  31 package sun.java2d.loops;
  32 
  33 import sun.java2d.loops.GraphicsPrimitive;
  34 import sun.java2d.pipe.SpanIterator;
  35 import java.awt.Color;
  36 import java.awt.image.ColorModel;
  37 import java.awt.image.Raster;
  38 import sun.java2d.SunGraphics2D;
  39 import sun.java2d.SurfaceData;
  40 
  41 /**
  42  * FillSpans
  43  * 1) draw solid color onto destination surface
  44  * 2) rectangular areas to fill come from SpanIterator
  45  */
  46 public class FillSpans extends GraphicsPrimitive
  47 {
  48     public static final String methodSignature = "FillSpans(...)".toString();
  49 
  50     public static final int primTypeID = makePrimTypeID();
  51 
  52     public static FillSpans locate(SurfaceType srctype,
  53                                    CompositeType comptype,
  54                                    SurfaceType dsttype)
  55     {
  56         return (FillSpans)
  57             GraphicsPrimitiveMgr.locate(primTypeID,
  58                                         srctype, comptype, dsttype);
  59     }
  60 
  61     protected FillSpans(SurfaceType srctype,
  62                         CompositeType comptype,
  63                         SurfaceType dsttype)
  64     {
  65         super(methodSignature, primTypeID, srctype, comptype, dsttype);
  66     }
  67 
  68     public FillSpans(long pNativePrim,
  69                      SurfaceType srctype,
  70                      CompositeType comptype,