Java Doc for CollectionOp.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.CollectionImage
      javax.media.jai.CollectionOp

CollectionOp
public class CollectionOp extends CollectionImage implements OperationNode,PropertyChangeListener(Code)
A node in a CollectionImage chain. A CollectionOp stores an operation name, a ParameterBlock containing sources and parameters, and a RenderingHints containing hints which may be used in rendering the node. A set of nodes may be joined together via the source Vectors within their respective ParameterBlocks to form a directed acyclic graph (DAG). The topology, i.e., connectivity, of the graph may be altered by changing the node's sources. The operation name, parameters, and rendering hints may also be changed. A CollectionOp may be used in either the rendered or the renderable mode for Collections, i.e., "collection" or "renderableCollection" mode, respectively.

A CollectionOp may be constructed directly as, for example,

 
 Collection srcCol;
 double[] constants;
 ParameterBlock pb =
 (new ParameterBlock()).addSource(srcCol).add(constants);
 CollectionOp node =
 new CollectionOp("addConstToCollection", pb, null);
 
 
or by the createCollection or createCollectionNS() "collection" mode methods or the createRenderableCollection() or createRenderableCollectionNS() "renderableCollection" mode methods defined in the JAI class. The difference between direct construction of a node and creation via a convenience method is that in the latter case:
  1. It is verified that the operation supports the appropriate mode, i.e., "collection" or "renderableCollection".
  2. It is verified that the operation generates a CollectionImage, a RenderedImage ("collection" mode only), or a RenderableImage ("renderableCollection" mode only).
  3. Global RenderingHints maintained by the JAI instance are merged with the local RenderingHints with the local hints taking precedence.
  4. Using the validateArguments() method of the associated OperationDescriptor, the arguments (sources and parameters) are validated as being compatible with the specified operation in the appropriate mode.
  5. If the arguments are valid, then the CollectionOp is created; otherwise any source Collections are "unwrapped" until a valid argument list is obtained or it is determined that such is impossible.
  6. If the operation is in the rendered mode and is defined to be "immediate" (the isImmediate() method of the corresponding OperationDescriptor returns true) then the node is rendered.

When a chain of nodes is rendered by any means a "parallel" chain of CollectionImages is created. Each node in the chain of CollectionOps corresponds to a node in the chain of CollectionImages. Collection methods invoked on the CollectionOp are in general forwarded to the associated CollectionImage which is referred to as the rendering of the node. The rendering of the node may be a rendered or renderable CollectionImage, i.e., eventually contain RenderedImages or RenderableImages, respectively, depending on the mode in which the node is used.

The translation between CollectionOp chains and CollectionImage chains makes use of two levels of indirection provided by the OperationRegistry and either the CollectionImageFactory (CIF) or the RenderableCollectionImageFactory (RCIF) facilities. First, the local OperationRegistry is used to map the operation name into a CIF or RCIF. This factory then constructs a CollectionImage. The local OperationRegistry is used in order to take advantage of the best possible implementation of the operation.

A node may be rendered explicitly by invoking the method getCollection() which also returns the rendering of the node. A node may be rendered implicitly by invoking any method defined in the Collection interface. A rendering of a node may also be obtained by means of the createInstance() method. This method returns a Collection rendering without marking the node as having been rendered. If the node is not marked as rendered then it will not fire CollectionChangeEvents as described below.

CollectionOp nodes may participate in Java Bean-style events. The PropertyChangeEmitter methods may be used to register and unregister PropertyChangeListeners. CollectionOps are also PropertyChangeListeners so that they may be registered as listeners of other PropertyChangeEmitters or the equivalent. Each CollectionOp also automatically receives any CollectionChangeEvents emitted by any of its sources which are also CollectionOps and RenderingChangeEvents from any RenderedOp sources.

Certain PropertyChangeEvents may be emitted by the CollectionOp. These include the PropertyChangeEventJAIs and PropertySourceChangeEvents required by virtue of implementing the OperationNode interface. Additionally a CollectionChangeEvent may be emitted if the node is operating in the "collection" mode, has already been rendered, and one of the following conditions is satisfied:

  • any of the critical attributes is changed (edited), i.e., the operation name, operation registry, node sources, parameters, or rendering hints; or
  • the node receives a CollectionChangeEvent from one of its CollectionOp sources or a RenderingChangeEvent from one if its RenderedOp.
In either case the following sequence of actions should occur:
  1. A. If the operation name or the registry has changed, a new CollectionImage will be generated by the OperationRegistry for the new operation.
    B. If the operation name has not changed, an attempt will be made to re-use some elements of the previously generated CollectionImage by invoking update() on the CollectionImageFactory which generated it. If this attempt fails, a new CollectionImage for this operation will be requested from the OperationRegistry.
  2. A CollectionChangeEvent will be fired to all registered listeners of the "Collection" PropertyChangeEvent and to all sinks which are PropertyChangeListeners. The new and old values set on the event object correspond to the previous and current CollectionImages, respectively, associated with this node.

CollectionOp nodes are WritablePropertySources and so manage a name-value database of image meta-data also known as image properties. Properties may be set on and requested from a node. The value of a property not explicitly set on the node (via setProperty()) is obtained from the property environment of the node. When a property is derived from the property environment it is cached locally to ensure synchronization, i.e., that properties do not change spontaneously if for example the same property is modified upstream.

The property environment of a CollectionOp is initially derived from that of the corresponding OperationDescriptor as maintained by the OperationRegistry. It may be modified locally by adding PropertyGenerators, directives to copy certain properties from specific sources, or requests to suppress certain properties. These modifications per se cannot be undone directly but may be eliminated as a side effect of other changes to the node as described below.

When a property value is requested an attempt will be made to derive it from the several entities in the following order of precedence:

  1. local properties;
  2. the rendering of the node if it is a PropertySource;
  3. any registered PropertyGenerators, or
    a source specified via a copy-from-source directive;
  4. the first source which defines the property.
Local properties are those which have been cached locally either by virtue of direct invocation of setProperty() or due to caching of a property derived from the property environment.

All dynamically computed properties of a CollectionOp which have been cached locally, i.e., those cached properties which were not set by an explicit call to setProperty(), will be cleared when any of the critical attributes of the node is edited. By implication these properties will also be cleared when a CollectionChangeEvent is received from any node source. The property environment or the cached properties may also be cleared by invoking resetProperties().
See Also:   CollectionImage
See Also:   OperationRegistry
See Also:   RenderableOp
See Also:   RenderedOp



Field Summary
protected  booleanisRenderable
     Flag indicating whether the operation is being instantiated in renderable mode.
protected  OperationNodeSupportnodeSupport
     An object to assist in implementing OperationNode.
protected  PropertySourcethePropertySource
     The PropertySource containing the combined properties of all of the node's sources.

Constructor Summary
public  CollectionOp(OperationRegistry registry, String opName, ParameterBlock pb, RenderingHints hints, boolean isRenderable)
     Constructs a CollectionOp that will be used to instantiate a particular Collection operation from a given operation registry, an operation name, a ParameterBlock, and a set of rendering hints.

This method does not validate the contents of the supplied ParameterBlock.

public  CollectionOp(OperationRegistry registry, String opName, ParameterBlock pb, RenderingHints hints)
     Constructs a CollectionOp that will be used to instantiate a particular Collection operation from a given operation registry, an operation name, a ParameterBlock, and a set of rendering hints.
public  CollectionOp(String opName, ParameterBlock pb, RenderingHints hints)
     Constructs a CollectionOp that will be used to instantiate a particular Collection operation from a given operation name, a ParameterBlock, and a set of rendering hints.
public  CollectionOp(OperationRegistry registry, String opName, ParameterBlock pb)
     Constructs a CollectionOp that will be used to instantiate a particular Collection operation from a given operation registry, an operation name, and a ParameterBlock There are no rendering hints associated with this operation. The operation will use the rendered mode.

This method does not validate the contents of the supplied ParameterBlock.


Method Summary
public  booleanadd(Object o)
     Creates the Collection rendering if none yet exists, and adds the specified object to this Collection.
public  booleanaddAll(Collection c)
     Creates the Collection rendering if none yet exists, and adds all of the elements in the specified Collection to this Collection.
public  voidaddPropertyGenerator(PropertyGenerator pg)
     Adds a PropertyGenerator to the node.
public  voidclear()
     Creates the Collection rendering if none yet exists, and removes all of the elements from this Collection.
public  booleancontains(Object o)
     Creates the Collection rendering if none yet exists, and returns true if this Collection contains the specified object.
public  booleancontainsAll(Collection c)
     Creates the Collection rendering if none yet exists, and returns true if this Collection contains all of the elements in the specified Collection.
public synchronized  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.
public synchronized  CollectioncreateInstance()
     Instantiates a Collection operator that computes the result of this CollectionOp.

This method does not validate the sources and parameters stored in the ParameterBlock against the specification of the operation this node represents.

public  CollectioncreateRendering(RenderContext renderContext)
     Returns the Collection rendering associated with this operation with any contained RenderableImages rendered using the supplied RenderContext parameter.
public  CollectiongetCollection()
     Returns the Collection rendering associated with this operation.

This method does not validate the sources and parameters stored in the ParameterBlock against the specification of the operation this node represents.

public synchronized  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.
public  StringgetOperationName()
     Returns the name of the operation this node represents as a String.
public  ParameterBlockgetParameterBlock()
     Returns a clone of the ParameterBlock of this node.
public  ObjectgetProperty(String name)
     Gets a property from the property set of this Collection. If the property name is not recognized, java.awt.Image.UndefinedProperty will be returned.
Parameters:
  name - the name of the property to get, as a String.
public  ClassgetPropertyClass(String name)
     Returns the class expected to be returned by a request for the property with the specified name.
public synchronized  String[]getPropertyNames()
     Returns the names of properties available from this node.
public synchronized  OperationRegistrygetRegistry()
     Returns the OperationRegistry that is used by this node.
public  StringgetRegistryModeName()
     Returns the name of the RegistryMode corresponding to this CollectionOp.
public  RenderingHintsgetRenderingHints()
     Returns a clone of the RenderingHints of this node or null.
public  booleanisEmpty()
     Creates the Collection rendering if none yet exists, and returns true if this Collection contains no element.
public  booleanisRenderable()
     Returns whether the operation is being instantiated in renderable mode.
public  Iteratoriterator()
     Creates the Collection rendering if none yet exists, and returns an Iterator over the elements in this Collection.
public synchronized  voidpropertyChange(PropertyChangeEvent evt)
     Implementation of PropertyChangeListener.
public  booleanremove(Object o)
     Creates the Collection rendering if none yet exists, and removes the specified object from this Collection.
public  booleanremoveAll(Collection c)
     Creates the Collection rendering if none yet exists, and removes all this Collection's elements that are also contained in the specified Collection.
public  voidremoveProperty(String name)
     Removes the named property from the local property set of the CollectionOp as well as from its property environment.
protected synchronized  voidresetProperties(boolean resetPropertySource)
     Resets the PropertySource.
public  booleanretainAll(Collection c)
     Creates the Collection rendering if none yet exists, and retains only the elements in this Collection that are contained in the specified Collection.
public synchronized  voidsetOperationName(String opName)
     Sets the name of the operation this node represents. The parameter is saved by reference.

If the supplied name does not equal the current operation name, a PropertyChangeEventJAI named "OperationName" will be fired and a CollectionChangeEvent may be fired if the node has already been rendered.
Parameters:
  opName - The new operation name to be set.

public synchronized  voidsetParameterBlock(ParameterBlock pb)
     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. The supplied parameter is cloned.

This method does not validate the contents of the supplied ParameterBlock.

public  voidsetProperty(String name, Object value)
     Sets a local property on a node.
public synchronized  voidsetRegistry(OperationRegistry registry)
     Sets the OperationRegistry that is used by this node.
public synchronized  voidsetRenderingHints(RenderingHints hints)
     Sets the RenderingHints of this node.
public  intsize()
     Creates the Collection rendering if none yet exists, and returns the number of elements in this Collection.
public  voidsuppressProperty(String name)
     Removes a named property from the property environment of this node.
public  Object[]toArray()
     Creates the Collection rendering if none yet exists, and returns an array containing all of the elements in this Collection.
public  Object[]toArray(Object[] a)
     Creates the Collection rendering if none yet exists, and returns an array containing all of the elements in this Collection whose runtime type is that of the specified array.

Field Detail
isRenderable
protected boolean isRenderable(Code)
Flag indicating whether the operation is being instantiated in renderable mode.
since:
   JAI 1.1



nodeSupport
protected OperationNodeSupport nodeSupport(Code)
An object to assist in implementing OperationNode.
since:
   JAI 1.1



thePropertySource
protected PropertySource thePropertySource(Code)
The PropertySource containing the combined properties of all of the node's sources.
since:
   JAI 1.1




Constructor Detail
CollectionOp
public CollectionOp(OperationRegistry registry, String opName, ParameterBlock pb, RenderingHints hints, boolean isRenderable)(Code)
Constructs a CollectionOp that will be used to instantiate a particular Collection operation from a given operation registry, an operation name, a ParameterBlock, and a set of rendering hints.

This method does not validate the contents 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.

The ParameterBlock may include DeferredData parameters. These will not be evaluated until their values are actually required, i.e., when a collection rendering is requested.

The node is added automatically as a sink of any PlanarImage or CollectionImage sources.
Parameters:
  registry - The OperationRegistry to be used forinstantiation. if null, the default registryis used. Saved by reference.
Parameters:
  opName - The operation name. Saved by reference.
Parameters:
  pb - The sources and other parameters. If null,it is assumed that this node has no sources and parameters.This parameter is cloned.
Parameters:
  hints - The rendering hints. If null, it is assumedthat no hints are associated with the rendering.This parameter is cloned.
Parameters:
  isRenderable - Whether the operation is being executed inrenderable mode. IllegalArgumentException if opNameis null.
since:
   JAI 1.1




CollectionOp
public CollectionOp(OperationRegistry registry, String opName, ParameterBlock pb, RenderingHints hints)(Code)
Constructs a CollectionOp that will be used to instantiate a particular Collection operation from a given operation registry, an operation name, a ParameterBlock, and a set of rendering hints. The operation will use the rendered mode.

This method does not validate the contents 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.

The ParameterBlock may include DeferredData parameters. These will not be evaluated until their values are actually required, i.e., when a collection rendering is requested.
Parameters:
  registry - The OperationRegistry to be used forinstantiation. if null, the default registryis used. Saved by reference.
Parameters:
  opName - The operation name. Saved by reference.
Parameters:
  pb - The sources and other parameters. If null,it is assumed that this node has no sources and parameters.This parameter is cloned.
Parameters:
  hints - The rendering hints. If null, it is assumedthat no hints are associated with the rendering.This parameter is cloned.
throws:
  IllegalArgumentException - if opName isnull.




CollectionOp
public CollectionOp(String opName, ParameterBlock pb, RenderingHints hints)(Code)
Constructs a CollectionOp that will be used to instantiate a particular Collection operation from a given operation name, a ParameterBlock, and a set of rendering hints. The default operation registry is used.

This method does not validate the contents 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.

The ParameterBlock may include DeferredData parameters. These will not be evaluated until their values are actually required, i.e., when a collection rendering is requested.
Parameters:
  opName - The operation name. Saved by reference.
Parameters:
  pb - The sources and other parameters. If null,it is assumed that this node has no sources and parameters.This parameter is cloned.
Parameters:
  hints - The rendering hints. If null, it is assumedthat no hints are associated with the rendering.This parameter is cloned. IllegalArgumentException if opName isnull.




CollectionOp
public CollectionOp(OperationRegistry registry, String opName, ParameterBlock pb)(Code)
Constructs a CollectionOp that will be used to instantiate a particular Collection operation from a given operation registry, an operation name, and a ParameterBlock There are no rendering hints associated with this operation. The operation will use the rendered mode.

This method does not validate the contents 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.

The ParameterBlock may include DeferredData parameters. These will not be evaluated until their values are actually required, i.e., when a collection rendering is requested.
Parameters:
  registry - The OperationRegistry to be used forinstantiation. if null, the default registryis used. Saved by reference.
Parameters:
  opName - The operation name. Saved by reference.
Parameters:
  pb - The sources and other parameters. If null,it is assumed that this node has no sources and parameters.This parameter is cloned. IllegalArgumentException if opName isnull.
See Also:   CollectionOp.CollectionOp(OperationRegistry,String,ParameterBlock,RenderingHints)





Method Detail
add
public boolean add(Object o)(Code)
Creates the Collection rendering if none yet exists, and adds the specified object to this Collection.



addAll
public boolean addAll(Collection c)(Code)
Creates the Collection rendering if none yet exists, and adds all of the elements in the specified Collection to this Collection.



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 this node'sproperty environment.
since:
   JAI 1.1



clear
public void clear()(Code)
Creates the Collection rendering if none yet exists, and removes all of the elements from this Collection.



contains
public boolean contains(Object o)(Code)
Creates the Collection rendering if none yet exists, and returns true if this Collection contains the specified object.



containsAll
public boolean containsAll(Collection c)(Code)
Creates the Collection rendering if none yet exists, and returns true if this Collection contains all of the elements in the specified Collection.



copyPropertyFromSource
public synchronized 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.
since:
   JAI 1.1



createInstance
public synchronized Collection createInstance()(Code)
Instantiates a Collection operator that computes the result of this CollectionOp.

This method does not validate the sources and parameters stored in the ParameterBlock against the specification of the operation this node represents. It is the responsibility of the caller to ensure that the data in the ParameterBlock are suitable for this operation. Otherwise, some kind of exception or error will occur.

Invoking this method will cause any source RenderedOp or CollectionOp nodes to be rendered using their respective createInstance() methods. Any DeferredData parameters in the ParameterBlock will also be evaluated.
throws:
  RuntimeException - if the image factory charged with renderingthe node is unable to create a rendering.




createRendering
public Collection createRendering(RenderContext renderContext)(Code)
Returns the Collection rendering associated with this operation with any contained RenderableImages rendered using the supplied RenderContext parameter. If the operation is being executed in rendered mode (isRenderable() returns false), invoking this method is equivalent to invoking getCollection(), i.e., the parameter is ignored. If the operation is being executed in renderable mode, the Collection will differ from that returned by getCollection() due to any contained RenderableImages having been rendered. If the Collection contains any nested Collections, these will be unwrapped recursively such that a rendering is created for all RenderableImages encountered. Any RenderingHints in the RenderContext are merged with those set on the node with the argument hints taking precedence.
since:
   JAI 1.1



getCollection
public Collection getCollection()(Code)
Returns the Collection rendering associated with this operation.

This method does not validate the sources and parameters stored in the ParameterBlock against the specification of the operation this node represents. It is the responsibility of the caller to ensure that the data in the ParameterBlock are suitable for this operation. Otherwise, some kind of exception or error will occur. Invoking this method will cause any DeferredData parameters in the ParameterBlock to be evaluated.

Invoking this method will cause any source RenderedOp nodes to be rendered using getRendering() and any source CollectionOp nodes to be rendered using getCollection(). Any DeferredData parameters in the ParameterBlock will also be evaluated.
throws:
  RuntimeException - if the image factory charged with renderingthe node is unable to create a rendering.




getDynamicProperty
public synchronized 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.
since:
   JAI 1.1



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



getParameterBlock
public ParameterBlock getParameterBlock()(Code)
Returns a clone of the ParameterBlock of this node.



getProperty
public Object getProperty(String name)(Code)
Gets a property from the property set of this Collection. If the property name is not recognized, java.awt.Image.UndefinedProperty will be returned.
Parameters:
  name - the name of the property to get, as a String. a reference to the property Object, or the valuejava.awt.Image.UndefinedProperty.
exception:
  IllegalArgumentException - if nameis null.
since:
   JAI 1.1



getPropertyClass
public Class getPropertyClass(String name)(Code)
Returns the class expected to be returned by a request for the property with the specified name. If this information is unavailable, null will be returned. The Class expected to be return by arequest for the value of this property or null.
exception:
  IllegalArgumentException - if nameis null.
since:
   JAI 1.1



getPropertyNames
public synchronized String[] getPropertyNames()(Code)
Returns the names of properties available from this node. These properties are a combination of those derived from prior nodes in the operation chain and those set locally. An array of Strings containing validproperty names or null if there are none.
since:
   JAI 1.1



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



getRegistryModeName
public String getRegistryModeName()(Code)
Returns the name of the RegistryMode corresponding to this CollectionOp.
since:
   JAI 1.1



getRenderingHints
public RenderingHints getRenderingHints()(Code)
Returns a clone of the RenderingHints of this node or null.



isEmpty
public boolean isEmpty()(Code)
Creates the Collection rendering if none yet exists, and returns true if this Collection contains no element.



isRenderable
public boolean isRenderable()(Code)
Returns whether the operation is being instantiated in renderable mode.
since:
   JAI 1.1



iterator
public Iterator iterator()(Code)
Creates the Collection rendering if none yet exists, and returns an Iterator over the elements in this Collection.



propertyChange
public synchronized void propertyChange(PropertyChangeEvent evt)(Code)
Implementation of PropertyChangeListener.

When invoked with an event which is an instance of either CollectionChangeEvent or RenderingChangeEvent emitted by a CollectionOp or RenderedOp source, respectively, the node will respond by re-rendering itself while retaining any data possible.
since:
   JAI 1.1




remove
public boolean remove(Object o)(Code)
Creates the Collection rendering if none yet exists, and removes the specified object from this Collection.



removeAll
public boolean removeAll(Collection c)(Code)
Creates the Collection rendering if none yet exists, and removes all this Collection's elements that are also contained in the specified Collection.



removeProperty
public void removeProperty(String name)(Code)
Removes the named property from the local property set of the CollectionOp as well as from its property environment.
exception:
  IllegalArgumentException - if nameis null.
since:
   JAI 1.1



resetProperties
protected synchronized void resetProperties(boolean resetPropertySource)(Code)
Resets the PropertySource. If the parameter is true then the property environment is completely reset; if false then only cached properties are cleared, i.e., those which were derived from the property environment and are now stored in the local cache.
since:
   JAI 1.1



retainAll
public boolean retainAll(Collection c)(Code)
Creates the Collection rendering if none yet exists, and retains only the elements in this Collection that are contained in the specified Collection.



setOperationName
public synchronized void setOperationName(String opName)(Code)
Sets the name of the operation this node represents. The parameter is saved by reference.

If the supplied name does not equal the current operation name, a PropertyChangeEventJAI named "OperationName" will be fired and a CollectionChangeEvent may be fired if the node has already been rendered.
Parameters:
  opName - The new operation name to be set. IllegalArgumentException if opName isnull.




setParameterBlock
public synchronized 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. The supplied parameter is cloned.

This method does not validate the contents 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 supplied ParameterBlock does not equal the current ParameterBlock, a PropertyChangeEventJAI named "ParameterBlock", "Sources", or "Parameters" will be fired. A CollectionChangeEvent may also be fired if the node has already been rendered.

The ParameterBlock may include DeferredData parameters. These will not be evaluated until their values are actually required, i.e., when a collection rendering is requested.

The node is registered as a sink of any PlanarImage or CollectionImage sources contained in the supplied ParameterBlock. The node is also removed as a sink of any previous PlanarImage or CollectionImage sources if these are not in the new ParameterBlock.
Parameters:
  pb - The new ParameterBlock to be set;it may be null.




setProperty
public void setProperty(String name, Object value)(Code)
Sets a local property on a node. Local property settings override properties derived from prior nodes in the operation chain.
Parameters:
  name - a String representing the property name.
Parameters:
  value - the property's value, as an Object.
exception:
  IllegalArgumentException - if nameor valueis null.
since:
   JAI 1.1



setRegistry
public synchronized 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. The parameter is saved by reference.

If the supplied registry does not equal the current registry, a PropertyChangeEventJAI named "OperationRegistry" will be fired and a CollectionChangeEvent may be fired if the node has already been rendered.
Parameters:
  registry - The new OperationRegistry to be set;it may be null.




setRenderingHints
public synchronized void setRenderingHints(RenderingHints hints)(Code)
Sets the RenderingHints of this node. The supplied parameter is cloned if non-null.

If the supplied RenderingHints does not equal the current RenderingHints, a PropertyChangeEventJAI named "RenderingHints" will be fired and a CollectionChangeEvent may be fired if the node has already been rendered.
Parameters:
  hints - The new RenderingHints to be set;it may be null.




size
public int size()(Code)
Creates the Collection rendering if none yet exists, and returns the number of elements in this Collection.



suppressProperty
public 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 via setProperty() 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(). To delete the property from the local property set of the node, removeProperty() should be used.
Parameters:
  name - a String naming the property to be suppressed. IllegalArgumentException if name is null.
since:
   JAI 1.1



toArray
public Object[] toArray()(Code)
Creates the Collection rendering if none yet exists, and returns an array containing all of the elements in this Collection.



toArray
public Object[] toArray(Object[] a)(Code)
Creates the Collection rendering if none yet exists, and returns an array containing all of the elements in this Collection whose runtime type is that of the specified array. ArrayStoreException if the runtime type of thespecified array is not a supertype of the runtime type ofevery element in this Collection.



Fields inherited from javax.media.jai.CollectionImage
protected PropertyChangeSupportJAI eventManager(Code)(Java Doc)
protected Collection imageCollection(Code)(Java Doc)
protected CollectionImageFactory imageFactory(Code)(Java Doc)
protected WritablePropertySourceImpl properties(Code)(Java Doc)
protected Set sinks(Code)(Java Doc)

Methods inherited from javax.media.jai.CollectionImage
public boolean add(Object o)(Code)(Java Doc)
public boolean addAll(Collection c)(Code)(Java Doc)
public void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc)
public synchronized boolean addSink(Object sink)(Code)(Java Doc)
public void clear()(Code)(Java Doc)
public boolean contains(Object o)(Code)(Java Doc)
public boolean containsAll(Collection c)(Code)(Java Doc)
public Object get(int index)(Code)(Java Doc)
public CollectionImageFactory getImageFactory()(Code)(Java Doc)
public Object getProperty(String name)(Code)(Java Doc)
public Object getProperty(String name, Collection collection)(Code)(Java Doc)
public Class getPropertyClass(String name)(Code)(Java Doc)
public String[] getPropertyNames()(Code)(Java Doc)
public String[] getPropertyNames(String prefix)(Code)(Java Doc)
public synchronized Set getSinks()(Code)(Java Doc)
public boolean isEmpty()(Code)(Java Doc)
public Iterator iterator()(Code)(Java Doc)
public boolean remove(Object o)(Code)(Java Doc)
public boolean removeAll(Collection c)(Code)(Java Doc)
public void removeProperty(String name)(Code)(Java Doc)
public void removePropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc)
public synchronized boolean removeSink(Object sink)(Code)(Java Doc)
public synchronized void removeSinks()(Code)(Java Doc)
public boolean retainAll(Collection c)(Code)(Java Doc)
public void setImageFactory(CollectionImageFactory imageFactory)(Code)(Java Doc)
public void setProperty(String name, Object value)(Code)(Java Doc)
public int size()(Code)(Java Doc)
public Object[] toArray()(Code)(Java Doc)
public Object[] toArray(Object[] a)(Code)(Java Doc)

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.