question: public static CompositeType forAlphaComposite ( AlphaComposite ac ) { switch ( ac . getRule ( ) ) { case AlphaComposite . CLEAR : return Clear ; case AlphaComposite . SRC : if ( ac . getAlpha ( ) >= 1.0f ) { return SrcNoEa ; } else { return Src ; } case AlphaComposite . DST : return Dst ; case AlphaComposite . SRC_OVER : if ( ac . getAlpha ( ) >= 1.0f ) { return SrcOverNoEa ; } else { return SrcOver ; } case AlphaComposite . DST_OVER : return DstOver ; case AlphaComposite . SRC_IN : return SrcIn ; case AlphaComposite . DST_IN : return DstIn ; case AlphaComposite . SRC_OUT : return SrcOut ; case AlphaComposite . DST_OUT : return DstOut ; case AlphaComposite . SRC_ATOP : return SrcAtop ; case AlphaComposite . DST_ATOP : return DstAtop ; case AlphaComposite . XOR : return AlphaXor ; default : throw new InternalError ( "Unrecognized alpha rule" ) ; } }
target:  Return a CompositeType object for the specified AlphaComposite rule.