diff options
author | Bryce McKinlay <bryce@waitaki.otago.ac.nz> | 2002-08-09 04:26:17 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2002-08-09 05:26:17 +0100 |
commit | 7bde45b2eb84502b62e77e46d947e46dcbd333d6 (patch) | |
tree | cdf9958b411887bead2263ea8ef0bdfc8eae6319 /libjava/java/awt/Transparency.java | |
parent | 097684ce62b505168739fc98e952f92a8719a1fa (diff) | |
download | gcc-7bde45b2eb84502b62e77e46d947e46dcbd333d6.zip gcc-7bde45b2eb84502b62e77e46d947e46dcbd333d6.tar.gz gcc-7bde45b2eb84502b62e77e46d947e46dcbd333d6.tar.bz2 |
AWT/Swing merge from GNU Classpath.
From-SVN: r56147
Diffstat (limited to 'libjava/java/awt/Transparency.java')
-rw-r--r-- | libjava/java/awt/Transparency.java | 38 |
1 files changed, 24 insertions, 14 deletions
diff --git a/libjava/java/awt/Transparency.java b/libjava/java/awt/Transparency.java index 6a8aeae..fc01f58 100644 --- a/libjava/java/awt/Transparency.java +++ b/libjava/java/awt/Transparency.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2000, 2002 Free Software Foundation +/* Transparency.java -- common transparency modes in graphics + Copyright (C) 2000, 2002 Free Software Foundation This file is part of GNU Classpath. @@ -37,21 +38,30 @@ exception statement from your version. */ package java.awt; /** + * A common transparency mode for layering graphics. + * * @author Warren Levy <warrenl@cygnus.com> - * @date March 15, 2000. + * @since 1.1 + * @status updated to 1.4 */ - -/** - * Written using on-line Java Platform 1.2 API Specification, as well - * as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998). - * Status: Believed complete and correct. - */ - public interface Transparency { - public static final int OPAQUE = 1; - public static final int BITMASK = 2; - public static final int TRANSLUCENT = 3; + /** Image data which is completely opaque, for an alpha value of 1.0. */ + int OPAQUE = 1; + + /** + * Image data which is either completely opaque or transparent, for an + * exact integer alpha value. + */ + int BITMASK = 2; + + /** Image data which is translucent, for a non-integer alpha value. */ + int TRANSLUCENT = 3; - public int getTransparency(); -} + /** + * Return the transparency type. + * + * @return One of {@see #OPAQUE}, {@see #BITMASK}, or {@see #TRANSLUCENT}. + */ + int getTransparency(); +} // interface Transparency |