Java Doc for DeferredProperty.java in  » 6.0-JDK-Modules » Java-Advanced-Imaging » javax » media » jai » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » Java Advanced Imaging » javax.media.jai 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.media.jai.DeferredData
   javax.media.jai.DeferredProperty

DeferredProperty
public class DeferredProperty extends DeferredData implements PropertyChangeListener(Code)
A subclass of DeferredData to be used to wrap JAI property values which will be computed at a later time. For example, an instance of this class could be used to wrap a property emitted by an operation node so that the actual computation of the property value was deferred until it was actually needed.
See Also:   DeferredData
See Also:   RenderedOp
since:
   JAI 1.1


Field Summary
protected  StringpropertyName
     The name of the property the value of which is to be obtained.
protected transient  PropertySourcepropertySource
     The PropertySource from which the value of the named property is to be drawn.

Constructor Summary
public  DeferredProperty(PropertySource propertySource, String propertyName, Class propertyClass)
     Creates a DeferredProperty.

Method Summary
protected  ObjectcomputeData()
     Returns the value of the image property associated with the image and property name specified at construction.
public  booleanequals(Object obj)
     Tests whether the parameter equals this object.
public  StringgetPropertyName()
     Returns the name of the property the value of which is to be obtained.
public  PropertySourcegetPropertySource()
     Returns the PropertySource of the property value.
public  inthashCode()
     Returns a hash code value for the object.
public  voidpropertyChange(PropertyChangeEvent evt)
     The implementation of PropertyChangeListener.

Field Detail
propertyName
protected String propertyName(Code)
The name of the property the value of which is to be obtained.



propertySource
protected transient PropertySource propertySource(Code)
The PropertySource from which the value of the named property is to be drawn.




Constructor Detail
DeferredProperty
public DeferredProperty(PropertySource propertySource, String propertyName, Class propertyClass)(Code)
Creates a DeferredProperty. If the specified PropertySource is a PropertyChangeEmitter, then this DeferredProperty object is registered as a PropertyChangeListener of the PropertySource.
exception:
  IllegalArgumentException - if a parameter is nullor if the propertyName is not among thoseemitted by the PropertySource.




Method Detail
computeData
protected Object computeData()(Code)
Returns the value of the image property associated with the image and property name specified at construction.



equals
public boolean equals(Object obj)(Code)
Tests whether the parameter equals this object. Equality obtains if the parameter object is a DeferredProperty and the respective propertySource and dataClass variables are equal according to their respective equals() methods and the propertyNames are equal ignoring case. The wrapped data object is not tested unless the isValid() of both objects returns true because requesting it via getData() may provoke computation of a deferred quantity.



getPropertyName
public String getPropertyName()(Code)
Returns the name of the property the value of which is to be obtained.



getPropertySource
public PropertySource getPropertySource()(Code)
Returns the PropertySource of the property value.



hashCode
public int hashCode()(Code)
Returns a hash code value for the object.



propertyChange
public void propertyChange(PropertyChangeEvent evt)(Code)
The implementation of PropertyChangeListener. This method responds to certain PropertyChangeEvents generated by the PropertySource used to construct this object.

If the PropertyChangeEvent is named "Rendering" and is an instance of javax.media.jai.RenderingChangeEvent, then the source of the event is checked to determine whether it equals the PropertySource used to construct this object. If this test is passed then the PropertySource is a RenderedOp the rendering of which has changed. Therefore setData() will be invoked with a null argument. This will indicate to any registered observers that the property data should be re-requested by invoking getData() on this object.

If the PropertyChangeEvent was generated by the PropertySource used to construct this object, has name equal to the name of the deferred property, and is an instance of PropertySourceChangeEvent, then the value returned by the getNewValue() method of the event object will be passed to setData() unless getNewValue() returns java.awt.Image.UndefinedProperty in which case null will be passed to setData(). Registered observers will be notified according to the specification of setData().




Fields inherited from javax.media.jai.DeferredData
protected transient Object data(Code)(Java Doc)
protected Class dataClass(Code)(Java Doc)

Methods inherited from javax.media.jai.DeferredData
abstract protected Object computeData()(Code)(Java Doc)
final public synchronized Object getData()(Code)(Java Doc)
public Class getDataClass()(Code)(Java Doc)
public boolean isValid()(Code)(Java Doc)
final protected void setData(Object data)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.