< prev index next >

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

Print this page

        

@@ -334,17 +334,17 @@
 
     private String mDestination = null;
 
     /**
      * The last color set into the print device context or
-     * <code>null</code> if no color has been set.
+     * {@code null} if no color has been set.
      */
     private Color mLastColor;
 
     /**
      * The last text color set into the print device context or
-     * <code>null</code> if no color has been set.
+     * {@code null} if no color has been set.
      */
     private Color mLastTextColor;
 
     /**
      * Define the most recent java font set as a GDI font in the printer

@@ -400,21 +400,21 @@
 /* Instance Methods */
 
     /**
      * Display a dialog to the user allowing the modification of a
      * PageFormat instance.
-     * The <code>page</code> argument is used to initialize controls
+     * The {@code page} argument is used to initialize controls
      * in the page setup dialog.
      * If the user cancels the dialog, then the method returns the
-     * original <code>page</code> object unmodified.
+     * original {@code page} object unmodified.
      * If the user okays the dialog then the method returns a new
      * PageFormat object with the indicated changes.
-     * In either case the original <code>page</code> object will
+     * In either case the original {@code page} object will
      * not be modified.
      * @param     page    the default PageFormat presented to the user
      *                    for modification
-     * @return    the original <code>page</code> object if the dialog
+     * @return    the original {@code page} object if the dialog
      *            is cancelled, or a new PageFormat object containing
      *            the format indicated by the user if the dialog is
      *            acknowledged
      * @exception HeadlessException if GraphicsEnvironment.isHeadless()
      * returns true.

@@ -586,12 +586,12 @@
     }
 
      /**
      * Associate this PrinterJob with a new PrintService.
      *
-     * Throws <code>PrinterException</code> if the specified service
-     * cannot support the <code>Pageable</code> and
+     * Throws {@code PrinterException} if the specified service
+     * cannot support the {@code Pageable} and
      * </code>Printable</code> interfaces necessary to support 2D printing.
      * @param service print service which supports 2D printing.
      *
      * @throws PrinterException if the specified service does not support
      * 2D printing.

@@ -761,18 +761,18 @@
     @Override
     protected native void validatePaper(Paper origPaper, Paper newPaper );
 
     /**
      * Examine the metrics captured by the
-     * <code>PeekGraphics</code> instance and
+     * {@code PeekGraphics} instance and
      * if capable of directly converting this
      * print job to the printer's control language
      * or the native OS's graphics primitives, then
-     * return a <code>PathGraphics</code> to perform
+     * return a {@code PathGraphics} to perform
      * that conversion. If there is not an object
      * capable of the conversion then return
-     * <code>null</code>. Returning <code>null</code>
+     * {@code null}. Returning {@code null}
      * causes the print job to be rasterized.
      */
 
     @Override
     protected Graphics2D createPathGraphics(PeekGraphics peekGraphics,

@@ -974,21 +974,21 @@
                                endX, endY);
     }
 
     /**
      * Set the current polgon fill rule into the printer device context.
-     * The <code>fillRule</code> should
+     * The {@code fillRule} should
      * be one of the following Windows constants:
-     * <code>ALTERNATE</code> or <code>WINDING</code>.
+     * {@code ALTERNATE} or {@code WINDING}.
      */
     protected void setPolyFillMode(int fillRule) {
         setPolyFillMode(getPrintDC(), fillRule);
     }
 
     /*
      * Create a Window's solid brush for the color specified
-     * by <code>(red, green, blue)</code>. Once the brush
+     * by {@code (red, green, blue)}. Once the brush
      * is created, select it in the current printing device
      * context and free the old brush.
      */
     protected void selectSolidBrush(Color color) {
 

@@ -1144,11 +1144,11 @@
     protected String removeControlChars(String str) {
         return super.removeControlChars(str);
     }
 
     /**
-     * Draw the string <code>text</code> to the printer's
+     * Draw the string {@code text} to the printer's
      * device context at the specified position.
      */
     protected void textOut(String str, float x, float y,
                            float[] positions) {
         /* Don't leave handling of control chars to GDI.

@@ -1164,11 +1164,11 @@
         }
         textOut(getPrintDC(), text, text.length(), false, x, y, positions);
     }
 
    /**
-     * Draw the glyphs <code>glyphs</code> to the printer's
+     * Draw the glyphs {@code glyphs} to the printer's
      * device context at the specified position.
      */
     protected void glyphsOut(int []glyphs, float x, float y,
                              float[] positions) {
 

@@ -1206,19 +1206,19 @@
         return getGDIAdvance(getPrintDC(), text);
     }
 
      /**
      * Draw the 24 bit BGR image buffer represented by
-     * <code>image</code> to the GDI device context
-     * <code>printDC</code>. The image is drawn at
-     * <code>(destX, destY)</code> in device coordinates.
+     * {@code image} to the GDI device context
+     * {@code printDC}. The image is drawn at
+     * {@code (destX, destY)} in device coordinates.
      * The image is scaled into a square of size
-     * specified by <code>destWidth</code> and
-     * <code>destHeight</code>. The portion of the
+     * specified by {@code destWidth} and
+     * {@code destHeight}. The portion of the
      * source image copied into that square is specified
-     * by <code>srcX</code>, <code>srcY</code>,
-     * <code>srcWidth</code>, and srcHeight.
+     * by {@code srcX}, {@code srcY},
+     * {@code srcWidth}, and srcHeight.
      */
     protected void drawImage3ByteBGR(byte[] image,
                                      float destX, float destY,
                                      float destWidth, float destHeight,
                                      float srcX, float srcY,

@@ -1410,77 +1410,77 @@
     protected native void printBand(byte[] data, int x, int y,
                                     int width, int height);
 
     /**
      * Begin a Window's rendering path in the device
-     * context <code>printDC</code>.
+     * context {@code printDC}.
      */
     protected native void beginPath(long printDC);
 
     /**
      * End a Window's rendering path in the device
-     * context <code>printDC</code>.
+     * context {@code printDC}.
      */
     protected native void endPath(long printDC);
 
     /**
      * Close a subpath in a Window's rendering path in the device
-     * context <code>printDC</code>.
+     * context {@code printDC}.
      */
     protected native void closeFigure(long printDC);
 
     /**
      * Fill a defined Window's rendering path in the device
-     * context <code>printDC</code>.
+     * context {@code printDC}.
      */
     protected native void fillPath(long printDC);
 
     /**
-     * Move the Window's pen position to <code>(x,y)</code>
-     * in the device context <code>printDC</code>.
+     * Move the Window's pen position to {@code (x,y)}
+     * in the device context {@code printDC}.
      */
     protected native void moveTo(long printDC, float x, float y);
 
     /**
      * Draw a line from the current pen position to
-     * <code>(x,y)</code> in the device context <code>printDC</code>.
+     * {@code (x,y)} in the device context {@code printDC}.
      */
     protected native void lineTo(long printDC, float x, float y);
 
     protected native void polyBezierTo(long printDC,
                                        float control1x, float control1y,
                                        float control2x, float control2y,
                                        float endX, float endY);
 
     /**
      * Set the current polgon fill rule into the device context
-     * <code>printDC</code>. The <code>fillRule</code> should
+     * {@code printDC}. The {@code fillRule} should
      * be one of the following Windows constants:
-     * <code>ALTERNATE</code> or <code>WINDING</code>.
+     * {@code ALTERNATE} or {@code WINDING}.
      */
     protected native void setPolyFillMode(long printDC, int fillRule);
 
     /**
      * Create a Window's solid brush for the color specified
-     * by <code>(red, green, blue)</code>. Once the brush
+     * by {@code (red, green, blue)}. Once the brush
      * is created, select it in the device
-     * context <code>printDC</code> and free the old brush.
+     * context {@code printDC} and free the old brush.
      */
     protected native void selectSolidBrush(long printDC,
                                            int red, int green, int blue);
 
     /**
      * Return the x coordinate of the current pen
      * position in the device context
-     * <code>printDC</code>.
+     * {@code printDC}.
      */
     protected native int getPenX(long printDC);
 
     /**
      * Return the y coordinate of the current pen
      * position in the device context
-     * <code>printDC</code>.
+     * {@code printDC}.
      */
     protected native int getPenY(long printDC);
 
     /**
      * Select the device context's current path

@@ -1535,12 +1535,12 @@
     protected native void setTextColor(long printDC,
                                        int red, int green, int blue);
 
 
     /**
-     * Draw the string <code>text</code> into the device
-     * context <code>printDC</code> at the specified
+     * Draw the string {@code text} into the device
+     * context {@code printDC} at the specified
      * position.
      */
     protected native void textOut(long printDC, String text,
                                   int strlen, boolean glyphs,
                                   float x, float y, float[] positions);

@@ -1548,19 +1548,19 @@
 
     private native int getGDIAdvance(long printDC, String text);
 
      /**
      * Draw the DIB compatible image buffer represented by
-     * <code>image</code> to the GDI device context
-     * <code>printDC</code>. The image is drawn at
-     * <code>(destX, destY)</code> in device coordinates.
+     * {@code image} to the GDI device context
+     * {@code printDC}. The image is drawn at
+     * {@code (destX, destY)} in device coordinates.
      * The image is scaled into a square of size
-     * specified by <code>destWidth</code> and
-     * <code>destHeight</code>. The portion of the
+     * specified by {@code destWidth} and
+     * {@code destHeight}. The portion of the
      * source image copied into that square is specified
-     * by <code>srcX</code>, <code>srcY</code>,
-     * <code>srcWidth</code>, and srcHeight.
+     * by {@code srcX}, {@code srcY},
+     * {@code srcWidth}, and srcHeight.
      * Note that the image isn't completely compatible with DIB format.
      * At the very least it needs to be padded so each scanline is
      * DWORD aligned. Also we "flip" the image to make it a bottom-up DIB.
      */
     private native void drawDIBImage(long printDC, byte[] image,
< prev index next >