< prev index next >

src/java.desktop/share/classes/sun/awt/PaintEventDispatcher.java

Print this page

        

*** 38,48 **** * Singleton dispatcher. */ private static PaintEventDispatcher dispatcher; /** ! * Sets the current <code>PaintEventDispatcher</code>. * * @param dispatcher PaintEventDispatcher */ public static void setPaintEventDispatcher( PaintEventDispatcher dispatcher) { --- 38,48 ---- * Singleton dispatcher. */ private static PaintEventDispatcher dispatcher; /** ! * Sets the current {@code PaintEventDispatcher}. * * @param dispatcher PaintEventDispatcher */ public static void setPaintEventDispatcher( PaintEventDispatcher dispatcher) {
*** 50,60 **** PaintEventDispatcher.dispatcher = dispatcher; } } /** ! * Returns the currently active <code>PaintEventDispatcher</code>. This * will never return null. * * @return PaintEventDispatcher */ public static PaintEventDispatcher getPaintEventDispatcher() { --- 50,60 ---- PaintEventDispatcher.dispatcher = dispatcher; } } /** ! * Returns the currently active {@code PaintEventDispatcher}. This * will never return null. * * @return PaintEventDispatcher */ public static PaintEventDispatcher getPaintEventDispatcher() {
*** 65,77 **** return dispatcher; } } /** ! * Creates and returns the <code>PaintEvent</code> that should be * dispatched for the specified component. If this returns null ! * no <code>PaintEvent</code> is dispatched. * <p> * <b>WARNING:</b> This is invoked from the native thread, be careful * what methods you end up invoking here. */ public PaintEvent createPaintEvent(Component target, int x, int y, int w, --- 65,77 ---- return dispatcher; } } /** ! * Creates and returns the {@code PaintEvent} that should be * dispatched for the specified component. If this returns null ! * no {@code PaintEvent} is dispatched. * <p> * <b>WARNING:</b> This is invoked from the native thread, be careful * what methods you end up invoking here. */ public PaintEvent createPaintEvent(Component target, int x, int y, int w,
< prev index next >