1 |
/* Copyright (C) 2000, 2002 Free Software Foundation |
/* Transparency.java -- common transparency modes in graphics |
2 |
|
Copyright (C) 2000, 2002 Free Software Foundation |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
38 |
package java.awt; |
package java.awt; |
39 |
|
|
40 |
/** |
/** |
41 |
|
* A common transparency mode for layering graphics. |
42 |
|
* |
43 |
* @author Warren Levy <warrenl@cygnus.com> |
* @author Warren Levy <warrenl@cygnus.com> |
44 |
* @date March 15, 2000. |
* @since 1.1 |
45 |
|
* @status updated to 1.4 |
46 |
*/ |
*/ |
|
|
|
|
/** |
|
|
* 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. |
|
|
*/ |
|
|
|
|
47 |
public interface Transparency |
public interface Transparency |
48 |
{ |
{ |
49 |
public static final int OPAQUE = 1; |
/** Image data which is completely opaque, for an alpha value of 1.0. */ |
50 |
public static final int BITMASK = 2; |
int OPAQUE = 1; |
|
public static final int TRANSLUCENT = 3; |
|
51 |
|
|
52 |
public int getTransparency(); |
/** |
53 |
} |
* Image data which is either completely opaque or transparent, for an |
54 |
|
* exact integer alpha value. |
55 |
|
*/ |
56 |
|
int BITMASK = 2; |
57 |
|
|
58 |
|
/** Image data which is translucent, for a non-integer alpha value. */ |
59 |
|
int TRANSLUCENT = 3; |
60 |
|
|
61 |
|
/** |
62 |
|
* Return the transparency type. |
63 |
|
* |
64 |
|
* @return One of {@see #OPAQUE}, {@see #BITMASK}, or {@see #TRANSLUCENT}. |
65 |
|
*/ |
66 |
|
int getTransparency(); |
67 |
|
} // interface Transparency |