returns the transparency code for this gradientpaint instance . this is derived from the two color objects used in creating thisobject : if both colors are opaque , this method returns transparency #opaque , otherwise it returns transparency #translucent . concode_field_sep float y1 concode_elem_sep float x1 concode_elem_sep float y2 concode_elem_sep float x2 concode_elem_sep Color c1 concode_elem_sep boolean cyclic concode_elem_sep Color c2 concode_field_sep Color getColor2 concode_elem_sep Color getColor1 concode_elem_sep Point2D getPoint1 concode_elem_sep boolean isCyclic concode_elem_sep Point2D getPoint2 concode_elem_sep PaintContext createContext
int function ( ) { if ( c1 . getAlpha ( ) == 255 && c2 . getAlpha ( ) == 255 ) return Transparency . OPAQUE ; else return Transparency . TRANSLUCENT ; }