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. package java.awt;
  8. /**
  9. * The <code>Transparency</code> interface defines the common transparency
  10. * modes for implementing classes.
  11. * @version 1.20, 12/19/03
  12. */
  13. public interface Transparency {
  14. /**
  15. * Represents image data that is guaranteed to be completely opaque,
  16. * meaning that all pixels have an alpha value of 1.0.
  17. */
  18. public final static int OPAQUE = 1;
  19. /**
  20. * Represents image data that is guaranteed to be either completely
  21. * opaque, with an alpha value of 1.0, or completely transparent,
  22. * with an alpha value of 0.0.
  23. */
  24. public final static int BITMASK = 2;
  25. /**
  26. * Represents image data that contains or might contain arbitrary
  27. * alpha values between and including 0.0 and 1.0.
  28. */
  29. public final static int TRANSLUCENT = 3;
  30. /**
  31. * Returns the type of this <code>Transparency</code>.
  32. * @return the field type of this <code>Transparency</code>, which is
  33. * either OPAQUE, BITMASK or TRANSLUCENT.
  34. */
  35. public int getTransparency();
  36. }