Java Code Examples for sun.java2d.InvalidPipeException#getMessage()

The following examples show how to use sun.java2d.InvalidPipeException#getMessage() . 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: WComponentPeer.java    From dragonwell8_jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * The following multibuffering-related methods delegate to our
 * associated GraphicsConfig (Win or WGL) to handle the appropriate
 * native windowing system specific actions.
 */

@Override
public void createBuffers(int numBuffers, BufferCapabilities caps)
    throws AWTException
{
    Win32GraphicsConfig gc =
        (Win32GraphicsConfig)getGraphicsConfiguration();
    gc.assertOperationSupported((Component)target, numBuffers, caps);

    // Re-create the primary surface with the new number of back buffers
    try {
        replaceSurfaceData(numBuffers - 1, caps);
    } catch (InvalidPipeException e) {
        throw new AWTException(e.getMessage());
    }
}
 
Example 2
Source File: WComponentPeer.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * The following multibuffering-related methods delegate to our
 * associated GraphicsConfig (Win or WGL) to handle the appropriate
 * native windowing system specific actions.
 */

@Override
public void createBuffers(int numBuffers, BufferCapabilities caps)
    throws AWTException
{
    Win32GraphicsConfig gc =
        (Win32GraphicsConfig)getGraphicsConfiguration();
    gc.assertOperationSupported((Component)target, numBuffers, caps);

    // Re-create the primary surface with the new number of back buffers
    try {
        replaceSurfaceData(numBuffers - 1, caps);
    } catch (InvalidPipeException e) {
        throw new AWTException(e.getMessage());
    }
}
 
Example 3
Source File: WComponentPeer.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * The following multibuffering-related methods delegate to our
 * associated GraphicsConfig (Win or WGL) to handle the appropriate
 * native windowing system specific actions.
 */

@Override
public void createBuffers(int numBuffers, BufferCapabilities caps)
    throws AWTException
{
    Win32GraphicsConfig gc =
        (Win32GraphicsConfig)getGraphicsConfiguration();
    gc.assertOperationSupported((Component)target, numBuffers, caps);

    // Re-create the primary surface with the new number of back buffers
    try {
        replaceSurfaceData(numBuffers - 1, caps);
    } catch (InvalidPipeException e) {
        throw new AWTException(e.getMessage());
    }
}
 
Example 4
Source File: WComponentPeer.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * The following multibuffering-related methods delegate to our
 * associated GraphicsConfig (Win or WGL) to handle the appropriate
 * native windowing system specific actions.
 */

@Override
public void createBuffers(int numBuffers, BufferCapabilities caps)
    throws AWTException
{
    Win32GraphicsConfig gc =
        (Win32GraphicsConfig)getGraphicsConfiguration();
    gc.assertOperationSupported((Component)target, numBuffers, caps);

    // Re-create the primary surface with the new number of back buffers
    try {
        replaceSurfaceData(numBuffers - 1, caps);
    } catch (InvalidPipeException e) {
        throw new AWTException(e.getMessage());
    }
}
 
Example 5
Source File: WComponentPeer.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * The following multibuffering-related methods delegate to our
 * associated GraphicsConfig (Win or WGL) to handle the appropriate
 * native windowing system specific actions.
 */

@Override
public void createBuffers(int numBuffers, BufferCapabilities caps)
    throws AWTException
{
    Win32GraphicsConfig gc =
        (Win32GraphicsConfig)getGraphicsConfiguration();
    gc.assertOperationSupported((Component)target, numBuffers, caps);

    // Re-create the primary surface with the new number of back buffers
    try {
        replaceSurfaceData(numBuffers - 1, caps);
    } catch (InvalidPipeException e) {
        throw new AWTException(e.getMessage());
    }
}
 
Example 6
Source File: WComponentPeer.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * The following multibuffering-related methods delegate to our
 * associated GraphicsConfig (Win or WGL) to handle the appropriate
 * native windowing system specific actions.
 */

@Override
public void createBuffers(int numBuffers, BufferCapabilities caps)
    throws AWTException
{
    Win32GraphicsConfig gc =
        (Win32GraphicsConfig)getGraphicsConfiguration();
    gc.assertOperationSupported((Component)target, numBuffers, caps);

    // Re-create the primary surface with the new number of back buffers
    try {
        replaceSurfaceData(numBuffers - 1, caps);
    } catch (InvalidPipeException e) {
        throw new AWTException(e.getMessage());
    }
}
 
Example 7
Source File: WComponentPeer.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * The following multibuffering-related methods delegate to our
 * associated GraphicsConfig (Win or WGL) to handle the appropriate
 * native windowing system specific actions.
 */

@Override
public void createBuffers(int numBuffers, BufferCapabilities caps)
    throws AWTException
{
    Win32GraphicsConfig gc =
        (Win32GraphicsConfig)getGraphicsConfiguration();
    gc.assertOperationSupported((Component)target, numBuffers, caps);

    // Re-create the primary surface with the new number of back buffers
    try {
        replaceSurfaceData(numBuffers - 1, caps);
    } catch (InvalidPipeException e) {
        throw new AWTException(e.getMessage());
    }
}
 
Example 8
Source File: WComponentPeer.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * The following multibuffering-related methods delegate to our
 * associated GraphicsConfig (Win or WGL) to handle the appropriate
 * native windowing system specific actions.
 */

@Override
public void createBuffers(int numBuffers, BufferCapabilities caps)
    throws AWTException
{
    Win32GraphicsConfig gc =
        (Win32GraphicsConfig)getGraphicsConfiguration();
    gc.assertOperationSupported((Component)target, numBuffers, caps);

    // Re-create the primary surface with the new number of back buffers
    try {
        replaceSurfaceData(numBuffers - 1, caps);
    } catch (InvalidPipeException e) {
        throw new AWTException(e.getMessage());
    }
}
 
Example 9
Source File: WComponentPeer.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * The following multibuffering-related methods delegate to our
 * associated GraphicsConfig (Win or WGL) to handle the appropriate
 * native windowing system specific actions.
 */

@Override
public void createBuffers(int numBuffers, BufferCapabilities caps)
    throws AWTException
{
    Win32GraphicsConfig gc =
        (Win32GraphicsConfig)getGraphicsConfiguration();
    gc.assertOperationSupported((Component)target, numBuffers, caps);

    // Re-create the primary surface with the new number of back buffers
    try {
        replaceSurfaceData(numBuffers - 1, caps);
    } catch (InvalidPipeException e) {
        throw new AWTException(e.getMessage());
    }
}
 
Example 10
Source File: WComponentPeer.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * The following multibuffering-related methods delegate to our
 * associated GraphicsConfig (Win or WGL) to handle the appropriate
 * native windowing system specific actions.
 */

@Override
public void createBuffers(int numBuffers, BufferCapabilities caps)
    throws AWTException
{
    Win32GraphicsConfig gc =
        (Win32GraphicsConfig)getGraphicsConfiguration();
    gc.assertOperationSupported((Component)target, numBuffers, caps);

    // Re-create the primary surface with the new number of back buffers
    try {
        replaceSurfaceData(numBuffers - 1, caps);
    } catch (InvalidPipeException e) {
        throw new AWTException(e.getMessage());
    }
}
 
Example 11
Source File: WComponentPeer.java    From jdk8u_jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * The following multibuffering-related methods delegate to our
 * associated GraphicsConfig (Win or WGL) to handle the appropriate
 * native windowing system specific actions.
 */

@Override
public void createBuffers(int numBuffers, BufferCapabilities caps)
    throws AWTException
{
    Win32GraphicsConfig gc =
        (Win32GraphicsConfig)getGraphicsConfiguration();
    gc.assertOperationSupported((Component)target, numBuffers, caps);

    // Re-create the primary surface with the new number of back buffers
    try {
        replaceSurfaceData(numBuffers - 1, caps);
    } catch (InvalidPipeException e) {
        throw new AWTException(e.getMessage());
    }
}
 
Example 12
Source File: WComponentPeer.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * The following multibuffering-related methods delegate to our
 * associated GraphicsConfig (Win or WGL) to handle the appropriate
 * native windowing system specific actions.
 */

@Override
public void createBuffers(int numBuffers, BufferCapabilities caps)
    throws AWTException
{
    Win32GraphicsConfig gc =
        (Win32GraphicsConfig)getGraphicsConfiguration();
    gc.assertOperationSupported((Component)target, numBuffers, caps);

    // Re-create the primary surface with the new number of back buffers
    try {
        replaceSurfaceData(numBuffers - 1, caps);
    } catch (InvalidPipeException e) {
        throw new AWTException(e.getMessage());
    }
}
 
Example 13
Source File: WComponentPeer.java    From jdk8u-dev-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * The following multibuffering-related methods delegate to our
 * associated GraphicsConfig (Win or WGL) to handle the appropriate
 * native windowing system specific actions.
 */

@Override
public void createBuffers(int numBuffers, BufferCapabilities caps)
    throws AWTException
{
    Win32GraphicsConfig gc =
        (Win32GraphicsConfig)getGraphicsConfiguration();
    gc.assertOperationSupported((Component)target, numBuffers, caps);

    // Re-create the primary surface with the new number of back buffers
    try {
        replaceSurfaceData(numBuffers - 1, caps);
    } catch (InvalidPipeException e) {
        throw new AWTException(e.getMessage());
    }
}