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

Print this page




  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.java2d.loops;
  27 
  28 import sun.java2d.loops.GraphicsPrimitive;
  29 import sun.java2d.SunGraphics2D;
  30 import sun.java2d.SurfaceData;
  31 import java.awt.geom.Path2D;
  32 
  33 /**
  34  *   DrawPath
  35  *   1. draw single-width line path onto destination surface
  36  *   2. must accept output area [x, y, dx, dy]
  37  *      from within the surface description data for clip rect
  38  */
  39 public class DrawPath extends GraphicsPrimitive {
  40 
  41     public final static String methodSignature =
  42         "DrawPath(...)".toString();
  43 
  44     public final static int primTypeID = makePrimTypeID();
  45 
  46     public static DrawPath locate(SurfaceType srctype,
  47                                   CompositeType comptype,
  48                                   SurfaceType dsttype)
  49     {
  50         return (DrawPath)
  51             GraphicsPrimitiveMgr.locate(primTypeID,
  52                                         srctype, comptype, dsttype);
  53     }
  54 
  55     protected DrawPath(SurfaceType srctype,
  56                        CompositeType comptype,
  57                        SurfaceType dsttype)
  58     {
  59         super(methodSignature, primTypeID,
  60               srctype, comptype, dsttype);
  61     }
  62 
  63     public DrawPath(long pNativePrim,
  64                     SurfaceType srctype,




  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.java2d.loops;
  27 
  28 import sun.java2d.loops.GraphicsPrimitive;
  29 import sun.java2d.SunGraphics2D;
  30 import sun.java2d.SurfaceData;
  31 import java.awt.geom.Path2D;
  32 
  33 /**
  34  *   DrawPath
  35  *   1. draw single-width line path onto destination surface
  36  *   2. must accept output area [x, y, dx, dy]
  37  *      from within the surface description data for clip rect
  38  */
  39 public class DrawPath extends GraphicsPrimitive {
  40 
  41     public static final String methodSignature =
  42         "DrawPath(...)".toString();
  43 
  44     public static final int primTypeID = makePrimTypeID();
  45 
  46     public static DrawPath locate(SurfaceType srctype,
  47                                   CompositeType comptype,
  48                                   SurfaceType dsttype)
  49     {
  50         return (DrawPath)
  51             GraphicsPrimitiveMgr.locate(primTypeID,
  52                                         srctype, comptype, dsttype);
  53     }
  54 
  55     protected DrawPath(SurfaceType srctype,
  56                        CompositeType comptype,
  57                        SurfaceType dsttype)
  58     {
  59         super(methodSignature, primTypeID,
  60               srctype, comptype, dsttype);
  61     }
  62 
  63     public DrawPath(long pNativePrim,
  64                     SurfaceType srctype,