Top Description Fields Constructors Methods
sun.awt

public Class SunDisplayChanger

extends Object
Class Inheritance
Imports
java.awt.IllegalComponentStateException, java.util.Collections, .Iterator, .HashMap, .HashSet, .Map, .Set, .WeakHashMap, sun.util.logging.PlatformLogger

This class is used to aid in keeping track of DisplayChangedListeners and notifying them when a display change has taken place. DisplayChangedListeners are notified when the display's bit depth is changed, or when a top-level window has been dragged onto another screen. It is safe for a DisplayChangedListener to be added while the list is being iterated. The displayChanged() call is propagated after some occurrence (either due to user action or some other application) causes the display mode (e.g., depth or resolution) to change. All heavyweight components need to know when this happens because they need to create new surfaceData objects based on the new depth. displayChanged() is also called on Windows when they are moved from one screen to another on a system equipped with multiple displays.

Field Summary

Modifier and TypeField and Description
private Map<DisplayChangedListener, Void>
private static final PlatformLogger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

listenersback to summary
private Map<DisplayChangedListener, Void> listeners
logback to summary
private static final PlatformLogger log

Constructor Detail

SunDisplayChangerback to summary
public SunDisplayChanger()

Method Detail

addback to summary
public void add(DisplayChangedListener theListener)
notifyListenersback to summary
public void notifyListeners()
notifyPaletteChangedback to summary
public void notifyPaletteChanged()
removeback to summary
public void remove(DisplayChangedListener theListener)