| 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 Vector s within their respective
ParameterBlock s 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
Collection s, 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:
- It is verified that the operation supports the appropriate mode,
i.e., "collection" or "renderableCollection".
- It is verified that the operation generates a
CollectionImage , a RenderedImage
("collection" mode only), or a RenderableImage
("renderableCollection" mode only).
- Global
RenderingHints maintained by the JAI
instance are merged with the local RenderingHints with the
local hints taking precedence.
- 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.
- If the arguments are valid, then the
CollectionOp is
created; otherwise any source Collection s are
"unwrapped" until a valid argument list is obtained or it is
determined that such is impossible.
- 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
CollectionImage s is created. Each node in the chain of
CollectionOp s corresponds to a node in the chain of
CollectionImage s. 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
RenderedImage s or RenderableImage s, 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
CollectionChangeEvent s as described below.
CollectionOp nodes may participate in Java Bean-style
events. The PropertyChangeEmitter methods may be used
to register and unregister PropertyChangeListener s.
CollectionOp s are also PropertyChangeListener s
so that they may be registered as listeners of other
PropertyChangeEmitter s or the equivalent. Each
CollectionOp also automatically receives any
CollectionChangeEvent s emitted by any of its sources which
are also CollectionOp s and RenderingChangeEvent s
from any RenderedOp sources.
Certain PropertyChangeEvent s may be emitted by the
CollectionOp . These include the
PropertyChangeEventJAI s and
PropertySourceChangeEvent s 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:
- 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 .
- A
CollectionChangeEvent will be fired to all registered
listeners of the "Collection" PropertyChangeEvent and to all
sinks which are PropertyChangeListener s. The new and old
values set on the event object correspond to the previous and current
CollectionImage s, respectively, associated with this node.
CollectionOp nodes are WritablePropertySource s
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 PropertyGenerator s, 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:
- local properties;
- the rendering of the node if it is a
PropertySource ;
- any registered
PropertyGenerator s, or
a source specified via a copy-from-source directive;
- 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 |
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 boolean | add(Object o) Creates the Collection rendering if none yet exists, and
adds the specified object to this Collection . | public boolean | addAll(Collection c) Creates the Collection rendering if none yet exists, and
adds all of the elements in the specified Collection
to this Collection . | public void | addPropertyGenerator(PropertyGenerator pg) Adds a PropertyGenerator to the node. | public void | clear() Creates the Collection rendering if none yet exists, and
removes all of the elements from this Collection . | public boolean | contains(Object o) Creates the Collection rendering if none yet exists, and
returns true if this Collection contains
the specified object. | public boolean | containsAll(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 void | copyPropertyFromSource(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 Collection | createInstance() 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 Collection | createRendering(RenderContext renderContext) Returns the Collection rendering associated with this
operation with any contained RenderableImage s rendered
using the supplied RenderContext parameter. | public Collection | getCollection() 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 Object | getDynamicProperty(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 String | getOperationName() Returns the name of the operation this node represents as
a String . | public ParameterBlock | getParameterBlock() Returns a clone of the ParameterBlock of this node. | public Object | getProperty(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 Class | getPropertyClass(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 OperationRegistry | getRegistry() Returns the OperationRegistry that is used
by this node. | public String | getRegistryModeName() Returns the name of the RegistryMode corresponding to
this CollectionOp . | public RenderingHints | getRenderingHints() Returns a clone of the RenderingHints of this node or
null . | public boolean | isEmpty() Creates the Collection rendering if none yet exists, and
returns true if this Collection contains
no element. | public boolean | isRenderable() Returns whether the operation is being instantiated in renderable mode. | public Iterator | iterator() Creates the Collection rendering if none yet exists, and
returns an Iterator over the elements in this
Collection . | public synchronized void | propertyChange(PropertyChangeEvent evt) Implementation of PropertyChangeListener . | public boolean | remove(Object o) Creates the Collection rendering if none yet exists, and
removes the specified object from this Collection . | public boolean | removeAll(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 void | removeProperty(String name) Removes the named property from the local property
set of the CollectionOp as well as from its property
environment. | protected synchronized void | resetProperties(boolean resetPropertySource) Resets the PropertySource . | public boolean | retainAll(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 void | setOperationName(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 void | setParameterBlock(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 void | setProperty(String name, Object value) Sets a local property on a node. | public synchronized void | setRegistry(OperationRegistry registry) Sets the OperationRegistry that is used by
this node. | public synchronized void | setRenderingHints(RenderingHints hints) Sets the RenderingHints of this node. | public int | size() Creates the Collection rendering if none yet exists, and
returns the number of elements in this Collection . | public void | suppressProperty(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. |
isRenderable | protected boolean isRenderable(Code) | | Flag indicating whether the operation is being instantiated in
renderable mode.
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 |
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 opName is 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) |
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 RenderableImage s 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
RenderableImage s having been rendered. If the
Collection contains any nested Collection s,
these will be unwrapped recursively such that a rendering is created
for all RenderableImage s 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
PropertyGenerator s 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 name is 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 name is 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 String s 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 name is 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 name or value is 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 . |
|
|