KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > awt > Transparency


1 /*
2  * @(#)Transparency.java 1.20 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.awt;
9
10 /**
11  * The <code>Transparency</code> interface defines the common transparency
12  * modes for implementing classes.
13  * @version 1.20, 12/19/03
14  */

15 public interface Transparency {
16
17     /**
18      * Represents image data that is guaranteed to be completely opaque,
19      * meaning that all pixels have an alpha value of 1.0.
20      */

21     public final static int OPAQUE = 1;
22
23     /**
24      * Represents image data that is guaranteed to be either completely
25      * opaque, with an alpha value of 1.0, or completely transparent,
26      * with an alpha value of 0.0.
27      */

28     public final static int BITMASK = 2;
29
30     /**
31      * Represents image data that contains or might contain arbitrary
32      * alpha values between and including 0.0 and 1.0.
33      */

34     public final static int TRANSLUCENT = 3;
35
36     /**
37      * Returns the type of this <code>Transparency</code>.
38      * @return the field type of this <code>Transparency</code>, which is
39      * either OPAQUE, BITMASK or TRANSLUCENT.
40      */

41     public int getTransparency();
42 }
43
Popular Tags