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


java.lang.Object
   javax.media.jai.OperationNodeSupport

OperationNodeSupport
public class OperationNodeSupport implements Serializable(Code)
This is a utility class that can be used by OperationNodes to consolidate common functionality. An instance of this class may be used as a member field of the OperationNode and some of the OperationNode's work delegated to it.
since:
   JAI 1.1



Constructor Summary
public  OperationNodeSupport(String registryModeName, String opName, OperationRegistry registry, ParameterBlock pb, RenderingHints hints, PropertyChangeSupportJAI eventManager)
     Constructs an OperationNodeSupport instance. All parameters except opName may be null. If non-null the PropertyChangeSupportJAI should have been created with the node as its event source (note that this cannot be verified).

The ParameterBlock may include DeferredData parameters.


Method Summary
public  voidaddPropertyGenerator(PropertyGenerator pg)
     Adds a PropertyGenerator to the node.
public  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 that emits it.
public  StringgetOperationName()
     Returns the name of the operation the associated node represents.
public  ParameterBlockgetParameterBlock()
     Returns the ParameterBlock of the associated node by reference.
public  PropertySourcegetPropertySource(OperationNode opNode, PropertySource defaultPS)
     Constructs and returns a PropertySource suitable for use by the specified OperationNode.
public  OperationRegistrygetRegistry()
     Returns the OperationRegistry used by the associated node.
public  StringgetRegistryModeName()
     Returns the name of RegistryMode corresponding to this OperationNode.
public  RenderingHintsgetRenderingHints()
     Returns the RenderingHints of the associated node by reference.
public  voidresetPropertyEnvironment(boolean resetLocalEnvironment)
     Resets the property environment.
public  voidsetOperationName(String opName)
     Sets the name of the operation the associated node represents.
public  voidsetParameterBlock(ParameterBlock pb)
     Sets the ParameterBlock of the associated node by reference.
public  voidsetRegistry(OperationRegistry registry)
     Sets the OperationRegistry that is used by the associated node.
public  voidsetRenderingHints(RenderingHints hints)
     Sets the RenderingHints of the associated node.
public  voidsuppressProperty(String name)
     Removes a named property from the property environment of the associated node.


Constructor Detail
OperationNodeSupport
public OperationNodeSupport(String registryModeName, String opName, OperationRegistry registry, ParameterBlock pb, RenderingHints hints, PropertyChangeSupportJAI eventManager)(Code)
Constructs an OperationNodeSupport instance. All parameters except opName may be null. If non-null the PropertyChangeSupportJAI should have been created with the node as its event source (note that this cannot be verified).

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, converted to a PropertyChangeEventJAI named "parameters", and forwarded to any listeners registered with the supplied. eventManager. The old and new values of the event object so generated will be the previous and current values, respectively, of the data object wrapped by the DeferredData parameter, and thus will be instances of the class returned by the getDataClass() method of the DeferredData parameter.
Parameters:
  registryModeName - The name of the registry mode concerned.
Parameters:
  opName - The operation name to set.
Parameters:
  registry - The OperationRegistry to set;it may be null in which case the registrywill be set to the default JAI registry.
Parameters:
  pb - The ParameterBlock to set;it may be null.
Parameters:
  hints - The new RenderingHints to be set;it may be null.
Parameters:
  eventManager - The event helper object. The property changeevent source of this object should be theOperationNode which is using the constructedOperationNodeSupport instance. If nullno events will be fired.
throws:
  IllegalArgumentException - if registryModeNameor opName is null.





Method Detail
addPropertyGenerator
public 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 theassociated node's property environment.
throws:
  IllegalArgumentException - ifpg is null.



copyPropertyFromSource
public 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 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 source to copy the property from.
throws:
  IllegalArgumentException - if propertyName is null.



getOperationName
public String getOperationName()(Code)
Returns the name of the operation the associated node represents. The value is returned by reference.



getParameterBlock
public ParameterBlock getParameterBlock()(Code)
Returns the ParameterBlock of the associated node by reference. Nodes desirous of maintaining a consistent state for their ParameterBlock may prefer to clone the value returned by this method.



getPropertySource
public PropertySource getPropertySource(OperationNode opNode, PropertySource defaultPS)(Code)
Constructs and returns a PropertySource suitable for use by the specified OperationNode. If the registry mode identified by getRegistryModeName() supports properties, i.e., the statement
 Registry.getMode(getRegistryModeName()).arePropertiesSupported()
 
evaluates to true, then the PropertySource will include the global property environment as managed by the OperationRegistry for the corresponding operation. Prior and subsequent modifications to the local property environment made via this object will be reflected in the returned PropertySource.
Parameters:
  opNode - the OperationNode requesting itsPropertySource.
Parameters:
  defaultPS - a PropertySource to be used to deriveproperty values if and only if they would otherwise bederived by inheritance from a source rather than from aa PropertyGenerator or a copy-from-sourcedirective.
throws:
  IllegalArgumentException - if opNode is null. A PropertySource including the local and, ifapplicable, the global property environment for the operation.
See Also:   RegistryMode
See Also:   OperationRegistry.getPropertySource(OperationNode op)



getRegistry
public OperationRegistry getRegistry()(Code)
Returns the OperationRegistry used by the associated node. The value is returned by reference.



getRegistryModeName
public String getRegistryModeName()(Code)
Returns the name of RegistryMode corresponding to this OperationNode. This value shoud be immutable for a given node. The value is returned by reference.



getRenderingHints
public RenderingHints getRenderingHints()(Code)
Returns the RenderingHints of the associated node by reference. Nodes desirous of maintaining a consistent state for their RenderingHints may prefer to clone the value returned by this method.



resetPropertyEnvironment
public void resetPropertyEnvironment(boolean resetLocalEnvironment)(Code)
Resets the property environment. The list of local property environment modifications made directly on this object is reset if and only if the parameter is true.
Parameters:
  resetLocalEnvironment - Whether to clear the list of propertyenvironment changes made directly on this object.



setOperationName
public void setOperationName(String opName)(Code)
Sets the name of the operation the associated node represents. The value is set by reference.

If the operation name changes as a result of calling this method according to a case-insensitive comparison by equals() of the old and new names, a PropertyChangeEventJAI named "OperationName" will be fired by the event helper object with 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
public void setParameterBlock(ParameterBlock pb)(Code)
Sets the ParameterBlock of the associated node by reference. If the specified ParameterBlock is null, it is assumed that the associated node has neither input sources nor parameters. Nodes desirous of maintaining a consistent state for their ParameterBlock may prefer to clone any user-supplied ParameterBlock before passing it to this method.

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 the associated 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" will be fired by the event helper object with old and new values set to the old and new values of the ParameterBlock, respectively. A PropertyChangeEventJAI named "Sources" or "Parameters" will 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, converted to a PropertyChangeEventJAI named "parameters", and forwarded to any listeners registered with the supplied. eventManager. The old and new values of the event object so generated will be the previous and current values, respectively, of the data object wrapped by the DeferredData parameter, and thus will be instances of the class returned by the getDataClass() method of the DeferredData parameter.
Parameters:
  pb - The new ParameterBlock to be set;it may be null.




setRegistry
public void setRegistry(OperationRegistry registry)(Code)
Sets the OperationRegistry that is used by the associated node. If the specified registry is null, the registry will be set to the default JAI registry. The value is set by reference.

If the registry changes according to a direct comparison of the old and new registry references, a PropertyChangeEventJAI named "OperationRegistry" will be fired by the event helper object with 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
public void setRenderingHints(RenderingHints hints)(Code)
Sets the RenderingHints of the associated node. It is legal for nodes to ignore RenderingHints set on them by this mechanism. Nodes desirous of maintaining a consistent state for their RenderingHints may prefer to clone any user-supplied RenderingHints before passing it to this method.

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




suppressProperty
public void suppressProperty(String name)(Code)
Removes a named property from the property environment of the associated 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 - ifname is null.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.