1. /*
  2. * @(#)Transparency.java 1.17 00/02/02
  3. *
  4. * Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.awt;
  11. /**
  12. * The <code>Transparency</code> interface defines the common transparency
  13. * modes for implementing classes.
  14. * @version 1.17, 02/02/00
  15. */
  16. public interface Transparency {
  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. * Represents image data that is guaranteed to be either completely
  24. * opaque, with an alpha value of 1.0, or completely transparent,
  25. * with an alpha value of 0.0.
  26. */
  27. public final static int BITMASK = 2;
  28. /**
  29. * Represents image data that contains or might contain arbitrary
  30. * alpha values between and including 0.0 and 1.0.
  31. */
  32. public final static int TRANSLUCENT = 3;
  33. /**
  34. * Returns the type of this <code>Transparency</code>.
  35. * @return the field type of this <code>Transparency</code>, which is
  36. * either OPAQUE, BITMASK or TRANSLUCENT.
  37. */
  38. public int getTransparency();
  39. }