< prev index next >

jdk/src/java.desktop/share/classes/com/sun/awt/AWTUtilities.java

Print this page




 439      * <p>
 440      * Note that the 'mixing-cutout' shape neither affects painting, nor the
 441      * mouse events handling for the given component. It is used exclusively
 442      * for the purposes of the Heavyweight/Lightweight Components Mixing
 443      * feature.
 444      *
 445      * @param component the component that needs non-default
 446      * 'mixing-cutout' shape
 447      * @param shape the new 'mixing-cutout' shape
 448      * @throws NullPointerException if the component argument is {@code null}
 449      */
 450     @Deprecated(since = "9")
 451     public static void setComponentMixingCutoutShape(Component component,
 452             Shape shape)
 453     {
 454         if (component == null) {
 455             throw new NullPointerException(
 456                     "The component argument should not be null.");
 457         }
 458 
 459         AWTAccessor.getComponentAccessor().setMixingCutoutShape(component,
 460                 shape);
 461     }
 462 }
 463 


 439      * <p>
 440      * Note that the 'mixing-cutout' shape neither affects painting, nor the
 441      * mouse events handling for the given component. It is used exclusively
 442      * for the purposes of the Heavyweight/Lightweight Components Mixing
 443      * feature.
 444      *
 445      * @param component the component that needs non-default
 446      * 'mixing-cutout' shape
 447      * @param shape the new 'mixing-cutout' shape
 448      * @throws NullPointerException if the component argument is {@code null}
 449      */
 450     @Deprecated(since = "9")
 451     public static void setComponentMixingCutoutShape(Component component,
 452             Shape shape)
 453     {
 454         if (component == null) {
 455             throw new NullPointerException(
 456                     "The component argument should not be null.");
 457         }
 458 
 459         component.setMixingCutoutShape(shape);

 460     }
 461 }
 462 
< prev index next >