Java Doc for OperationNode.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.OperationNode

All known Subclasses:   javax.media.jai.RenderableOp,  javax.media.jai.RenderedOp,  javax.media.jai.CollectionOp,
OperationNode
public interface OperationNode extends PropertySource,PropertyChangeEmitter(Code)
A class which is a node in a chain of operations. This interface aggregates the minimal set of methods which would be expected to be implemented by such a class.

Accessors and mutators of the critical attributes of the node are provided:

  • The name of the operation as a String;
  • The OperationRegistry to be used to resolve the operation name into an image factory which renders the node;
  • The lists of sources and parameters of the node as a ParameterBlock; and
  • The mapping of hints to be used when rendering the node.
Whether an implementing class maintains these critical attributes by reference or by copying or cloning is left to the discretion of the implementation.

OperationNodes should fire a PropertyChangeEventJAI when any of the critical attributes of the node is modified. These events should be named "OperationName", "OperationRegistry", "ParameterBlock", and "RenderingHints" corresponding to the respective critical attributes. Events named "Sources" and "Parameters" may instead be fired if it can be determined that a ParameterBlock modification has affected only the sources or parameters of the node, respectively. Nodes which implement convenience methods to edit individual node sources, parameters, or hints should still fire an event for the attribute as a whole. Note that this might require cloning the respective object. OperationNodes are also required to fire PropertySourceChangeEvents by virtue of their being a PropertySource as well as a PropertyChangeEmitter.

Methods are also provided to modify the local property environment of the node. The global property environment is maintained by the associated OperationRegistry and used to initialize the local property environment. Methods are provided to:

  • Add a PropertyGenerator;
  • Direct that a given property be copied from a certain source; and
  • Suppress the emission of a certain property.
Invocation of these methods would not affect the global property environment of the operation as maintained by the OperationRegistry.
since:
   JAI 1.1




Method Summary
 voidaddPropertyGenerator(PropertyGenerator pg)
     Adds a PropertyGenerator to the node.
 voidcopyPropertyFromSource(String propertyName, int sourceIndex)
     Forces a property to be copied from the specified source node. By default, a property is copied from the first source node that emits it.
 ObjectgetDynamicProperty(String name)
     Returns the property associated with the specified property name, or java.awt.Image.UndefinedProperty if the specified property is not set on the image.
 StringgetOperationName()
     Returns the name of the operation this node represents as a String.
 ParameterBlockgetParameterBlock()
     Returns the ParameterBlock of this node.
 OperationRegistrygetRegistry()
     Returns the OperationRegistry that is used by this node.
 StringgetRegistryModeName()
     Returns the name of the RegistryMode corresponding to this OperationNode.
 RenderingHintsgetRenderingHints()
     Returns the RenderingHints of this node.
 voidsetOperationName(String opName)
     Sets the name of the operation this node represents.
 voidsetParameterBlock(ParameterBlock pb)
     Sets the ParameterBlock of this node.
 voidsetRegistry(OperationRegistry registry)
     Sets the OperationRegistry that is used by this node.
 voidsetRenderingHints(RenderingHints hints)
     Sets the RenderingHints of this node.
 voidsuppressProperty(String name)
     Removes a named property from the property environment of this node.



Method Detail
addPropertyGenerator
void addPropertyGenerator(PropertyGenerator pg)(Code)
Adds a PropertyGenerator to the node. The property values emitted by this property generator override any previous definitions.
Parameters:
  pg - A PropertyGenerator to be added to this node'sproperty environment.
throws:
  IllegalArgumentException - if pg is null.



copyPropertyFromSource
void copyPropertyFromSource(String propertyName, int sourceIndex)(Code)
Forces a property to be copied from the specified source node. By default, a property is copied from the first source node that emits it. The result of specifying an invalid source is undefined.
Parameters:
  propertyName - the name of the property to be copied.
Parameters:
  sourceIndex - the index of the from which to copy the property.
throws:
  IllegalArgumentException - if propertyName isnull.



getDynamicProperty
Object getDynamicProperty(String name)(Code)
Returns the property associated with the specified property name, or java.awt.Image.UndefinedProperty if the specified property is not set on the image. This method is dynamic in the sense that subsequent invocations of this method on the same object may return different values as a function of changes in the property environment of the node, e.g., a change in which PropertyGenerators are registered or in the values associated with properties of node sources. The case of the property name passed to this method is ignored.
Parameters:
  name - A String naming the property.
throws:
  IllegalArgumentException - if name is null.



getOperationName
String getOperationName()(Code)
Returns the name of the operation this node represents as a String.



getParameterBlock
ParameterBlock getParameterBlock()(Code)
Returns the ParameterBlock of this node.



getRegistry
OperationRegistry getRegistry()(Code)
Returns the OperationRegistry that is used by this node. If the registry is not set, the default registry is returned.



getRegistryModeName
String getRegistryModeName()(Code)
Returns the name of the RegistryMode corresponding to this OperationNode. This value should be immutable for a given node.



getRenderingHints
RenderingHints getRenderingHints()(Code)
Returns the RenderingHints of this node. It may be null.



setOperationName
void setOperationName(String opName)(Code)
Sets the name of the operation this node represents.

If the operation name changes according to a case-insensitive comparison by equals() of the old and new names, a PropertyChangeEventJAI named "OperationName" should be fired with source equal to this node and old and new values set to the old and new values of the operation name, respectively.
Parameters:
  opName - The new operation name to be set.
throws:
  IllegalArgumentException - if opName isnull.




setParameterBlock
void setParameterBlock(ParameterBlock pb)(Code)
Sets the ParameterBlock of this node. If the specified new ParameterBlock is null, it is assumed that this node has no input sources and parameters.

This method does not validate the content of the supplied ParameterBlock. The caller should ensure that the sources and parameters in the ParameterBlock are suitable for the operation this node represents; otherwise some form of error or exception may occur at the time of rendering.

If the ParameterBlock changes according to a comparison of the sources and parameters Vectors of the old and new ParameterBlocks using equals(), a PropertyChangeEventJAI named "ParameterBlock" should be fired with source equal to this node and old and new values set to the old and new values of the ParameterBlock, respectively. A PropertyChangeEventJAI named "Sources" or "Parameters" may instead be fired if it can be determined that the ParameterBlock modification has affected only the sources or parameters of the node, respectively.

The ParameterBlock may include DeferredData parameters. These will not be evaluated until their values are actually required, i.e., when the node is rendered. Any Observable events generated by such DeferredData parameters will be trapped by the node and acted upon.
Parameters:
  pb - The new ParameterBlock to be set;it may be null.




setRegistry
void setRegistry(OperationRegistry registry)(Code)
Sets the OperationRegistry that is used by this node. If the specified registry is null, the default registry is used.

If the registry changes according to a direct comparison of the old and new registry references, a PropertyChangeEventJAI named "OperationRegistry" should be fired with source equal to this node and old and new values set to the old and new values of the registry, respectively.
Parameters:
  registry - The new OperationRegistry to be set;it may be null.




setRenderingHints
void setRenderingHints(RenderingHints hints)(Code)
Sets the RenderingHints of this node. It is legal for nodes to ignore RenderingHints set on them by this mechanism.

If the RenderingHints changes according to a comparison by equals() of the old and new hints, a PropertyChangeEventJAI named "RenderingHints" should be fired with source equal to this node and old and new values set to the old and new values of the hints, respectively.
Parameters:
  hints - The new RenderingHints to be set;it may be null.




suppressProperty
void suppressProperty(String name)(Code)
Removes a named property from the property environment of this node. Unless the property is stored locally either due to having been set explicitly or to having been cached for property synchronization purposes, subsequent calls to getProperty(name) will return java.awt.Image.UndefinedProperty, and name will not appear on the list of properties emitted by getPropertyNames().
Parameters:
  name - A String naming the property to be suppressed.
throws:
  IllegalArgumentException - if name is null.



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