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

Print this page




  24  */
  25 
  26 /*
  27  * @author Charlton Innovations, Inc.
  28  */
  29 
  30 package sun.java2d.loops;
  31 
  32 import sun.java2d.loops.GraphicsPrimitive;
  33 import sun.java2d.SunGraphics2D;
  34 import sun.java2d.SurfaceData;
  35 
  36 /**
  37  *   DrawPolygons
  38  *   1) draw single-width line polygons onto destination surface
  39  *   2) must accept output area [x, y, dx, dy]
  40  *      from within the surface description data for clip rect
  41  */
  42 public class DrawPolygons extends GraphicsPrimitive
  43 {
  44     public final static String methodSignature = "DrawPolygons(...)".toString();
  45 
  46     public final static int primTypeID = makePrimTypeID();
  47 
  48     public static DrawPolygons locate(SurfaceType srctype,
  49                                       CompositeType comptype,
  50                                       SurfaceType dsttype)
  51     {
  52         return (DrawPolygons)
  53             GraphicsPrimitiveMgr.locate(primTypeID,
  54                                         srctype, comptype, dsttype);
  55     }
  56 
  57     protected DrawPolygons(SurfaceType srctype,
  58                            CompositeType comptype,
  59                            SurfaceType dsttype)
  60     {
  61         super(methodSignature, primTypeID, srctype, comptype, dsttype);
  62     }
  63 
  64     public DrawPolygons(long pNativePrim,
  65                         SurfaceType srctype,
  66                         CompositeType comptype,




  24  */
  25 
  26 /*
  27  * @author Charlton Innovations, Inc.
  28  */
  29 
  30 package sun.java2d.loops;
  31 
  32 import sun.java2d.loops.GraphicsPrimitive;
  33 import sun.java2d.SunGraphics2D;
  34 import sun.java2d.SurfaceData;
  35 
  36 /**
  37  *   DrawPolygons
  38  *   1) draw single-width line polygons onto destination surface
  39  *   2) must accept output area [x, y, dx, dy]
  40  *      from within the surface description data for clip rect
  41  */
  42 public class DrawPolygons extends GraphicsPrimitive
  43 {
  44     public static final String methodSignature = "DrawPolygons(...)".toString();
  45 
  46     public static final int primTypeID = makePrimTypeID();
  47 
  48     public static DrawPolygons locate(SurfaceType srctype,
  49                                       CompositeType comptype,
  50                                       SurfaceType dsttype)
  51     {
  52         return (DrawPolygons)
  53             GraphicsPrimitiveMgr.locate(primTypeID,
  54                                         srctype, comptype, dsttype);
  55     }
  56 
  57     protected DrawPolygons(SurfaceType srctype,
  58                            CompositeType comptype,
  59                            SurfaceType dsttype)
  60     {
  61         super(methodSignature, primTypeID, srctype, comptype, dsttype);
  62     }
  63 
  64     public DrawPolygons(long pNativePrim,
  65                         SurfaceType srctype,
  66                         CompositeType comptype,