home *** CD-ROM | disk | FTP | other *** search
/ Java 1.2 How-To / JavaHowTo.iso / 3rdParty / jbuilder / unsupported / JDK1.2beta3 / SOURCE / SRC.ZIP / java / awt / Transparency.java < prev    next >
Encoding:
Java Source  |  1998-03-20  |  1.4 KB  |  50 lines

  1. /*
  2.  * @(#)Transparency.java    1.10 98/03/18
  3.  *
  4.  * Copyright 1997 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  *
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.awt;
  16.  
  17. /**
  18.  * This interface defines the common transparency modes for implementing
  19.  * classes.
  20.  * @version 10 Feb 1997
  21.  */
  22. public interface Transparency {
  23.  
  24.     /**
  25.      * The transparency object represents image data that is
  26.      * guaranteed to be completely opaque (all pixels have
  27.      * an alpha value of 1.0).
  28.      */
  29.     public final static int OPAQUE            = 1;
  30.  
  31.     /**
  32.      * The transparency object represents image data that is
  33.      * guaranteed to be either completely opaque (alpha
  34.      * value of 1.0) or completely transparent (alpha value of
  35.      * 0.0).
  36.      */
  37.     public final static int BITMASK = 2;
  38.  
  39.     /**
  40.      * The transparency object represents image data that
  41.      * contains or may contain arbitrary alpha values.
  42.      */
  43.     public final static int TRANSLUCENT        = 3;
  44.  
  45.     /**
  46.      * Returns the transparency type.
  47.      */
  48.     public int getTransparency();
  49. }
  50.