Java Code Examples for sun.awt.windows.WComponentPeer#getSurfaceData()

The following examples show how to use sun.awt.windows.WComponentPeer#getSurfaceData() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ScreenUpdateManager.java    From dragonwell8_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns a replacement SurfaceData for the invalid passed one.
 *
 * This method should be used by SurfaceData's created by
 * the ScreenUpdateManager for providing replacement surfaces.
 *
 * @param peer to which the old surface belongs
 * @param oldsd the old (invalid) surface to get replaced
 * @return a replacement surface
 * @see sun.java2d.d3d.D3DSurfaceData.D3DWindowSurfaceData#getReplacement()
 * @see sun.java2d.windows.GDIWindowSurfaceData#getReplacement()
 */
public SurfaceData getReplacementScreenSurface(WComponentPeer peer,
                                               SurfaceData oldsd)
{
    SurfaceData surfaceData = peer.getSurfaceData();
    if (surfaceData == null || surfaceData.isValid()) {
        return surfaceData;
    }
    peer.replaceSurfaceData();
    return peer.getSurfaceData();
}
 
Example 2
Source File: ScreenUpdateManager.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns a replacement SurfaceData for the invalid passed one.
 *
 * This method should be used by SurfaceData's created by
 * the ScreenUpdateManager for providing replacement surfaces.
 *
 * @param peer to which the old surface belongs
 * @param oldsd the old (invalid) surface to get replaced
 * @return a replacement surface
 * @see sun.java2d.d3d.D3DSurfaceData.D3DWindowSurfaceData#getReplacement()
 * @see sun.java2d.windows.GDIWindowSurfaceData#getReplacement()
 */
public SurfaceData getReplacementScreenSurface(WComponentPeer peer,
                                               SurfaceData oldsd)
{
    SurfaceData surfaceData = peer.getSurfaceData();
    if (surfaceData == null || surfaceData.isValid()) {
        return surfaceData;
    }
    peer.replaceSurfaceData();
    return peer.getSurfaceData();
}
 
Example 3
Source File: ScreenUpdateManager.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns a replacement SurfaceData for the invalid passed one.
 *
 * This method should be used by SurfaceData's created by
 * the ScreenUpdateManager for providing replacement surfaces.
 *
 * @param peer to which the old surface belongs
 * @param oldsd the old (invalid) surface to get replaced
 * @return a replacement surface
 * @see sun.java2d.d3d.D3DSurfaceData.D3DWindowSurfaceData#getReplacement()
 * @see sun.java2d.windows.GDIWindowSurfaceData#getReplacement()
 */
public SurfaceData getReplacementScreenSurface(WComponentPeer peer,
                                               SurfaceData oldsd)
{
    SurfaceData surfaceData = peer.getSurfaceData();
    if (surfaceData == null || surfaceData.isValid()) {
        return surfaceData;
    }
    peer.replaceSurfaceData();
    return peer.getSurfaceData();
}
 
Example 4
Source File: ScreenUpdateManager.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns a replacement SurfaceData for the invalid passed one.
 *
 * This method should be used by SurfaceData's created by
 * the ScreenUpdateManager for providing replacement surfaces.
 *
 * @param peer to which the old surface belongs
 * @param oldsd the old (invalid) surface to get replaced
 * @return a replacement surface
 * @see sun.java2d.d3d.D3DSurfaceData.D3DWindowSurfaceData#getReplacement()
 * @see sun.java2d.windows.GDIWindowSurfaceData#getReplacement()
 */
public SurfaceData getReplacementScreenSurface(WComponentPeer peer,
                                               SurfaceData oldsd)
{
    SurfaceData surfaceData = peer.getSurfaceData();
    if (surfaceData == null || surfaceData.isValid()) {
        return surfaceData;
    }
    peer.replaceSurfaceData();
    return peer.getSurfaceData();
}
 
Example 5
Source File: ScreenUpdateManager.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns a replacement SurfaceData for the invalid passed one.
 *
 * This method should be used by SurfaceData's created by
 * the ScreenUpdateManager for providing replacement surfaces.
 *
 * @param peer to which the old surface belongs
 * @param oldsd the old (invalid) surface to get replaced
 * @return a replacement surface
 * @see sun.java2d.d3d.D3DSurfaceData.D3DWindowSurfaceData#getReplacement()
 * @see sun.java2d.windows.GDIWindowSurfaceData#getReplacement()
 */
public SurfaceData getReplacementScreenSurface(WComponentPeer peer,
                                               SurfaceData oldsd)
{
    SurfaceData surfaceData = peer.getSurfaceData();
    if (surfaceData == null || surfaceData.isValid()) {
        return surfaceData;
    }
    peer.replaceSurfaceData();
    return peer.getSurfaceData();
}
 
Example 6
Source File: ScreenUpdateManager.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns a replacement SurfaceData for the invalid passed one.
 *
 * This method should be used by SurfaceData's created by
 * the ScreenUpdateManager for providing replacement surfaces.
 *
 * @param peer to which the old surface belongs
 * @param oldsd the old (invalid) surface to get replaced
 * @return a replacement surface
 * @see sun.java2d.d3d.D3DSurfaceData.D3DWindowSurfaceData#getReplacement()
 * @see sun.java2d.windows.GDIWindowSurfaceData#getReplacement()
 */
public SurfaceData getReplacementScreenSurface(WComponentPeer peer,
                                               SurfaceData oldsd)
{
    SurfaceData surfaceData = peer.getSurfaceData();
    if (surfaceData == null || surfaceData.isValid()) {
        return surfaceData;
    }
    peer.replaceSurfaceData();
    return peer.getSurfaceData();
}
 
Example 7
Source File: ScreenUpdateManager.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns a replacement SurfaceData for the invalid passed one.
 *
 * This method should be used by SurfaceData's created by
 * the ScreenUpdateManager for providing replacement surfaces.
 *
 * @param peer to which the old surface belongs
 * @param oldsd the old (invalid) surface to get replaced
 * @return a replacement surface
 * @see sun.java2d.d3d.D3DSurfaceData.D3DWindowSurfaceData#getReplacement()
 * @see sun.java2d.windows.GDIWindowSurfaceData#getReplacement()
 */
public SurfaceData getReplacementScreenSurface(WComponentPeer peer,
                                               SurfaceData oldsd)
{
    SurfaceData surfaceData = peer.getSurfaceData();
    if (surfaceData == null || surfaceData.isValid()) {
        return surfaceData;
    }
    peer.replaceSurfaceData();
    return peer.getSurfaceData();
}
 
Example 8
Source File: ScreenUpdateManager.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns a replacement SurfaceData for the invalid passed one.
 *
 * This method should be used by SurfaceData's created by
 * the ScreenUpdateManager for providing replacement surfaces.
 *
 * @param peer to which the old surface belongs
 * @param oldsd the old (invalid) surface to get replaced
 * @return a replacement surface
 * @see sun.java2d.d3d.D3DSurfaceData.D3DWindowSurfaceData#getReplacement()
 * @see sun.java2d.windows.GDIWindowSurfaceData#getReplacement()
 */
public SurfaceData getReplacementScreenSurface(WComponentPeer peer,
                                               SurfaceData oldsd)
{
    SurfaceData surfaceData = peer.getSurfaceData();
    if (surfaceData == null || surfaceData.isValid()) {
        return surfaceData;
    }
    peer.replaceSurfaceData();
    return peer.getSurfaceData();
}
 
Example 9
Source File: ScreenUpdateManager.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns a replacement SurfaceData for the invalid passed one.
 *
 * This method should be used by SurfaceData's created by
 * the ScreenUpdateManager for providing replacement surfaces.
 *
 * @param peer to which the old surface belongs
 * @param oldsd the old (invalid) surface to get replaced
 * @return a replacement surface
 * @see sun.java2d.d3d.D3DSurfaceData.D3DWindowSurfaceData#getReplacement()
 * @see sun.java2d.windows.GDIWindowSurfaceData#getReplacement()
 */
public SurfaceData getReplacementScreenSurface(WComponentPeer peer,
                                               SurfaceData oldsd)
{
    SurfaceData surfaceData = peer.getSurfaceData();
    if (surfaceData == null || surfaceData.isValid()) {
        return surfaceData;
    }
    peer.replaceSurfaceData();
    return peer.getSurfaceData();
}
 
Example 10
Source File: ScreenUpdateManager.java    From openjdk-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns a replacement SurfaceData for the invalid passed one.
 *
 * This method should be used by SurfaceData's created by
 * the ScreenUpdateManager for providing replacement surfaces.
 *
 * @param peer to which the old surface belongs
 * @param oldsd the old (invalid) surface to get replaced
 * @return a replacement surface
 * @see sun.java2d.d3d.D3DSurfaceData.D3DWindowSurfaceData#getReplacement()
 * @see sun.java2d.windows.GDIWindowSurfaceData#getReplacement()
 */
public SurfaceData getReplacementScreenSurface(WComponentPeer peer,
                                               SurfaceData oldsd)
{
    SurfaceData surfaceData = peer.getSurfaceData();
    if (surfaceData == null || surfaceData.isValid()) {
        return surfaceData;
    }
    peer.replaceSurfaceData();
    return peer.getSurfaceData();
}
 
Example 11
Source File: ScreenUpdateManager.java    From jdk8u_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns a replacement SurfaceData for the invalid passed one.
 *
 * This method should be used by SurfaceData's created by
 * the ScreenUpdateManager for providing replacement surfaces.
 *
 * @param peer to which the old surface belongs
 * @param oldsd the old (invalid) surface to get replaced
 * @return a replacement surface
 * @see sun.java2d.d3d.D3DSurfaceData.D3DWindowSurfaceData#getReplacement()
 * @see sun.java2d.windows.GDIWindowSurfaceData#getReplacement()
 */
public SurfaceData getReplacementScreenSurface(WComponentPeer peer,
                                               SurfaceData oldsd)
{
    SurfaceData surfaceData = peer.getSurfaceData();
    if (surfaceData == null || surfaceData.isValid()) {
        return surfaceData;
    }
    peer.replaceSurfaceData();
    return peer.getSurfaceData();
}
 
Example 12
Source File: ScreenUpdateManager.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns a replacement SurfaceData for the invalid passed one.
 *
 * This method should be used by SurfaceData's created by
 * the ScreenUpdateManager for providing replacement surfaces.
 *
 * @param peer to which the old surface belongs
 * @param oldsd the old (invalid) surface to get replaced
 * @return a replacement surface
 * @see sun.java2d.d3d.D3DSurfaceData.D3DWindowSurfaceData#getReplacement()
 * @see sun.java2d.windows.GDIWindowSurfaceData#getReplacement()
 */
public SurfaceData getReplacementScreenSurface(WComponentPeer peer,
                                               SurfaceData oldsd)
{
    SurfaceData surfaceData = peer.getSurfaceData();
    if (surfaceData == null || surfaceData.isValid()) {
        return surfaceData;
    }
    peer.replaceSurfaceData();
    return peer.getSurfaceData();
}
 
Example 13
Source File: ScreenUpdateManager.java    From jdk8u-dev-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns a replacement SurfaceData for the invalid passed one.
 *
 * This method should be used by SurfaceData's created by
 * the ScreenUpdateManager for providing replacement surfaces.
 *
 * @param peer to which the old surface belongs
 * @param oldsd the old (invalid) surface to get replaced
 * @return a replacement surface
 * @see sun.java2d.d3d.D3DSurfaceData.D3DWindowSurfaceData#getReplacement()
 * @see sun.java2d.windows.GDIWindowSurfaceData#getReplacement()
 */
public SurfaceData getReplacementScreenSurface(WComponentPeer peer,
                                               SurfaceData oldsd)
{
    SurfaceData surfaceData = peer.getSurfaceData();
    if (surfaceData == null || surfaceData.isValid()) {
        return surfaceData;
    }
    peer.replaceSurfaceData();
    return peer.getSurfaceData();
}