< prev index next >

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

Print this page




  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.awt;
  27 
  28 import java.util.EventListener;
  29 
  30 /**
  31  * The listener interface for receiving display change events.
  32  * The class that is interested in processing a display change event
  33  * implements this interface (and all the methods it
  34  * contains).
  35  *
  36  * For Motif, this interface is only used for dragging windows between Xinerama
  37  * screens.
  38  *
  39  * For win32, the listener object created from that class is then registered
  40  * with the WToolkit object using its <code>addDisplayChangeListener</code>
  41  * method. When the display resolution is changed (which occurs,
  42  * in Windows, either by the user changing the properties of the
  43  * display through the control panel or other utility or by
  44  * some other application which has gotten fullscreen-exclusive
  45  * control of the display), the listener is notified through its
  46  * displayChanged() or paletteChanged() methods.
  47  *
  48  * @author Chet Haase
  49  * @author Brent Christian
  50  * @since 1.4
  51  */
  52 public interface DisplayChangedListener extends EventListener {
  53     /**
  54      * Invoked when the display mode has changed.
  55      */
  56     public void displayChanged();
  57 
  58     /**
  59      * Invoked when the palette has changed.
  60      */


  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.awt;
  27 
  28 import java.util.EventListener;
  29 
  30 /**
  31  * The listener interface for receiving display change events.
  32  * The class that is interested in processing a display change event
  33  * implements this interface (and all the methods it
  34  * contains).
  35  *
  36  * For Motif, this interface is only used for dragging windows between Xinerama
  37  * screens.
  38  *
  39  * For win32, the listener object created from that class is then registered
  40  * with the WToolkit object using its {@code addDisplayChangeListener}
  41  * method. When the display resolution is changed (which occurs,
  42  * in Windows, either by the user changing the properties of the
  43  * display through the control panel or other utility or by
  44  * some other application which has gotten fullscreen-exclusive
  45  * control of the display), the listener is notified through its
  46  * displayChanged() or paletteChanged() methods.
  47  *
  48  * @author Chet Haase
  49  * @author Brent Christian
  50  * @since 1.4
  51  */
  52 public interface DisplayChangedListener extends EventListener {
  53     /**
  54      * Invoked when the display mode has changed.
  55      */
  56     public void displayChanged();
  57 
  58     /**
  59      * Invoked when the palette has changed.
  60      */
< prev index next >