PropertySource
which permits setting the values of JAI properties in addition to obtaining their names and values. As the values of properties managed by classes which implement this interface may change, this is also a sub-interface of PropertyChangeEmitter
. This permits other objects to register as listeners of particular JAI properties. The case of the names of properties added via this interface should be retained although the case will be ignored in queries via getProperty()
and will be forced to lower case in emitted PropertySourceChangeEvent
.
@see PropertySource
@see PropertyChangeEmitter
@since JAI 1.1
// Copy properties to the rendered node.
if(rendering != null &&
rendering instanceof WritablePropertySource) {
String[] propertyNames = getPropertyNames();
if(propertyNames != null){
WritablePropertySource wps =
(WritablePropertySource)rendering;
for(int j = 0; j < propertyNames.length; j++) {
String name = propertyNames[j];
Object value = getProperty(name);
if(value != null &&
value != java.awt.Image.UndefinedProperty) {
wps.setProperty(name, value);
}
}
}
}
Related Classes of javax.media.jai.WritablePropertySource
Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.