< prev index next >

src/java.desktop/share/classes/sun/java2d/pisces/PiscesRenderingEngine.java

Print this page




  91                                          float x3, float y3) {
  92                          p2d.curveTo(x1, y1, x2, y2, x3, y3);
  93                      }
  94                      public void quadTo(float x1, float y1, float x2, float y2) {
  95                          p2d.quadTo(x1, y1, x2, y2);
  96                      }
  97                      public long getNativeConsumer() {
  98                          throw new InternalError("Not using a native peer");
  99                      }
 100                  });
 101         return p2d;
 102     }
 103 
 104     /**
 105      * Sends the geometry for a widened path as specified by the parameters
 106      * to the specified consumer.
 107      * <p>
 108      * The specified {@code src} {@link Shape} is widened according
 109      * to the parameters specified by the {@link BasicStroke} object.
 110      * Adjustments are made to the path as appropriate for the
 111      * {@link VALUE_STROKE_NORMALIZE} hint if the {@code normalize}
 112      * boolean parameter is true.
 113      * Adjustments are made to the path as appropriate for the
 114      * {@link VALUE_ANTIALIAS_ON} hint if the {@code antialias}
 115      * boolean parameter is true.
 116      * <p>
 117      * The geometry of the widened path is forwarded to the indicated
 118      * {@link PathConsumer2D} object as it is calculated.
 119      *
 120      * @param src the source path to be widened
 121      * @param bs the {@code BasicSroke} object specifying the
 122      *           decorations to be applied to the widened path
 123      * @param normalize indicates whether stroke normalization should
 124      *                  be applied
 125      * @param antialias indicates whether or not adjustments appropriate
 126      *                  to antialiased rendering should be applied
 127      * @param consumer the {@code PathConsumer2D} instance to forward
 128      *                 the widened geometry to
 129      * @since 1.7
 130      */
 131     public void strokeTo(Shape src,
 132                          AffineTransform at,
 133                          BasicStroke bs,
 134                          boolean thin,
 135                          boolean normalize,




  91                                          float x3, float y3) {
  92                          p2d.curveTo(x1, y1, x2, y2, x3, y3);
  93                      }
  94                      public void quadTo(float x1, float y1, float x2, float y2) {
  95                          p2d.quadTo(x1, y1, x2, y2);
  96                      }
  97                      public long getNativeConsumer() {
  98                          throw new InternalError("Not using a native peer");
  99                      }
 100                  });
 101         return p2d;
 102     }
 103 
 104     /**
 105      * Sends the geometry for a widened path as specified by the parameters
 106      * to the specified consumer.
 107      * <p>
 108      * The specified {@code src} {@link Shape} is widened according
 109      * to the parameters specified by the {@link BasicStroke} object.
 110      * Adjustments are made to the path as appropriate for the
 111      * {@link java.awt.RenderingHints#VALUE_STROKE_NORMALIZE} hint if the
 112      * {@code normalize} boolean parameter is true.
 113      * Adjustments are made to the path as appropriate for the
 114      * {@link java.awt.RenderingHints#VALUE_ANTIALIAS_ON} hint if the
 115      * {@code antialias} boolean parameter is true.
 116      * <p>
 117      * The geometry of the widened path is forwarded to the indicated
 118      * {@link PathConsumer2D} object as it is calculated.
 119      *
 120      * @param src the source path to be widened
 121      * @param bs the {@code BasicSroke} object specifying the
 122      *           decorations to be applied to the widened path
 123      * @param normalize indicates whether stroke normalization should
 124      *                  be applied
 125      * @param antialias indicates whether or not adjustments appropriate
 126      *                  to antialiased rendering should be applied
 127      * @param consumer the {@code PathConsumer2D} instance to forward
 128      *                 the widened geometry to
 129      * @since 1.7
 130      */
 131     public void strokeTo(Shape src,
 132                          AffineTransform at,
 133                          BasicStroke bs,
 134                          boolean thin,
 135                          boolean normalize,


< prev index next >