Java 类sun.awt.DisplayChangedListener 实例源码

项目:OpenJSharp    文件:JLightweightFrame.java   
@Override
public void notifyDisplayChanged(final int scaleFactor) {
    if (scaleFactor != this.scaleFactor) {
        if (!copyBufferEnabled) content.paintLock();
        try {
            if (bbImage != null) {
                resizeBuffer(getWidth(), getHeight(), scaleFactor);
            }
        } finally {
            if (!copyBufferEnabled) content.paintUnlock();
        }
        this.scaleFactor = scaleFactor;
    }
    if (getPeer() instanceof DisplayChangedListener) {
        ((DisplayChangedListener)getPeer()).displayChanged();
    }
    repaint();
}
项目:jdk8u-jdk    文件:JLightweightFrame.java   
@Override
public void notifyDisplayChanged(final int scaleFactor) {
    if (scaleFactor != this.scaleFactor) {
        if (!copyBufferEnabled) content.paintLock();
        try {
            if (bbImage != null) {
                resizeBuffer(getWidth(), getHeight(), scaleFactor);
            }
        } finally {
            if (!copyBufferEnabled) content.paintUnlock();
        }
        this.scaleFactor = scaleFactor;
    }
    if (getPeer() instanceof DisplayChangedListener) {
        ((DisplayChangedListener)getPeer()).displayChanged();
    }
    repaint();
}
项目:openjdk9    文件:JLightweightFrame.java   
@Override
public void notifyDisplayChanged(final int scaleFactor) {
    if (scaleFactor != this.scaleFactor) {
        if (!copyBufferEnabled) content.paintLock();
        try {
            if (bbImage != null) {
                resizeBuffer(getWidth(), getHeight(), scaleFactor);
            }
        } finally {
            if (!copyBufferEnabled) content.paintUnlock();
        }
        this.scaleFactor = scaleFactor;
    }
    final Object peer = AWTAccessor.getComponentAccessor().getPeer(this);
    if (peer instanceof DisplayChangedListener) {
        ((DisplayChangedListener) peer).displayChanged();
    }
    repaint();
}
项目:jdk8u_jdk    文件:JLightweightFrame.java   
@Override
public void notifyDisplayChanged(final int scaleFactor) {
    if (scaleFactor != this.scaleFactor) {
        if (!copyBufferEnabled) content.paintLock();
        try {
            if (bbImage != null) {
                resizeBuffer(getWidth(), getHeight(), scaleFactor);
            }
        } finally {
            if (!copyBufferEnabled) content.paintUnlock();
        }
        this.scaleFactor = scaleFactor;
    }
    if (getPeer() instanceof DisplayChangedListener) {
        ((DisplayChangedListener)getPeer()).displayChanged();
    }
    repaint();
}
项目:lookaside_java-1.8.0-openjdk    文件:JLightweightFrame.java   
@Override
public void notifyDisplayChanged(final int scaleFactor) {
    if (scaleFactor != this.scaleFactor) {
        if (!copyBufferEnabled) content.paintLock();
        try {
            if (bbImage != null) {
                resizeBuffer(getWidth(), getHeight(), scaleFactor);
            }
        } finally {
            if (!copyBufferEnabled) content.paintUnlock();
        }
        this.scaleFactor = scaleFactor;
    }
    if (getPeer() instanceof DisplayChangedListener) {
        ((DisplayChangedListener)getPeer()).displayChanged();
    }
    repaint();
}
项目:infobip-open-jdk-8    文件:JLightweightFrame.java   
@Override
public void notifyDisplayChanged(final int scaleFactor) {
    if (scaleFactor != this.scaleFactor) {
        if (!copyBufferEnabled) content.paintLock();
        try {
            if (bbImage != null) {
                resizeBuffer(getWidth(), getHeight(), scaleFactor);
            }
        } finally {
            if (!copyBufferEnabled) content.paintUnlock();
        }
        this.scaleFactor = scaleFactor;
    }
    if (getPeer() instanceof DisplayChangedListener) {
        ((DisplayChangedListener)getPeer()).displayChanged();
    }
    repaint();
}
项目:jdk8u-dev-jdk    文件:JLightweightFrame.java   
@Override
public void notifyDisplayChanged(final int scaleFactor) {
    if (scaleFactor != this.scaleFactor) {
        if (!copyBufferEnabled) content.paintLock();
        try {
            if (bbImage != null) {
                resizeBuffer(getWidth(), getHeight(), scaleFactor);
            }
        } finally {
            if (!copyBufferEnabled) content.paintUnlock();
        }
        this.scaleFactor = scaleFactor;
    }
    if (getPeer() instanceof DisplayChangedListener) {
        ((DisplayChangedListener)getPeer()).displayChanged();
    }
    repaint();
}
项目:OpenJSharp    文件:SunGraphicsEnvironment.java   
/**
 * From the DisplayChangedListener interface; called
 * when the display mode has been changed.
 */
public void displayChanged() {
    // notify screens in device array to do display update stuff
    for (GraphicsDevice gd : getScreenDevices()) {
        if (gd instanceof DisplayChangedListener) {
            ((DisplayChangedListener) gd).displayChanged();
        }
    }

    // notify SunDisplayChanger list (e.g. VolatileSurfaceManagers and
    // SurfaceDataProxies) about the display change event
    displayChanger.notifyListeners();
}
项目:OpenJSharp    文件:JLightweightFrame.java   
@Override
public void addNotify() {
    super.addNotify();
    if (getPeer() instanceof DisplayChangedListener) {
        ((DisplayChangedListener)getPeer()).displayChanged();
    }
}
项目:jdk8u-jdk    文件:SunGraphicsEnvironment.java   
/**
 * From the DisplayChangedListener interface; called
 * when the display mode has been changed.
 */
public void displayChanged() {
    // notify screens in device array to do display update stuff
    for (GraphicsDevice gd : getScreenDevices()) {
        if (gd instanceof DisplayChangedListener) {
            ((DisplayChangedListener) gd).displayChanged();
        }
    }

    // notify SunDisplayChanger list (e.g. VolatileSurfaceManagers and
    // SurfaceDataProxies) about the display change event
    displayChanger.notifyListeners();
}
项目:jdk8u-jdk    文件:JLightweightFrame.java   
@Override
public void addNotify() {
    super.addNotify();
    if (getPeer() instanceof DisplayChangedListener) {
        ((DisplayChangedListener)getPeer()).displayChanged();
    }
}
项目:openjdk-jdk10    文件:SunGraphicsEnvironment.java   
/**
 * From the DisplayChangedListener interface; called
 * when the display mode has been changed.
 */
public void displayChanged() {
    // notify screens in device array to do display update stuff
    for (GraphicsDevice gd : getScreenDevices()) {
        if (gd instanceof DisplayChangedListener) {
            ((DisplayChangedListener) gd).displayChanged();
        }
    }

    // notify SunDisplayChanger list (e.g. VolatileSurfaceManagers and
    // SurfaceDataProxies) about the display change event
    displayChanger.notifyListeners();
}
项目:openjdk-jdk10    文件:JLightweightFrame.java   
@Override
public void notifyDisplayChanged(final double scaleFactorX,
                                                final double scaleFactorY) {
    if (Double.compare(scaleFactorX, this.scaleFactorX) != 0 ||
                     Double.compare(scaleFactorY, this.scaleFactorY) != 0) {
        if (!copyBufferEnabled) content.paintLock();
        try {
            if (bbImage != null) {
                resizeBuffer(getWidth(), getHeight(), scaleFactorX,
                                                              scaleFactorY);
            }
        } finally {
            if (!copyBufferEnabled) content.paintUnlock();
        }
        this.scaleFactorX = scaleFactorX;
        this.scaleFactorY = scaleFactorY;

        if(isVisible()) {
            final Object peer =
                    AWTAccessor.getComponentAccessor().getPeer(this);
            if (peer instanceof DisplayChangedListener) {
                ((DisplayChangedListener) peer).displayChanged();
            }
            repaint();
        }
    }
}
项目:openjdk-jdk10    文件:JLightweightFrame.java   
@Override
public void addNotify() {
    super.addNotify();
    final Object peer = AWTAccessor.getComponentAccessor().getPeer(this);
    if (peer instanceof DisplayChangedListener) {
        ((DisplayChangedListener) peer).displayChanged();
    }
}
项目:openjdk9    文件:SunGraphicsEnvironment.java   
/**
 * From the DisplayChangedListener interface; called
 * when the display mode has been changed.
 */
public void displayChanged() {
    // notify screens in device array to do display update stuff
    for (GraphicsDevice gd : getScreenDevices()) {
        if (gd instanceof DisplayChangedListener) {
            ((DisplayChangedListener) gd).displayChanged();
        }
    }

    // notify SunDisplayChanger list (e.g. VolatileSurfaceManagers and
    // SurfaceDataProxies) about the display change event
    displayChanger.notifyListeners();
}
项目:openjdk9    文件:JLightweightFrame.java   
@Override
public void addNotify() {
    super.addNotify();
    final Object peer = AWTAccessor.getComponentAccessor().getPeer(this);
    if (peer instanceof DisplayChangedListener) {
        ((DisplayChangedListener) peer).displayChanged();
    }
}
项目:jdk8u_jdk    文件:SunGraphicsEnvironment.java   
/**
 * From the DisplayChangedListener interface; called
 * when the display mode has been changed.
 */
public void displayChanged() {
    // notify screens in device array to do display update stuff
    for (GraphicsDevice gd : getScreenDevices()) {
        if (gd instanceof DisplayChangedListener) {
            ((DisplayChangedListener) gd).displayChanged();
        }
    }

    // notify SunDisplayChanger list (e.g. VolatileSurfaceManagers and
    // SurfaceDataProxies) about the display change event
    displayChanger.notifyListeners();
}
项目:jdk8u_jdk    文件:JLightweightFrame.java   
@Override
public void addNotify() {
    super.addNotify();
    if (getPeer() instanceof DisplayChangedListener) {
        ((DisplayChangedListener)getPeer()).displayChanged();
    }
}
项目:lookaside_java-1.8.0-openjdk    文件:SunGraphicsEnvironment.java   
/**
 * From the DisplayChangedListener interface; called
 * when the display mode has been changed.
 */
public void displayChanged() {
    // notify screens in device array to do display update stuff
    for (GraphicsDevice gd : getScreenDevices()) {
        if (gd instanceof DisplayChangedListener) {
            ((DisplayChangedListener) gd).displayChanged();
        }
    }

    // notify SunDisplayChanger list (e.g. VolatileSurfaceManagers and
    // SurfaceDataProxies) about the display change event
    displayChanger.notifyListeners();
}
项目:lookaside_java-1.8.0-openjdk    文件:JLightweightFrame.java   
@Override
public void addNotify() {
    super.addNotify();
    if (getPeer() instanceof DisplayChangedListener) {
        ((DisplayChangedListener)getPeer()).displayChanged();
    }
}
项目:infobip-open-jdk-8    文件:SunGraphicsEnvironment.java   
/**
 * From the DisplayChangedListener interface; called
 * when the display mode has been changed.
 */
public void displayChanged() {
    // notify screens in device array to do display update stuff
    for (GraphicsDevice gd : getScreenDevices()) {
        if (gd instanceof DisplayChangedListener) {
            ((DisplayChangedListener) gd).displayChanged();
        }
    }

    // notify SunDisplayChanger list (e.g. VolatileSurfaceManagers and
    // SurfaceDataProxies) about the display change event
    displayChanger.notifyListeners();
}
项目:infobip-open-jdk-8    文件:JLightweightFrame.java   
@Override
public void addNotify() {
    super.addNotify();
    if (getPeer() instanceof DisplayChangedListener) {
        ((DisplayChangedListener)getPeer()).displayChanged();
    }
}
项目:jdk8u-dev-jdk    文件:SunGraphicsEnvironment.java   
/**
 * From the DisplayChangedListener interface; called
 * when the display mode has been changed.
 */
public void displayChanged() {
    // notify screens in device array to do display update stuff
    for (GraphicsDevice gd : getScreenDevices()) {
        if (gd instanceof DisplayChangedListener) {
            ((DisplayChangedListener) gd).displayChanged();
        }
    }

    // notify SunDisplayChanger list (e.g. VolatileSurfaceManagers and
    // SurfaceDataProxies) about the display change event
    displayChanger.notifyListeners();
}
项目:jdk8u-dev-jdk    文件:JLightweightFrame.java   
@Override
public void addNotify() {
    super.addNotify();
    if (getPeer() instanceof DisplayChangedListener) {
        ((DisplayChangedListener)getPeer()).displayChanged();
    }
}
项目:jdk7-jdk    文件:SunGraphicsEnvironment.java   
/**
 * From the DisplayChangedListener interface; called
 * when the display mode has been changed.
 */
public void displayChanged() {
    // notify screens in device array to do display update stuff
    for (GraphicsDevice gd : getScreenDevices()) {
        if (gd instanceof DisplayChangedListener) {
            ((DisplayChangedListener) gd).displayChanged();
        }
    }

    // notify SunDisplayChanger list (e.g. VolatileSurfaceManagers and
    // SurfaceDataProxies) about the display change event
    displayChanger.notifyListeners();
}
项目:openjdk-source-code-learn    文件:SunGraphicsEnvironment.java   
/**
 * From the DisplayChangedListener interface; called
 * when the display mode has been changed.
 */
public void displayChanged() {
    // notify screens in device array to do display update stuff
    for (GraphicsDevice gd : getScreenDevices()) {
        if (gd instanceof DisplayChangedListener) {
            ((DisplayChangedListener) gd).displayChanged();
        }
    }

    // notify SunDisplayChanger list (e.g. VolatileSurfaceManagers and
    // SurfaceDataProxies) about the display change event
    displayChanger.notifyListeners();
}
项目:OLD-OpenJDK8    文件:SunGraphicsEnvironment.java   
/**
 * From the DisplayChangedListener interface; called
 * when the display mode has been changed.
 */
public void displayChanged() {
    // notify screens in device array to do display update stuff
    for (GraphicsDevice gd : getScreenDevices()) {
        if (gd instanceof DisplayChangedListener) {
            ((DisplayChangedListener) gd).displayChanged();
        }
    }

    // notify SunDisplayChanger list (e.g. VolatileSurfaceManagers and
    // SurfaceDataProxies) about the display change event
    displayChanger.notifyListeners();
}
项目:openjdk-jdk7u-jdk    文件:SunGraphicsEnvironment.java   
/**
 * From the DisplayChangedListener interface; called
 * when the display mode has been changed.
 */
public void displayChanged() {
    // notify screens in device array to do display update stuff
    for (GraphicsDevice gd : getScreenDevices()) {
        if (gd instanceof DisplayChangedListener) {
            ((DisplayChangedListener) gd).displayChanged();
        }
    }

    // notify SunDisplayChanger list (e.g. VolatileSurfaceManagers and
    // SurfaceDataProxies) about the display change event
    displayChanger.notifyListeners();
}
项目:openjdk-icedtea7    文件:SunGraphicsEnvironment.java   
/**
 * From the DisplayChangedListener interface; called
 * when the display mode has been changed.
 */
public void displayChanged() {
    // notify screens in device array to do display update stuff
    for (GraphicsDevice gd : getScreenDevices()) {
        if (gd instanceof DisplayChangedListener) {
            ((DisplayChangedListener) gd).displayChanged();
        }
    }

    // notify SunDisplayChanger list (e.g. VolatileSurfaceManagers and
    // SurfaceDataProxies) about the display change event
    displayChanger.notifyListeners();
}
项目:OpenJSharp    文件:SunGraphicsEnvironment.java   
/**
 * Remove a DisplayChangeListener from Win32GraphicsEnvironment
 */
public void removeDisplayChangedListener(DisplayChangedListener client) {
    displayChanger.remove(client);
}
项目:OpenJSharp    文件:SunGraphicsEnvironment.java   
/**
 * Remove a DisplayChangeListener from Win32GraphicsEnvironment
 */
public void removeDisplayChangedListener(DisplayChangedListener client) {
    displayChanger.remove(client);
}
项目:jdk8u-jdk    文件:SunGraphicsEnvironment.java   
/**
 * Remove a DisplayChangeListener from Win32GraphicsEnvironment
 */
public void removeDisplayChangedListener(DisplayChangedListener client) {
    displayChanger.remove(client);
}
项目:openjdk-jdk10    文件:SunGraphicsEnvironment.java   
/**
 * Remove a DisplayChangeListener from Win32GraphicsEnvironment
 */
public void removeDisplayChangedListener(DisplayChangedListener client) {
    displayChanger.remove(client);
}
项目:openjdk9    文件:SunGraphicsEnvironment.java   
/**
 * Remove a DisplayChangeListener from Win32GraphicsEnvironment
 */
public void removeDisplayChangedListener(DisplayChangedListener client) {
    displayChanger.remove(client);
}
项目:jdk8u_jdk    文件:SunGraphicsEnvironment.java   
/**
 * Remove a DisplayChangeListener from Win32GraphicsEnvironment
 */
public void removeDisplayChangedListener(DisplayChangedListener client) {
    displayChanger.remove(client);
}
项目:lookaside_java-1.8.0-openjdk    文件:SunGraphicsEnvironment.java   
/**
 * Remove a DisplayChangeListener from Win32GraphicsEnvironment
 */
public void removeDisplayChangedListener(DisplayChangedListener client) {
    displayChanger.remove(client);
}
项目:infobip-open-jdk-8    文件:SunGraphicsEnvironment.java   
/**
 * Remove a DisplayChangeListener from Win32GraphicsEnvironment
 */
public void removeDisplayChangedListener(DisplayChangedListener client) {
    displayChanger.remove(client);
}
项目:jdk8u-dev-jdk    文件:SunGraphicsEnvironment.java   
/**
 * Remove a DisplayChangeListener from Win32GraphicsEnvironment
 */
public void removeDisplayChangedListener(DisplayChangedListener client) {
    displayChanger.remove(client);
}
项目:jdk7-jdk    文件:SunGraphicsEnvironment.java   
/**
 * Remove a DisplayChangeListener from Win32GraphicsEnvironment
 */
public void removeDisplayChangedListener(DisplayChangedListener client) {
    displayChanger.remove(client);
}
项目:openjdk-source-code-learn    文件:SunGraphicsEnvironment.java   
/**
 * Remove a DisplayChangeListener from Win32GraphicsEnvironment
 */
public void removeDisplayChangedListener(DisplayChangedListener client) {
    displayChanger.remove(client);
}