< prev index next >

src/java.desktop/share/classes/sun/print/PeekMetrics.java

Print this page

        

@@ -50,13 +50,13 @@
     private boolean mHasText;
 
     private boolean mHasImages;
 
     /**
-     * Return <code>true</code> if the application
+     * Return {@code true} if the application
      * has done any drawing with a Paint that
-     * is not an instance of <code>Color</code>
+     * is not an instance of {@code Color}
      */
     public boolean hasNonSolidColors() {
         return mHasNonSolidColors;
     }
 

@@ -117,11 +117,11 @@
         checkDrawingMode(g);
     }
 
     /**
      * The application is drawing text
-     * defined by <code>TextLayout</code>
+     * defined by {@code TextLayout}
      * so record the needed information.
      */
     public void drawText(Graphics2D g, TextLayout textLayout) {
         mHasText = true;
         checkDrawingMode(g);

@@ -162,11 +162,11 @@
 
     }
 
     /**
      * Record information about drawing done
-     * with the supplied <code>Paint</code>.
+     * with the supplied {@code Paint}.
      */
     private void checkPaint(Paint paint) {
 
         if (paint instanceof Color) {
             if (((Color)paint).getAlpha() < 255) {

@@ -177,11 +177,11 @@
         }
     }
 
     /**
      * Record information about drawing done
-     * with the supplied <code>Composite</code>.
+     * with the supplied {@code Composite}.
      */
     private void checkAlpha(Composite composite) {
 
         if (composite instanceof AlphaComposite) {
             AlphaComposite alphaComposite = (AlphaComposite) composite;
< prev index next >