Class RenderableOp
- All Implemented Interfaces:
RenderableImage,Serializable,OperationNode,PropertyChangeEmitter,PropertySource,WritablePropertySource
RenderableImageOp. Instead of an explicit ContextualRenderedImageFactory, the indirection of the
OperationRegistry is used.
A RenderableOp stores an operation name and a ParameterBlock containing sources and
parameters. 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 and parameters may also be changed.
Such chains provide a framework for resolution- and rendering- independent imaging. They are useful in that a chain may be manipulated dynamically and rendered multiple times. Thus for example the same chain of operations may be applied to different images or the parameters of certain operations in a chain may be modified interactively.
A RenderableOp may be constructed directly as, for example,
RenderableImage addend1;
RenderableImage addend2;
ParameterBlock pb =
(new ParameterBlock()).addSource(addend1).addSource(addend2);
RenderableOp node = new RenderableOp("add", pb);
or via the createRenderable() or createRenderableNS() methods defined in the ImageN
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 renderable mode.
- Using the
validateArguments()method of the associatedOperationDescriptor, the arguments (sources and parameters) are validated as being compatible with the specified operation. - Global
RenderingHintsmaintained by theImageNinstance are set on theRenderableOpusingsetRenderingHints().
When a chain of nodes is rendered by any any of the createRendering() methods, a "parallel" chain of
RenderedImages is created. Each node in the chain of RenderableOps corresponds to a node in
the chain of RenderedImages. A RenderedImage associated with a given node is referred to as
a rendering of the node.
The translation between RenderableOp chains and RenderedImage (usually OpImage
) chains makes use of three levels of indirection provided by the OperationRegistry,
ContextualRenderedImageFactory, (CRIF), and RenderedImageFactory (RIF) facilities. First, the
OperationRegistry is used to map the operation name into a CRIF. This CRIF then constructs a
RenderedImage via its create(RenderContext, ParameterBlock) method. The third level of
indirection results from the operation name being mapped within create() into the optimum RIF which
actually creates the RenderedImage. (Note that this third level of indirection is a function of the CRIF
implementation of the renderable create() method: that provided by the convenience class CRIFImpl
provides this indirection.) If the RenderedImage returned by the CRIF create()
invocation is a RenderedOp, it is replaced with the rendering of the RenderedOp (usually an
OpImage).
RenderingHints may be set on a RenderableOp to provide a set of common hints to be used
in all invocations of the various createRendering() methods on the node. These hints are merged with any
hints supplied to createRendering() either explicitly or via a RenderContext. Directly
supplied hints take precedence over the common hints.
RenderableOp nodes may participate in Java Bean-style events. The PropertyChangeEmitter
methods may be used to register and unregister PropertyChangeListeners. Certain
PropertyChangeEvents may be emitted by the RenderableOp. These include the
PropertyChangeEventImageNs and PropertySourceChangeEvents required by virtue of implementing the
OperationNode interface.
RenderableOp 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 the RenderableOp is initially derived from that of the corresponding
OperationDescriptor as maintained by the OperationRegistry. It may be modified locally by
adding a PropertyGenerator or by suppressing a specific property. These modifications cannot be undone.
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;
- any registered
PropertyGenerators, or
a source specified via a copy-from-source directive; - the first source which defines the property.
setProperty() or due to caching of a property derived from the property environment.
The properties of a RenderableOp node are copied to each rendering generated by any of the
createRendering() methods. Properties already set on the rendering are not copied, i.e., those of the
rendering take precedence.
A RenderableOp chain created on a client may be passed to a server via a RemoteImage.
Any RenderedImage sources which are not Serializable will be wrapped in
SerializableRenderedImages for serialization. The tile transmission parameters will be determined from the
common RenderingHints of the node. All other non-serializable objects will attempt to be serialized
using SerializerFactory. If no Serializer is available for a particular object, a
java.io.NotSerializableException may result. Image properties (meta-data) are serialized insofar as they are
serializable: non-serializable components are simply eliminated from the local cache of properties and from the
property environment.
-
Field Summary
Fields inherited from interface RenderableImage
HINTS_OBSERVED -
Constructor Summary
ConstructorsConstructorDescriptionRenderableOp(String opName, ParameterBlock pb) Constructs a RenderableOp given the name of the operation to be performed and a ParameterBlock containing RenderableImage sources and other parameters.RenderableOp(OperationRegistry registry, String opName, ParameterBlock pb) Constructs a RenderableOp given the name of the operation to be performed and a ParameterBlock containing RenderableImage sources and other parameters.RenderableOp(OperationRegistry registry, String opName, ParameterBlock pb, RenderingHints hints) Constructs a RenderableOp given the name of the operation to be performed and a ParameterBlock containing RenderableImage sources and other parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a PropertyChangeListener to the listener list.voidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener) Add a PropertyChangeListener for a specific property.voidAdds a PropertyGenerator to the node.voidcopyPropertyFromSource(String propertyName, int sourceIndex) Forces a property to be copied from the specified source node.Returns a default rendering of thisRenderableImage.createRendering(RenderContext renderContext) Gets a RenderedImage that represents a rendering of this image using a given RenderContext.createScaledRendering(int w, int h, RenderingHints hints) Gets a RenderedImage instance of this image with width w, and height h in pixels.bytegetByteParameter(int index) Returns one of the node's parameters, as a byte.chargetCharParameter(int index) Returns one of the node's parameters, as a char.doublegetDoubleParameter(int index) Returns one of the node's parameters, as a double.getDynamicProperty(String name) Returns the property associated with the specified property name, orjava.awt.Image.UndefinedPropertyif the specified property is not set on the image.floatgetFloatParameter(int index) Returns one of the node's parameters, as a float.floatReturn the rendering-independent height of the image.intgetIntParameter(int index) Returns one of the node's parameters, as an int.longgetLongParameter(int index) Returns one of the node's parameters, as a long.floatgetMinX()Gets the minimum X coordinate of the rendering-independent image data.floatgetMinY()Gets the minimum Y coordinate of the rendering-independent image data.getObjectParameter(int index) Returns one of the node's parameters, as an Object.Returns the name of the operation this node represents as aString.Returns a clone of theParameterBlockof this node.getProperty(String name) Gets a property from the property set of this image.getPropertyClass(String name) Returns the class expected to be returned by a request for the property with the specified name.String[]Returns the names of properties available from this node.String[]getPropertyNames(String prefix) Returns an array ofStrings recognized as names by this property source that begin with the supplied prefix.Returns theOperationRegistrythat is used by this node.Returns the name of theRegistryModecorresponding to thisRenderableOp.Returns a clone of the commonRenderingHintsof this node ornull.shortgetShortParameter(int index) Returns one of the node's parameters, as a short.getSource(int index) Returns one of the node's sources as an Object.Returns a vector of RenderableImages that are the sources of image data for this RenderableImage.floatgetWidth()Return the rendering-independent width of the image.booleanReturns false, i.e., successive renderings with the same arguments will produce identical results.voidremoveProperty(String name) Removes the named property from the local property set of theRenderableOpas well as from its property environment.voidRemove a PropertyChangeListener from the listener list.voidremovePropertyChangeListener(String propertyName, PropertyChangeListener listener) Remove a PropertyChangeListener for a specific property.voidRemoves all the node's sources.voidsetOperationName(String opName) Sets the name of the operation this node represents.voidsetParameter(byte param, int index) Sets one of the node's parameters to a byte.voidsetParameter(char param, int index) Sets one of the node's parameters to a char.voidsetParameter(double param, int index) Sets one of the node's parameters to a double.voidsetParameter(float param, int index) Sets one of the node's parameters to a float.voidsetParameter(int param, int index) Sets one of the node's parameters to an int.voidsetParameter(long param, int index) Sets one of the node's parameters to a long.voidsetParameter(short param, int index) Sets one of the node's parameters to a short.voidsetParameter(Object param, int index) Sets one of the node's parameters to an Object.voidSets theParameterBlockof this node.voidsetProperty(String name, Object value) Sets a local property on a node.voidsetRegistry(OperationRegistry registry) Sets theOperationRegistrythat is used by this node.voidsetRenderingHints(RenderingHints hints) Sets the commonRenderingHintsof this node.voidSets one of the node's sources to an Object.voidsuppressProperty(String name) Removes a named property from the property environment of this node.
-
Constructor Details
-
RenderableOp
public RenderableOp(OperationRegistry registry, String opName, ParameterBlock pb, RenderingHints hints) Constructs a RenderableOp given the name of the operation to be performed and a ParameterBlock containing RenderableImage sources and other parameters. Any RenderedImage sources referenced by the ParameterBlock will be ignored.The
ParameterBlockmay includeDeferredDataparameters. These will not be evaluated until their values are actually required, i.e., when a rendering of the node is requested or the renderable dimensions are queried.- Parameters:
registry- TheOperationRegistryto be used for instantiation. ifnull, the default registry is used. Saved by reference.opName- The operation name. Saved by reference.pb- The sources and other parameters. Ifnull, it is assumed that this node has no sources and parameters. This parameter is cloned.hints- The common nodeRenderingHintsto be set; it may benull. This parameter is cloned.- Throws:
IllegalArgumentException- ifopNameisnull.
-
RenderableOp
Constructs a RenderableOp given the name of the operation to be performed and a ParameterBlock containing RenderableImage sources and other parameters. Any RenderedImage sources referenced by the ParameterBlock will be ignored.The
ParameterBlockmay includeDeferredDataparameters. These will not be evaluated until their values are actually required, i.e., when a rendering of the node is requested or the renderable dimensions are queried.- Parameters:
registry- TheOperationRegistryto be used for instantiation. ifnull, the default registry is used. Saved by reference.opName- The operation name. Saved by reference.pb- The sources and other parameters. Ifnull, it is assumed that this node has no sources and parameters. This parameter is cloned.- Throws:
IllegalArgumentException- ifopNameisnull.
-
RenderableOp
Constructs a RenderableOp given the name of the operation to be performed and a ParameterBlock containing RenderableImage sources and other parameters. The default operation registry is used. Any RenderedImage sources referenced by the ParameterBlock will be ignored.The
ParameterBlockmay includeDeferredDataparameters. These will not be evaluated until their values are actually required, i.e., when a rendering of the node is requested or the renderable dimensions are queried.- Parameters:
opName- The operation name. Saved by reference.pb- The sources and other parameters. Ifnull, it is assumed that this node has no sources and parameters. This parameter is cloned.- Throws:
IllegalArgumentException- ifopNameisnull.
-
-
Method Details
-
getRegistryModeName
Returns the name of theRegistryModecorresponding to thisRenderableOp. This method always returns theString"renderable".- Specified by:
getRegistryModeNamein interfaceOperationNode
-
getRegistry
Returns theOperationRegistrythat is used by this node. If the registry had not been set, the default registry is returned.- Specified by:
getRegistryin interfaceOperationNode
-
setRegistry
Sets theOperationRegistrythat is used by this node. If the specified registry isnull, the default registry is used.If the supplied registry does not equal the current registry, a
PropertyChangeEventImageNnamed "OperationRegistry" will be fired- Specified by:
setRegistryin interfaceOperationNode- Parameters:
registry- The newOperationRegistryto be set; it may benull.
-
getOperationName
Returns the name of the operation this node represents as aString.- Specified by:
getOperationNamein interfaceOperationNode
-
setOperationName
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
PropertyChangeEventImageNnamed "OperationName" will be fired.- Specified by:
setOperationNamein interfaceOperationNode- Parameters:
opName- The new operation name to be set.- Throws:
IllegalArgumentException- ifopNameisnull.
-
getParameterBlock
Returns a clone of theParameterBlockof this node.- Specified by:
getParameterBlockin interfaceOperationNode
-
setParameterBlock
Sets theParameterBlockof this node. If the specified newParameterBlockisnull, it is assumed that this node has no input sources and parameters. The supplied parameter is cloned.This method does not validate the content of the supplied
ParameterBlock. The caller should ensure that the sources and parameters in theParameterBlockare suitable for the operation this node represents; otherwise some form of error or exception may occur at the time of rendering.If the supplied
ParameterBlockdoes not equal the currentParameterBlock, aPropertyChangeEventImageNnamed "ParameterBlock", "Sources", or "Parameters" will be fired.The
ParameterBlockmay includeDeferredDataparameters. These will not be evaluated until their values are actually required, i.e., when a rendering of the node is requested or the renderable dimensions are queried.- Specified by:
setParameterBlockin interfaceOperationNode- Parameters:
pb- The newParameterBlockto be set; it may benull.
-
getRenderingHints
Returns a clone of the commonRenderingHintsof this node ornull.- Specified by:
getRenderingHintsin interfaceOperationNode
-
setRenderingHints
Sets the commonRenderingHintsof this node. The supplied parameter is cloned if non-null.If the supplied
RenderingHintsdoes not equal the currentRenderingHints, aPropertyChangeEventImageNnamed "RenderingHints" will be fired.- Specified by:
setRenderingHintsin interfaceOperationNode- Parameters:
hints- The newRenderingHintsto be set; it may benull.
-
getSources
Returns a vector of RenderableImages that are the sources of image data for this RenderableImage. Note that this method may return an empty vector, to indicate that the image has sources but none of them is a RenderableImage, or null to indicate the image has no source of any type.- Specified by:
getSourcesin interfaceRenderableImage- Returns:
- a (possibly empty) Vector of RenderableImages, or null.
-
getWidth
public float getWidth()Return the rendering-independent width of the image.- Specified by:
getWidthin interfaceRenderableImage- Returns:
- the image width as a float.
-
getHeight
public float getHeight()Return the rendering-independent height of the image.- Specified by:
getHeightin interfaceRenderableImage- Returns:
- the image height as a float.
-
getMinX
public float getMinX()Gets the minimum X coordinate of the rendering-independent image data.- Specified by:
getMinXin interfaceRenderableImage
-
getMinY
public float getMinY()Gets the minimum Y coordinate of the rendering-independent image data.- Specified by:
getMinYin interfaceRenderableImage
-
createDefaultRendering
Returns a default rendering of thisRenderableImage. In all cases the area of interest will equal the image bounds. Any hints set on the node viasetRenderingHints()will be used.The dimensions of the created
RenderedImageare determined in the following order of precedence:- If a
ImageN.KEY_DEFAULT_RENDERING_SIZEhint is set on the node it is used unless both its dimensions are non-positive. - The value returned by
ImageN.getDefaultRenderingSize()is used unless it isnull. - An identity transform from renderable to rendered coordinates is applied.
ImageNinstance may be non-positive in which case the other dimension and the renderable aspect ratio will be used to compute the rendered image size.This method does not validate sources and parameters supplied in the
ParameterBlocksupplied at construction against the specification of the operation this node represents. It is the caller's responsibility to ensure that the data in theParameterBlockare suitable for this operation. Otherwise, some kind of exception or error will occur. Invoking this method will cause anyDeferredDataparameters to be evaluated.- Specified by:
createDefaultRenderingin interfaceRenderableImage- Returns:
- The default RenderedImage.
- If a
-
createScaledRendering
Gets a RenderedImage instance of this image with width w, and height h in pixels. The RenderContext is built automatically with an appropriate usr2dev transform and an area of interest of the full image. The rendering hints come from hints passed in. These hints will be merged with any set on the node viasetRenderingHints()with the hints passed in taking precedence.If w == 0, it will be taken to equal Math.round(h*(getWidth()/getHeight())). Similarly, if h == 0, it will be taken to equal Math.round(w*(getHeight()/getWidth())). One of w or h must be non-zero or else an IllegalArgumentException will be thrown.
This method does not validate sources and parameters supplied in the
ParameterBlocksupplied at construction against the specification of the operation this node represents. It is the caller's responsibility to ensure that the data in theParameterBlockare suitable for this operation. Otherwise, some kind of exception or error will occur. Invoking this method will cause anyDeferredDataparameters to be evaluated.- Specified by:
createScaledRenderingin interfaceRenderableImage- Parameters:
w- the width of rendered image in pixels, or 0.h- the height of rendered image in pixels, or 0.hints- a RenderingHints object containg hints.- Returns:
- a RenderedImage containing the rendered data.
- Throws:
IllegalArgumentException- if both w and h are zero.
-
createRendering
Gets a RenderedImage that represents a rendering of this image using a given RenderContext. This is the most general way to obtain a rendering of a RenderableImage.This method does not validate sources and parameters supplied in the
ParameterBlocksupplied at construction against the specification of the operation this node represents. It is the caller's responsibility to ensure that the data in theParameterBlockare suitable for this operation. Otherwise, some kind of exception or error will occur. Invoking this method will cause anyDeferredDataparameters to be evaluated.The
RenderContextmay contain aShapethat represents the area-of-interest (aoi). If the aoi is specifed, it is still legal to return an image that's larger than this aoi. Therefore, by default, the aoi, if specified, is ignored at the rendering.Any hints in the
RenderContextwill be merged with any set on the node viasetRenderingHints()with the hints in theRenderContexttaking precedence.- Specified by:
createRenderingin interfaceRenderableImage- Parameters:
renderContext- the RenderContext to use to produce the rendering.- Returns:
- a RenderedImage containing the rendered data.
-
isDynamic
public boolean isDynamic()Returns false, i.e., successive renderings with the same arguments will produce identical results.- Specified by:
isDynamicin interfaceRenderableImage
-
getPropertyNames
Returns the names of properties available from this node. These properties are a combination of those derived from prior nodes in the imaging chain and those set locally.- Specified by:
getPropertyNamesin interfacePropertySource- Specified by:
getPropertyNamesin interfaceRenderableImage- Returns:
- An array of
Strings containing valid property names ornullif there are none.
-
getPropertyNames
Returns an array ofStrings recognized as names by this property source that begin with the supplied prefix. If no property names match,nullwill be returned. The comparison is done in a case-independent manner.- Specified by:
getPropertyNamesin interfacePropertySource- Returns:
- an array of
Strings giving the valid property names. - Throws:
IllegalArgumentException- if prefix is null.
-
getPropertyClass
Returns the class expected to be returned by a request for the property with the specified name. If this information is unavailable,nullwill be returned.- Specified by:
getPropertyClassin interfacePropertySource- Parameters:
name- the name of the property, as aString.- Returns:
- The
Classexpected to be return by a request for the value of this property ornull. - Throws:
IllegalArgumentException- ifnameisnull.
-
getProperty
Gets a property from the property set of this image. If the property name is not recognized,java.awt.Image.UndefinedPropertywill be returned.- Specified by:
getPropertyin interfacePropertySource- Specified by:
getPropertyin interfaceRenderableImage- Parameters:
name- the name of the property to get, as a String.- Returns:
- a reference to the property Object, or the value java.awt.Image.UndefinedProperty.
- Throws:
IllegalArgumentException- ifnameisnull.
-
setProperty
Sets a local property on a node. Local property settings override properties derived from prior nodes in the imaging chain.If the node is serialized then serializable properties will also be serialized but non-serializable properties will be lost.
- Specified by:
setPropertyin interfaceWritablePropertySource- Parameters:
name- a String representing the property name.value- the property's value, as an Object.- Throws:
IllegalArgumentException- ifnameorvalueisnull.
-
removeProperty
Removes the named property from the local property set of theRenderableOpas well as from its property environment.- Specified by:
removePropertyin interfaceWritablePropertySource- Parameters:
name- the name of the property, as aString.- Throws:
IllegalArgumentException- ifnameisnull.
-
getDynamicProperty
Returns the property associated with the specified property name, orjava.awt.Image.UndefinedPropertyif 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 whichPropertyGenerators are registered or in the values associated with properties of node sources. The case of the property name passed to this method is ignored.- Specified by:
getDynamicPropertyin interfaceOperationNode- Parameters:
name- AStringnaming the property.- Throws:
IllegalArgumentException- ifnameisnull.
-
addPropertyGenerator
Adds a PropertyGenerator to the node. The property values emitted by this property generator override any previous definitions.- Specified by:
addPropertyGeneratorin interfaceOperationNode- Parameters:
pg- a PropertyGenerator to be added to this node's property environment.
-
copyPropertyFromSource
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.- Specified by:
copyPropertyFromSourcein interfaceOperationNode- Parameters:
propertyName- the name of the property to be copied.sourceIndex- the index of the from which to copy the property.- Throws:
IllegalArgumentException- ifpropertyNameisnull.
-
suppressProperty
Removes a named property from the property environment of this node. Unless the property is stored locally either due to having been set explicitly viasetProperty()or to having been cached for property synchronization purposes, subsequent calls togetProperty(name)will returnjava.awt.Image.UndefinedProperty, andnamewill not appear on the list of properties emitted bygetPropertyNames(). To delete the property from the local property set of the node,removeProperty()should be used.- Specified by:
suppressPropertyin interfaceOperationNode- Parameters:
name- a String naming the property to be suppressed.
-
addPropertyChangeListener
Add a PropertyChangeListener to the listener list. The listener is registered for all properties.- Specified by:
addPropertyChangeListenerin interfacePropertyChangeEmitter
-
addPropertyChangeListener
Add a PropertyChangeListener for a specific property. The listener will be invoked only when a call on firePropertyChange names that specific property. The case of the name is ignored.- Specified by:
addPropertyChangeListenerin interfacePropertyChangeEmitter
-
removePropertyChangeListener
Remove a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.- Specified by:
removePropertyChangeListenerin interfacePropertyChangeEmitter
-
removePropertyChangeListener
Remove a PropertyChangeListener for a specific property. The case of the name is ignored.- Specified by:
removePropertyChangeListenerin interfacePropertyChangeEmitter
-
getSource
Returns one of the node's sources as an Object.- Parameters:
index- the index of the source.
-
setSource
Sets one of the node's sources to an Object. This is a convenience method that invokessetParameterBlock()and so adheres to the same event firing behavior.- Parameters:
source- the source, as an Object.index- the index of the source.- Throws:
IllegalArgumentException- ifsourceisnull.
-
removeSources
public void removeSources()Removes all the node's sources. This is a convenience method that invokessetParameterBlock()and so adheres to the same event firing behavior. -
getByteParameter
public byte getByteParameter(int index) Returns one of the node's parameters, as a byte.- Parameters:
index- the index of the parameter.
-
getCharParameter
public char getCharParameter(int index) Returns one of the node's parameters, as a char.- Parameters:
index- the index of the parameter.
-
getShortParameter
public short getShortParameter(int index) Returns one of the node's parameters, as a short.- Parameters:
index- the index of the parameter.
-
getIntParameter
public int getIntParameter(int index) Returns one of the node's parameters, as an int.- Parameters:
index- the index of the parameter.
-
getLongParameter
public long getLongParameter(int index) Returns one of the node's parameters, as a long.- Parameters:
index- the index of the parameter.
-
getFloatParameter
public float getFloatParameter(int index) Returns one of the node's parameters, as a float.- Parameters:
index- the index of the parameter.
-
getDoubleParameter
public double getDoubleParameter(int index) Returns one of the node's parameters, as a double.- Parameters:
index- the index of the parameter.
-
getObjectParameter
Returns one of the node's parameters, as an Object.- Parameters:
index- the index of the parameter.
-
setParameter
public void setParameter(byte param, int index) Sets one of the node's parameters to a byte. This is a convenience method that invokessetParameter(Object,int)and so adheres to the same event firing behavior.- Parameters:
param- the parameter, as a byte.index- the index of the parameter.
-
setParameter
public void setParameter(char param, int index) Sets one of the node's parameters to a char. This is a convenience method that invokessetParameter(Object,int)and so adheres to the same event firing behavior.- Parameters:
param- the parameter, as a char.index- the index of the parameter.
-
setParameter
public void setParameter(short param, int index) Sets one of the node's parameters to a short. This is a convenience method that invokessetParameter(Object,int)and so adheres to the same event firing behavior.- Parameters:
param- the parameter, as a short.index- the index of the parameter.
-
setParameter
public void setParameter(int param, int index) Sets one of the node's parameters to an int. This is a convenience method that invokessetParameter(Object,int)and so adheres to the same event firing behavior.- Parameters:
param- the parameter, as an int.index- the index of the parameter.
-
setParameter
public void setParameter(long param, int index) Sets one of the node's parameters to a long. This is a convenience method that invokessetParameter(Object,int)and so adheres to the same event firing behavior.- Parameters:
param- the parameter, as a long.index- the index of the parameter.
-
setParameter
public void setParameter(float param, int index) Sets one of the node's parameters to a float. This is a convenience method that invokessetParameter(Object,int)and so adheres to the same event firing behavior.- Parameters:
param- the parameter, as a float.index- the index of the parameter.
-
setParameter
public void setParameter(double param, int index) Sets one of the node's parameters to a double. This is a convenience method that invokessetParameter(Object,int)and so adheres to the same event firing behavior.- Parameters:
param- the parameter, as a double.index- the index of the parameter.
-
setParameter
Sets one of the node's parameters to an Object. This is a convenience method that invokessetParameterBlock()and so adheres to the same event firing behavior.The
Objectmay be aDeferredDatainstance. It will not be evaluated until its value is actually required, i.e., when a rendering of the node is requested or the renderable dimensions are queried.- Parameters:
param- the parameter, as an Object.index- the index of the parameter.
-