< prev index next >

src/share/classes/java/awt/GraphicsConfiguration.java

Print this page
rev 1556 : 6794764: Translucent windows are completely repainted on every paint event, on Windows
6719382: Printing of AWT components on windows is not working
6726866: Repainting artifacts when resizing or dragging JInternalFrames in non-opaque toplevel
6683775: Painting artifacts is seen when panel is made setOpaque(false) for a translucent window
Reviewed-by: anthony, tdv, alexp


 413                 getImageCapabilities());
 414         }
 415         return defaultBufferCaps;
 416     }
 417 
 418     /**
 419      * Returns the image capabilities of this
 420      * <code>GraphicsConfiguration</code>.
 421      * @return the image capabilities of this graphics
 422      * configuration object
 423      * @since 1.4
 424      */
 425     public ImageCapabilities getImageCapabilities() {
 426         if (defaultImageCaps == null) {
 427             defaultImageCaps = new ImageCapabilities(false);
 428         }
 429         return defaultImageCaps;
 430     }
 431 
 432     /**
 433      * Returns whether this GraphicsConfiguration supports
 434      * the {@link GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 435      * PERPIXEL_TRANSLUCENT} kind of translucency.
 436      *
 437      * @param gc GraphicsConfiguration
 438      * @throws NullPointerException if the gc argument is null
 439      * @return whether the given GraphicsConfiguration supports
 440      *         the translucency effects.
 441      * @see Window#setBackground(Color)
 442      */
 443     /*public */boolean isTranslucencyCapable() {
 444         // Overridden in subclasses
 445         return false;
 446     }
 447 }


 413                 getImageCapabilities());
 414         }
 415         return defaultBufferCaps;
 416     }
 417 
 418     /**
 419      * Returns the image capabilities of this
 420      * <code>GraphicsConfiguration</code>.
 421      * @return the image capabilities of this graphics
 422      * configuration object
 423      * @since 1.4
 424      */
 425     public ImageCapabilities getImageCapabilities() {
 426         if (defaultImageCaps == null) {
 427             defaultImageCaps = new ImageCapabilities(false);
 428         }
 429         return defaultImageCaps;
 430     }
 431 
 432     /**
 433      * Returns whether this {@code GraphicsConfiguration} supports
 434      * the {@link GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 435      * PERPIXEL_TRANSLUCENT} kind of translucency.
 436      *
 437      * @param gc GraphicsConfiguration
 438      * @throws NullPointerException if the gc argument is null
 439      * @return whether the given GraphicsConfiguration supports
 440      *         the translucency effects.
 441      * @see Window#setBackground(Color)
 442      */
 443     /*public */boolean isTranslucencyCapable() {
 444         // Overridden in subclasses
 445         return false;
 446     }
 447 }
< prev index next >