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 }
|