This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


java.awt
interface Transparency

All Known Subinterfaces:
Paint
All Known Implementing Classes:
BufferedImage, ColorModel, ComponentColorModel, IndexColorModel, PackedColorModel, DirectColorModel, VolatileImage

public interface Transparency

The Transparency interface defines the common transparency modes for implementing classes.


Field Summary
static int BITMASK
          Represents image data that is guaranteed to be either completely opaque, with an alpha value of 1.0, or completely transparent, with an alpha value of 0.0.
static int OPAQUE
          Represents image data that is guaranteed to be completely opaque, meaning that all pixels have an alpha value of 1.0.
static int TRANSLUCENT
          Represents image data that contains or might contain arbitrary alpha values between and including 0.0 and 1.0.
 
Method Summary
 int

          Returns the type of this Transparency.
 

Field Detail

BITMASK

public static final int BITMASK
Represents image data that is guaranteed to be either completely opaque, with an alpha value of 1.0, or completely transparent, with an alpha value of 0.0.

OPAQUE

public static final int OPAQUE
Represents image data that is guaranteed to be completely opaque, meaning that all pixels have an alpha value of 1.0.

TRANSLUCENT

public static final int TRANSLUCENT
Represents image data that contains or might contain arbitrary alpha values between and including 0.0 and 1.0.
Method Detail

getTransparency

public int getTransparency()
Returns the type of this Transparency.

Returns:
the field type of this Transparency, which is either OPAQUE, BITMASK or TRANSLUCENT.


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.