< prev index next >

src/java.desktop/windows/classes/sun/awt/windows/WPathGraphics.java

Print this page

        

*** 114,125 **** boolean canRedraw) { super(graphics, printerJob, painter, pageFormat, pageIndex, canRedraw); } /** ! * Creates a new <code>Graphics</code> object that is ! * a copy of this <code>Graphics</code> object. * @return a new graphics context that is a copy of * this graphics context. * @since 1.0 */ @Override --- 114,125 ---- boolean canRedraw) { super(graphics, printerJob, painter, pageFormat, pageIndex, canRedraw); } /** ! * Creates a new {@code Graphics} object that is ! * a copy of this {@code Graphics} object. * @return a new graphics context that is a copy of * this graphics context. * @since 1.0 */ @Override
*** 373,395 **** } return awScale; } /** ! * Renders the text specified by the specified <code>String</code>, ! * using the current <code>Font</code> and <code>Paint</code> attributes ! * in the <code>Graphics2D</code> context. * The baseline of the first character is at position * (<i>x</i>,&nbsp;<i>y</i>) in the User Space. ! * The rendering attributes applied include the <code>Clip</code>, ! * <code>Transform</code>, <code>Paint</code>, <code>Font</code> and ! * <code>Composite</code> attributes. For characters in script systems * such as Hebrew and Arabic, the glyphs can be rendered from right to * left, in which case the coordinate supplied is the location of the * leftmost character on the baseline. ! * @param str the <code>String</code> to be rendered ! * @param x,&nbsp;y the coordinates where the <code>String</code> * should be rendered * @see #setPaint * @see java.awt.Graphics#setColor * @see java.awt.Graphics#setFont * @see #setTransform --- 373,395 ---- } return awScale; } /** ! * Renders the text specified by the specified {@code String}, ! * using the current {@code Font} and {@code Paint} attributes ! * in the {@code Graphics2D} context. * The baseline of the first character is at position * (<i>x</i>,&nbsp;<i>y</i>) in the User Space. ! * The rendering attributes applied include the {@code Clip}, ! * {@code Transform}, {@code Paint}, {@code Font} and ! * {@code Composite} attributes. For characters in script systems * such as Hebrew and Arabic, the glyphs can be rendered from right to * left, in which case the coordinate supplied is the location of the * leftmost character on the baseline. ! * @param str the {@code String} to be rendered ! * @param x,&nbsp;y the coordinates where the {@code String} * should be rendered * @see #setPaint * @see java.awt.Graphics#setColor * @see java.awt.Graphics#setFont * @see #setTransform
*** 867,881 **** } return true; } /** ! * The various <code>drawImage()</code> methods for ! * <code>WPathGraphics</code> are all decomposed ! * into an invocation of <code>drawImageToPlatform</code>. * The portion of the passed in image defined by ! * <code>srcX, srcY, srcWidth, and srcHeight</code> * is transformed by the supplied AffineTransform and * drawn using GDI to the printer context. * * @param image The image to be drawn. * @param xform Used to transform the image before drawing. --- 867,881 ---- } return true; } /** ! * The various {@code drawImage()} methods for ! * {@code WPathGraphics} are all decomposed ! * into an invocation of {@code drawImageToPlatform}. * The portion of the passed in image defined by ! * {@code srcX, srcY, srcWidth, and srcHeight} * is transformed by the supplied AffineTransform and * drawn using GDI to the printer context. * * @param image The image to be drawn. * @param xform Used to transform the image before drawing.
*** 1332,1342 **** return true; } /** * Have the printing application redraw everything that falls ! * within the page bounds defined by <code>region</code>. */ @Override public void redrawRegion(Rectangle2D region, double scaleX, double scaleY, Shape savedClip, AffineTransform savedTransform) throws PrinterException { --- 1332,1342 ---- return true; } /** * Have the printing application redraw everything that falls ! * within the page bounds defined by {@code region}. */ @Override public void redrawRegion(Rectangle2D region, double scaleX, double scaleY, Shape savedClip, AffineTransform savedTransform) throws PrinterException {
*** 1432,1442 **** deepImage.getWidth(), deepImage.getHeight()); } /* ! * Fill the path defined by <code>pathIter</code> * with the specified color. * The path is provided in device coordinates. */ @Override protected void deviceFill(PathIterator pathIter, Color color) { --- 1432,1442 ---- deepImage.getWidth(), deepImage.getHeight()); } /* ! * Fill the path defined by {@code pathIter} * with the specified color. * The path is provided in device coordinates. */ @Override protected void deviceFill(PathIterator pathIter, Color color) {
*** 1448,1458 **** wPrinterJob.fillPath(); } /* * Set the printer device's clip to be the ! * path defined by <code>pathIter</code> * The path is provided in device coordinates. */ @Override protected void deviceClip(PathIterator pathIter) { --- 1448,1458 ---- wPrinterJob.fillPath(); } /* * Set the printer device's clip to be the ! * path defined by {@code pathIter} * The path is provided in device coordinates. */ @Override protected void deviceClip(PathIterator pathIter) {
*** 1672,1682 **** } } /** ! * Given a Java2D <code>PathIterator</code> instance, * this method translates that into a Window's path * in the printer device context. */ private void convertToWPath(PathIterator pathIter) { --- 1672,1682 ---- } } /** ! * Given a Java2D {@code PathIterator} instance, * this method translates that into a Window's path * in the printer device context. */ private void convertToWPath(PathIterator pathIter) {
< prev index next >