APIdia Launch Partner
Top Description Fields Constructors Methods
javax.swing

pack-priv Class SwingPaintEventDispatcher

extends PaintEventDispatcher
Class Inheritance
Imports
java.awt.Component, .Container, .Rectangle, java.awt.event.PaintEvent, sun.awt.SunToolkit, sun.awt.event.IgnorePaintEvent

Swing's PaintEventDispatcher. If the component specified by the PaintEvent is a top level Swing component (JFrame, JWindow, JDialog), this will forward the request to the RepaintManager for eventual painting.

Field Summary

Modifier and TypeField and Description
private static final boolean
private static final boolean

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public PaintEvent
createPaintEvent(Component component, int x, int y, int w, int h)

Overrides sun.awt.PaintEventDispatcher.createPaintEvent.

Creates and returns the PaintEvent that should be dispatched for the specified component.

public boolean
queueSurfaceDataReplacing(Component c, Runnable r)

Overrides sun.awt.PaintEventDispatcher.queueSurfaceDataReplacing.

This method is invoked from the toolkit thread when the surface data of the component needs to be replaced.

public boolean
shouldDoNativeBackgroundErase(Component c)

Overrides sun.awt.PaintEventDispatcher.shouldDoNativeBackgroundErase.

Returns true if a native background erase should be done for the specified Component.

Inherited from sun.awt.PaintEventDispatcher:
getPaintEventDispatchersetPaintEventDispatcher

Field Detail

ERASE_BACKGROUNDback to summary
private static final boolean ERASE_BACKGROUND
SHOW_FROM_DOUBLE_BUFFERback to summary
private static final boolean SHOW_FROM_DOUBLE_BUFFER

Constructor Detail

SwingPaintEventDispatcherback to summary
pack-priv SwingPaintEventDispatcher()

Method Detail

createPaintEventback to summary
public PaintEvent createPaintEvent(Component component, int x, int y, int w, int h)

Overrides sun.awt.PaintEventDispatcher.createPaintEvent.

Doc from sun.awt.PaintEventDispatcher.createPaintEvent.

Creates and returns the PaintEvent that should be dispatched for the specified component. If this returns null no PaintEvent is dispatched.

Warning

This is invoked from the native thread, be careful what methods you end up invoking here.

queueSurfaceDataReplacingback to summary
public boolean queueSurfaceDataReplacing(Component c, Runnable r)

Overrides sun.awt.PaintEventDispatcher.queueSurfaceDataReplacing.

Doc from sun.awt.PaintEventDispatcher.queueSurfaceDataReplacing.

This method is invoked from the toolkit thread when the surface data of the component needs to be replaced. The method run() of the Runnable argument performs surface data replacing, run() should be invoked on the EDT. Returns true if the Runnable has been enqueued to be invoked on the EDT. (Fix 6255371.)

shouldDoNativeBackgroundEraseback to summary
public boolean shouldDoNativeBackgroundErase(Component c)

Overrides sun.awt.PaintEventDispatcher.shouldDoNativeBackgroundErase.

Doc from sun.awt.PaintEventDispatcher.shouldDoNativeBackgroundErase.

Returns true if a native background erase should be done for the specified Component.