Java Code Examples for java.awt.Image#UndefinedProperty
The following examples show how to use
java.awt.Image#UndefinedProperty .
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: ToolkitImage.java From Bytecoder with Apache License 2.0 | 6 votes |
/** * Return a property of the image by name. Individual property names * are defined by the various image formats. If a property is not * defined for a particular image, then this method will return the * UndefinedProperty object. If the properties for this image are * not yet known, then this method will return null and the ImageObserver * object will be notified later. The property name "comment" should * be used to store an optional comment which can be presented to * the user as a description of the image, its source, or its author. */ public Object getProperty(String name, ImageObserver observer) { if (name == null) { throw new NullPointerException("null property name is not allowed"); } if (src != null) { src.checkSecurity(null, false); } if (properties == null) { addWatcher(observer, true); if (properties == null) { return null; } } Object o = properties.get(name); if (o == null) { o = Image.UndefinedProperty; } return o; }
Example 2
Source File: ToolkitImage.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Return a property of the image by name. Individual property names * are defined by the various image formats. If a property is not * defined for a particular image, then this method will return the * UndefinedProperty object. If the properties for this image are * not yet known, then this method will return null and the ImageObserver * object will be notified later. The property name "comment" should * be used to store an optional comment which can be presented to * the user as a description of the image, its source, or its author. */ public Object getProperty(String name, ImageObserver observer) { if (name == null) { throw new NullPointerException("null property name is not allowed"); } if (src != null) { src.checkSecurity(null, false); } if (properties == null) { addWatcher(observer, true); if (properties == null) { return null; } } Object o = properties.get(name); if (o == null) { o = Image.UndefinedProperty; } return o; }
Example 3
Source File: ToolkitImage.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Return a property of the image by name. Individual property names * are defined by the various image formats. If a property is not * defined for a particular image, then this method will return the * UndefinedProperty object. If the properties for this image are * not yet known, then this method will return null and the ImageObserver * object will be notified later. The property name "comment" should * be used to store an optional comment which can be presented to * the user as a description of the image, its source, or its author. */ public Object getProperty(String name, ImageObserver observer) { if (name == null) { throw new NullPointerException("null property name is not allowed"); } if (src != null) { src.checkSecurity(null, false); } if (properties == null) { addWatcher(observer, true); if (properties == null) { return null; } } Object o = properties.get(name); if (o == null) { o = Image.UndefinedProperty; } return o; }
Example 4
Source File: ToolkitImage.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
/** * Return a property of the image by name. Individual property names * are defined by the various image formats. If a property is not * defined for a particular image, then this method will return the * UndefinedProperty object. If the properties for this image are * not yet known, then this method will return null and the ImageObserver * object will be notified later. The property name "comment" should * be used to store an optional comment which can be presented to * the user as a description of the image, its source, or its author. */ public Object getProperty(String name, ImageObserver observer) { if (name == null) { throw new NullPointerException("null property name is not allowed"); } if (src != null) { src.checkSecurity(null, false); } if (properties == null) { addWatcher(observer, true); if (properties == null) { return null; } } Object o = properties.get(name); if (o == null) { o = Image.UndefinedProperty; } return o; }
Example 5
Source File: ToolkitImage.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * Return a property of the image by name. Individual property names * are defined by the various image formats. If a property is not * defined for a particular image, then this method will return the * UndefinedProperty object. If the properties for this image are * not yet known, then this method will return null and the ImageObserver * object will be notified later. The property name "comment" should * be used to store an optional comment which can be presented to * the user as a description of the image, its source, or its author. */ public Object getProperty(String name, ImageObserver observer) { if (name == null) { throw new NullPointerException("null property name is not allowed"); } if (src != null) { src.checkSecurity(null, false); } if (properties == null) { addWatcher(observer, true); if (properties == null) { return null; } } Object o = properties.get(name); if (o == null) { o = Image.UndefinedProperty; } return o; }
Example 6
Source File: ToolkitImage.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Return a property of the image by name. Individual property names * are defined by the various image formats. If a property is not * defined for a particular image, then this method will return the * UndefinedProperty object. If the properties for this image are * not yet known, then this method will return null and the ImageObserver * object will be notified later. The property name "comment" should * be used to store an optional comment which can be presented to * the user as a description of the image, its source, or its author. */ public Object getProperty(String name, ImageObserver observer) { if (name == null) { throw new NullPointerException("null property name is not allowed"); } if (src != null) { src.checkSecurity(null, false); } if (properties == null) { addWatcher(observer, true); if (properties == null) { return null; } } Object o = properties.get(name); if (o == null) { o = Image.UndefinedProperty; } return o; }
Example 7
Source File: ToolkitImage.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
/** * Return a property of the image by name. Individual property names * are defined by the various image formats. If a property is not * defined for a particular image, then this method will return the * UndefinedProperty object. If the properties for this image are * not yet known, then this method will return null and the ImageObserver * object will be notified later. The property name "comment" should * be used to store an optional comment which can be presented to * the user as a description of the image, its source, or its author. */ public Object getProperty(String name, ImageObserver observer) { if (name == null) { throw new NullPointerException("null property name is not allowed"); } if (src != null) { src.checkSecurity(null, false); } if (properties == null) { addWatcher(observer, true); if (properties == null) { return null; } } Object o = properties.get(name); if (o == null) { o = Image.UndefinedProperty; } return o; }
Example 8
Source File: ToolkitImage.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * Return a property of the image by name. Individual property names * are defined by the various image formats. If a property is not * defined for a particular image, then this method will return the * UndefinedProperty object. If the properties for this image are * not yet known, then this method will return null and the ImageObserver * object will be notified later. The property name "comment" should * be used to store an optional comment which can be presented to * the user as a description of the image, its source, or its author. */ public Object getProperty(String name, ImageObserver observer) { if (name == null) { throw new NullPointerException("null property name is not allowed"); } if (src != null) { src.checkSecurity(null, false); } if (properties == null) { addWatcher(observer, true); if (properties == null) { return null; } } Object o = properties.get(name); if (o == null) { o = Image.UndefinedProperty; } return o; }
Example 9
Source File: ToolkitImage.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
/** * Return a property of the image by name. Individual property names * are defined by the various image formats. If a property is not * defined for a particular image, then this method will return the * UndefinedProperty object. If the properties for this image are * not yet known, then this method will return null and the ImageObserver * object will be notified later. The property name "comment" should * be used to store an optional comment which can be presented to * the user as a description of the image, its source, or its author. */ public Object getProperty(String name, ImageObserver observer) { if (name == null) { throw new NullPointerException("null property name is not allowed"); } if (src != null) { src.checkSecurity(null, false); } if (properties == null) { addWatcher(observer, true); if (properties == null) { return null; } } Object o = properties.get(name); if (o == null) { o = Image.UndefinedProperty; } return o; }
Example 10
Source File: ToolkitImage.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Return a property of the image by name. Individual property names * are defined by the various image formats. If a property is not * defined for a particular image, then this method will return the * UndefinedProperty object. If the properties for this image are * not yet known, then this method will return null and the ImageObserver * object will be notified later. The property name "comment" should * be used to store an optional comment which can be presented to * the user as a description of the image, its source, or its author. */ public Object getProperty(String name, ImageObserver observer) { if (name == null) { throw new NullPointerException("null property name is not allowed"); } if (src != null) { src.checkSecurity(null, false); } if (properties == null) { addWatcher(observer, true); if (properties == null) { return null; } } Object o = properties.get(name); if (o == null) { o = Image.UndefinedProperty; } return o; }
Example 11
Source File: ToolkitImage.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Return a property of the image by name. Individual property names * are defined by the various image formats. If a property is not * defined for a particular image, then this method will return the * UndefinedProperty object. If the properties for this image are * not yet known, then this method will return null and the ImageObserver * object will be notified later. The property name "comment" should * be used to store an optional comment which can be presented to * the user as a description of the image, its source, or its author. */ public Object getProperty(String name, ImageObserver observer) { if (name == null) { throw new NullPointerException("null property name is not allowed"); } if (src != null) { src.checkSecurity(null, false); } if (properties == null) { addWatcher(observer, true); if (properties == null) { return null; } } Object o = properties.get(name); if (o == null) { o = Image.UndefinedProperty; } return o; }
Example 12
Source File: ToolkitImage.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Return a property of the image by name. Individual property names * are defined by the various image formats. If a property is not * defined for a particular image, then this method will return the * UndefinedProperty object. If the properties for this image are * not yet known, then this method will return null and the ImageObserver * object will be notified later. The property name "comment" should * be used to store an optional comment which can be presented to * the user as a description of the image, its source, or its author. */ public Object getProperty(String name, ImageObserver observer) { if (name == null) { throw new NullPointerException("null property name is not allowed"); } if (src != null) { src.checkSecurity(null, false); } if (properties == null) { addWatcher(observer, true); if (properties == null) { return null; } } Object o = properties.get(name); if (o == null) { o = Image.UndefinedProperty; } return o; }
Example 13
Source File: ToolkitImage.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Return a property of the image by name. Individual property names * are defined by the various image formats. If a property is not * defined for a particular image, then this method will return the * UndefinedProperty object. If the properties for this image are * not yet known, then this method will return null and the ImageObserver * object will be notified later. The property name "comment" should * be used to store an optional comment which can be presented to * the user as a description of the image, its source, or its author. */ public Object getProperty(String name, ImageObserver observer) { if (name == null) { throw new NullPointerException("null property name is not allowed"); } if (src != null) { src.checkSecurity(null, false); } if (properties == null) { addWatcher(observer, true); if (properties == null) { return null; } } Object o = properties.get(name); if (o == null) { o = Image.UndefinedProperty; } return o; }
Example 14
Source File: GetPropertyNames.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private static void validate(final BufferedImage bi, final int expected) { final String[] names = bi.getPropertyNames(); if (names.length != expected) { throw new RuntimeException("Wrong number of names"); } for (final String name : names) { final Object property = bi.getProperty(name); if (property == Image.UndefinedProperty || property == null) { throw new RuntimeException("Unexpected property"); } } }
Example 15
Source File: GetPropertyNames.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private static void validate(final BufferedImage bi, final int expected) { final String[] names = bi.getPropertyNames(); if (names.length != expected) { throw new RuntimeException("Wrong number of names"); } for (final String name : names) { final Object property = bi.getProperty(name); if (property == Image.UndefinedProperty || property == null) { throw new RuntimeException("Unexpected property"); } } }
Example 16
Source File: GetPropertyNames.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private static void validate(final BufferedImage bi, final int expected) { final String[] names = bi.getPropertyNames(); if (names.length != expected) { throw new RuntimeException("Wrong number of names"); } for (final String name : names) { final Object property = bi.getProperty(name); if (property == Image.UndefinedProperty || property == null) { throw new RuntimeException("Unexpected property"); } } }
Example 17
Source File: GetPropertyNames.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
private static void validate(final BufferedImage bi, final int expected) { final String[] names = bi.getPropertyNames(); if (names.length != expected) { throw new RuntimeException("Wrong number of names"); } for (final String name : names) { final Object property = bi.getProperty(name); if (property == Image.UndefinedProperty || property == null) { throw new RuntimeException("Unexpected property"); } } }
Example 18
Source File: GetPropertyNames.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
private static void validate(final BufferedImage bi, final int expected) { final String[] names = bi.getPropertyNames(); if (names.length != expected) { throw new RuntimeException("Wrong number of names"); } for (final String name : names) { final Object property = bi.getProperty(name); if (property == Image.UndefinedProperty || property == null) { throw new RuntimeException("Unexpected property"); } } }
Example 19
Source File: MultiResolutionCachedImage.java From Bytecoder with Apache License 2.0 | 4 votes |
@Override public Object getProperty(String name, ImageObserver observer) { updateInfo(observer, ImageObserver.PROPERTIES); return Image.UndefinedProperty; }
Example 20
Source File: TiledImageMock.java From sis with Apache License 2.0 | votes |
@Override public Object getProperty(String name) {return Image.UndefinedProperty;}