Java Code Examples for sun.awt.SunToolkit#checkImage()
The following examples show how to use
sun.awt.SunToolkit#checkImage() .
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: MultiResolutionToolkitImageTest.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
@Override public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) { if (isRVObserver()) { isRVObserverCalled = true; SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit(); Image resolutionVariant = getResolutionVariant(img); int rvFlags = toolkit.checkImage(resolutionVariant, width, height, new IdleImageObserver()); if (rvFlags < infoflags) { throw new RuntimeException("Info flags are greater than" + " resolution varint info flags"); } } else if ((infoflags & ALLBITS) != 0) { isImageLoaded = true; } return (infoflags & ALLBITS) == 0; }
Example 2
Source File: MultiResolutionToolkitImageTest.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
@Override public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) { if (isRVObserver()) { isRVObserverCalled = true; SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit(); Image resolutionVariant = getResolutionVariant(img); int rvFlags = toolkit.checkImage(resolutionVariant, width, height, new IdleImageObserver()); if (rvFlags < infoflags) { throw new RuntimeException("Info flags are greater than" + " resolution varint info flags"); } } else if ((infoflags & ALLBITS) != 0) { isImageLoaded = true; } return (infoflags & ALLBITS) == 0; }
Example 3
Source File: MultiResolutionToolkitImageTest.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
@Override public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) { if (isRVObserver()) { isRVObserverCalled = true; SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit(); Image resolutionVariant = getResolutionVariant(img); int rvFlags = toolkit.checkImage(resolutionVariant, width, height, new IdleImageObserver()); if (rvFlags < infoflags) { throw new RuntimeException("Info flags are greater than" + " resolution varint info flags"); } } else if ((infoflags & ALLBITS) != 0) { isImageLoaded = true; } return (infoflags & ALLBITS) == 0; }
Example 4
Source File: MultiResolutionToolkitImageTest.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
@Override public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) { if (isRVObserver()) { isRVObserverCalled = true; SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit(); Image resolutionVariant = getResolutionVariant(img); int rvFlags = toolkit.checkImage(resolutionVariant, width, height, new IdleImageObserver()); if (rvFlags < infoflags) { throw new RuntimeException("Info flags are greater than" + " resolution varint info flags"); } } else if ((infoflags & ALLBITS) != 0) { isImageLoaded = true; } return (infoflags & ALLBITS) == 0; }
Example 5
Source File: MultiResolutionToolkitImageTest.java From hottub with GNU General Public License v2.0 | 6 votes |
@Override public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) { if (isRVObserver()) { isRVObserverCalled = true; SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit(); Image resolutionVariant = getResolutionVariant(img); int rvFlags = toolkit.checkImage(resolutionVariant, width, height, new IdleImageObserver()); if (rvFlags < infoflags) { throw new RuntimeException("Info flags are greater than" + " resolution varint info flags"); } } else if ((infoflags & ALLBITS) != 0) { isImageLoaded = true; } return (infoflags & ALLBITS) == 0; }
Example 6
Source File: MultiResolutionToolkitImageTest.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
@Override public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) { if (isRVObserver()) { isRVObserverCalled = true; SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit(); Image resolutionVariant = getResolutionVariant(img); int rvFlags = toolkit.checkImage(resolutionVariant, width, height, new IdleImageObserver()); if (rvFlags < infoflags) { throw new RuntimeException("Info flags are greater than" + " resolution varint info flags"); } } else if ((infoflags & ALLBITS) != 0) { isImageLoaded = true; } return (infoflags & ALLBITS) == 0; }
Example 7
Source File: MultiResolutionToolkitImageTest.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
@Override public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) { if (isRVObserver()) { isRVObserverCalled = true; SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit(); Image resolutionVariant = getResolutionVariant(img); int rvFlags = toolkit.checkImage(resolutionVariant, width, height, new IdleImageObserver()); if (rvFlags < infoflags) { throw new RuntimeException("Info flags are greater than" + " resolution varint info flags"); } } else if ((infoflags & ALLBITS) != 0) { isImageLoaded = true; } return (infoflags & ALLBITS) == 0; }
Example 8
Source File: MultiResolutionToolkitImageTest.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
@Override public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) { if (isRVObserver()) { isRVObserverCalled = true; SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit(); Image resolutionVariant = getResolutionVariant(img); int rvFlags = toolkit.checkImage(resolutionVariant, width, height, new IdleImageObserver()); if (rvFlags < infoflags) { throw new RuntimeException("Info flags are greater than" + " resolution varint info flags"); } } else if ((infoflags & ALLBITS) != 0) { isImageLoaded = true; } return (infoflags & ALLBITS) == 0; }
Example 9
Source File: MultiResolutionToolkitImageTest.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
@Override public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) { if (isRVObserver()) { isRVObserverCalled = true; SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit(); Image resolutionVariant = getResolutionVariant(img); int rvFlags = toolkit.checkImage(resolutionVariant, width, height, new IdleImageObserver()); if (rvFlags < infoflags) { throw new RuntimeException("Info flags are greater than" + " resolution varint info flags"); } } else if ((infoflags & ALLBITS) != 0) { isImageLoaded = true; } return (infoflags & ALLBITS) == 0; }
Example 10
Source File: MultiResolutionToolkitImageTest.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
@Override public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) { if (isRVObserver()) { isRVObserverCalled = true; SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit(); Image resolutionVariant = getResolutionVariant(img); int rvFlags = toolkit.checkImage(resolutionVariant, width, height, new IdleImageObserver()); if (rvFlags < infoflags) { throw new RuntimeException("Info flags are greater than" + " resolution varint info flags"); } } else if ((infoflags & ALLBITS) != 0) { isImageLoaded = true; } return (infoflags & ALLBITS) == 0; }
Example 11
Source File: MultiResolutionToolkitImageTest.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
@Override public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) { if (isRVObserver()) { isRVObserverCalled = true; SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit(); Image resolutionVariant = getResolutionVariant(img); int rvFlags = toolkit.checkImage(resolutionVariant, width, height, new IdleImageObserver()); if (rvFlags < infoflags) { throw new RuntimeException("Info flags are greater than" + " resolution varint info flags"); } } else if ((infoflags & ALLBITS) != 0) { isImageLoaded = true; } return (infoflags & ALLBITS) == 0; }
Example 12
Source File: MultiResolutionImageTest.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
static void testImageLoaded(Image image) { SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit(); int flags = toolkit.checkImage(image, IMAGE_WIDTH, IMAGE_WIDTH, new SilentImageObserver()); if ((flags & (ImageObserver.FRAMEBITS | ImageObserver.ALLBITS)) == 0) { throw new RuntimeException("Image is not loaded!"); } }
Example 13
Source File: MultiResolutionImageTest.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
static void testImageLoaded(Image image) { SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit(); int flags = toolkit.checkImage(image, IMAGE_WIDTH, IMAGE_WIDTH, new SilentImageObserver()); if ((flags & (ImageObserver.FRAMEBITS | ImageObserver.ALLBITS)) == 0) { throw new RuntimeException("Image is not loaded!"); } }
Example 14
Source File: MultiResolutionImageTest.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
static void testImageLoaded(Image image) { SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit(); int flags = toolkit.checkImage(image, IMAGE_WIDTH, IMAGE_WIDTH, new SilentImageObserver()); if ((flags & (ImageObserver.FRAMEBITS | ImageObserver.ALLBITS)) == 0) { throw new RuntimeException("Image is not loaded!"); } }
Example 15
Source File: MultiResolutionImageTest.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
static void testImageLoaded(Image image) { SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit(); int flags = toolkit.checkImage(image, IMAGE_WIDTH, IMAGE_WIDTH, new SilentImageObserver()); if ((flags & (ImageObserver.FRAMEBITS | ImageObserver.ALLBITS)) == 0) { throw new RuntimeException("Image is not loaded!"); } }
Example 16
Source File: MultiResolutionImageTest.java From hottub with GNU General Public License v2.0 | 5 votes |
static void testImageLoaded(Image image) { SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit(); int flags = toolkit.checkImage(image, IMAGE_WIDTH, IMAGE_WIDTH, new SilentImageObserver()); if ((flags & (ImageObserver.FRAMEBITS | ImageObserver.ALLBITS)) == 0) { throw new RuntimeException("Image is not loaded!"); } }
Example 17
Source File: MultiResolutionImageTest.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
static void testImageLoaded(Image image) { SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit(); int flags = toolkit.checkImage(image, IMAGE_WIDTH, IMAGE_WIDTH, new SilentImageObserver()); if ((flags & (ImageObserver.FRAMEBITS | ImageObserver.ALLBITS)) == 0) { throw new RuntimeException("Image is not loaded!"); } }
Example 18
Source File: MultiResolutionImageTest.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
static void testImageLoaded(Image image) { SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit(); int flags = toolkit.checkImage(image, IMAGE_WIDTH, IMAGE_WIDTH, new SilentImageObserver()); if ((flags & (ImageObserver.FRAMEBITS | ImageObserver.ALLBITS)) == 0) { throw new RuntimeException("Image is not loaded!"); } }
Example 19
Source File: MultiResolutionImageTest.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
static void testImageLoaded(Image image) { SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit(); int flags = toolkit.checkImage(image, IMAGE_WIDTH, IMAGE_WIDTH, new SilentImageObserver()); if ((flags & (ImageObserver.FRAMEBITS | ImageObserver.ALLBITS)) == 0) { throw new RuntimeException("Image is not loaded!"); } }
Example 20
Source File: MultiResolutionImageTest.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
static void testImageLoaded(Image image) { SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit(); int flags = toolkit.checkImage(image, IMAGE_WIDTH, IMAGE_WIDTH, new SilentImageObserver()); if ((flags & (ImageObserver.FRAMEBITS | ImageObserver.ALLBITS)) == 0) { throw new RuntimeException("Image is not loaded!"); } }