diff options
author | fitzsim <fitzsim@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-04 18:25:37 +0000 |
---|---|---|
committer | fitzsim <fitzsim@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-04 18:25:37 +0000 |
commit | 3de82c9b8a71a8ad93c52bbf3f5f6ed367b50c22 (patch) | |
tree | 3a78fd006f3157c361e604e210d53b790a16a899 /libjava/java/awt/ImageCapabilities.java | |
parent | 574cb8776fff4897332f68b827ec00b4a6d7cf93 (diff) | |
download | ppe42-gcc-3de82c9b8a71a8ad93c52bbf3f5f6ed367b50c22.tar.gz ppe42-gcc-3de82c9b8a71a8ad93c52bbf3f5f6ed367b50c22.zip |
2005-05-04 Thomas Fitzsimmons <fitzsim@redhat.com>
* java/awt/ImageCapabilities.java: Document.
* java/awt/image/VolatileImage.java: Unindent copyright header.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99224 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/awt/ImageCapabilities.java')
-rw-r--r-- | libjava/java/awt/ImageCapabilities.java | 47 |
1 files changed, 42 insertions, 5 deletions
diff --git a/libjava/java/awt/ImageCapabilities.java b/libjava/java/awt/ImageCapabilities.java index 4d274e2021e..df802c62b31 100644 --- a/libjava/java/awt/ImageCapabilities.java +++ b/libjava/java/awt/ImageCapabilities.java @@ -1,5 +1,5 @@ -/* ImageCapabilities.java -- - Copyright (C) 2002 Free Software Foundation, Inc. +/* ImageCapabilities.java -- the capabilities of an image buffer + Copyright (C) 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -39,23 +39,60 @@ exception statement from your version. */ package java.awt; /** - * STUBS ONLY + * This class represents the capabilities of an image buffer. An + * image buffer may be backed by accelerated graphics resources. + * Those resources may or may not be volatile. This class is used to + * describe these image buffer characteristics. */ public class ImageCapabilities implements Cloneable { + /** + * Whether or not this the image buffer uses accelerated graphics + * resources. + */ private final boolean accelerated; + + /** + * Create a new image capability descriptor. + * + * @param accelerated true if the image buffer uses accelerated + * graphics resources + */ public ImageCapabilities(boolean accelerated) { this.accelerated = accelerated; } + + /** + * Returns whether or not the image buffer uses accelerated graphics + * resources. + * + * @return true if the image buffer uses accelerated graphics + * resources; false otherwise + */ public boolean isAccelerated() { return accelerated; } + + /** + * Returns whether or not the image buffer's resources are volatile, + * meaning that they can be reclaimed by the graphics system at any + * time. + * + * @return true if the image buffer's resources are volatile; false + * otherwise + */ public boolean isTrueVolatile() { return true; } + + /** + * Clone this image capability descriptor. + * + * @return a clone of this image capability descriptor + */ public Object clone() { try @@ -64,7 +101,7 @@ public class ImageCapabilities implements Cloneable } catch (CloneNotSupportedException e) { - throw (Error) new InternalError().initCause(e); // Impossible + throw (Error) new InternalError().initCause(e); } } -} // class ImageCapabilities +} |