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

All known Subclasses:   javax.media.jai.remote.RemoteRenderableOp,
RenderableOp
public class RenderableOp implements RenderableImage,OperationNode,WritablePropertySource,Serializable(Code)
A node in a renderable imaging chain. This is the Java Advanced Imaging version of the Java2D class 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 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 renderable mode.
  2. Using the validateArguments() method of the associated OperationDescriptor, the arguments (sources and parameters) are validated as being compatible with the specified operation.
  3. Global RenderingHints maintained by the JAI instance are set on the RenderableOp using setRenderingHints().

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 PropertyChangeEventJAIs 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:

  1. local properties;
  2. any registered PropertyGenerators, or
    a source specified via a copy-from-source directive;
  3. 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.

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.
See Also:   CRIFImpl
See Also:   CollectionOp
See Also:   OperationRegistry
See Also:   RenderedOp
See Also:   java.awt.RenderingHints
See Also:   java.awt.image.renderable.ContextualRenderedImageFactory
See Also:   java.awt.image.renderable.RenderableImageOp
See Also:   java.awt.image.renderable.RenderContext



Field Summary
protected transient  ContextualRenderedImageFactorycrif
     The ContextualRenderedImageFactory used to generate renderings.
protected  PropertyChangeSupportJAIeventManager
     A helper object to manage firing events.
protected  OperationNodeSupportnodeSupport
     An object to assist in implementing OperationNode.
protected  WritablePropertySourceImplproperties
     A helper object to manage the image properties.
protected transient  PropertySourcethePropertySource
     The PropertySource containing the combined properties of all of the node's sources.

Constructor Summary
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.
public  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.
public  RenderableOp(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.

Method Summary
public  voidaddPropertyChangeListener(PropertyChangeListener listener)
     Add a PropertyChangeListener to the listener list.
public  voidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener)
     Add a PropertyChangeListener for a specific property.
public  voidaddPropertyGenerator(PropertyGenerator pg)
     Adds a PropertyGenerator to the node.
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  RenderedImagecreateDefaultRendering()
     Returns a default rendering of this RenderableImage. In all cases the area of interest will equal the image bounds. Any hints set on the node via setRenderingHints() will be used.

The dimensions of the created RenderedImage are determined in the following order of precedence:

  1. If a JAI.KEY_DEFAULT_RENDERING_SIZE hint is set on the node it is used unless both its dimensions are non-positive.
  2. The value returned by JAI.getDefaultRenderingSize() is used unless it is null.
  3. An identity transform from renderable to rendered coordinates is applied.
Either dimension of the default rendering size set in the hints or on the default JAI instance 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 ParameterBlock supplied at construction against the specification of the operation this node represents.

public  RenderedImagecreateRendering(RenderContext renderContext)
     Gets a RenderedImage that represents a rendering of this image using a given RenderContext.
public  RenderedImagecreateScaledRendering(int w, int h, RenderingHints hints)
     Gets a RenderedImage instance of this image with width w, and height h in pixels.
public  bytegetByteParameter(int index)
     Returns one of the node's parameters, as a byte.
public  chargetCharParameter(int index)
     Returns one of the node's parameters, as a char.
public  doublegetDoubleParameter(int index)
     Returns one of the node's parameters, as a double.
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  floatgetFloatParameter(int index)
     Returns one of the node's parameters, as a float.
public  floatgetHeight()
     Return the rendering-independent height of the image.
public  intgetIntParameter(int index)
     Returns one of the node's parameters, as an int.
public  longgetLongParameter(int index)
     Returns one of the node's parameters, as a long.
public  floatgetMinX()
     Gets the minimum X coordinate of the rendering-independent image data.
public  floatgetMinY()
     Gets the minimum Y coordinate of the rendering-independent image data.
public  ObjectgetObjectParameter(int index)
     Returns one of the node's parameters, as an Object.
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 image. 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  String[]getPropertyNames()
     Returns the names of properties available from this node.
public  String[]getPropertyNames(String prefix)
     Returns an array of Strings recognized as names by this property source that begin with the supplied prefix.
public synchronized  OperationRegistrygetRegistry()
     Returns the OperationRegistry that is used by this node.
public  StringgetRegistryModeName()
     Returns the name of the RegistryMode corresponding to this RenderableOp.
public  RenderingHintsgetRenderingHints()
     Returns a clone of the common RenderingHints of this node or null.
public  shortgetShortParameter(int index)
     Returns one of the node's parameters, as a short.
public  ObjectgetSource(int index)
     Returns one of the node's sources as an Object.
public  VectorgetSources()
     Returns a vector of RenderableImages that are the sources of image data for this RenderableImage.
public  floatgetWidth()
     Return the rendering-independent width of the image.
public  booleanisDynamic()
     Returns false, i.e., successive renderings with the same arguments will produce identical results.
public  voidremoveProperty(String name)
     Removes the named property from the local property set of the RenderableOp as well as from its property environment.
public  voidremovePropertyChangeListener(PropertyChangeListener listener)
     Remove a PropertyChangeListener from the listener list.
public  voidremovePropertyChangeListener(String propertyName, PropertyChangeListener listener)
     Remove a PropertyChangeListener for a specific property.
public  voidremoveSources()
     Removes all the node's sources.
public synchronized  voidsetOperationName(String opName)
     Sets the name of the operation this node represents.
public  voidsetParameter(byte param, int index)
     Sets one of the node's parameters to a byte.
public  voidsetParameter(char param, int index)
     Sets one of the node's parameters to a char.
public  voidsetParameter(short param, int index)
     Sets one of the node's parameters to a short.
public  voidsetParameter(int param, int index)
     Sets one of the node's parameters to an int.
public  voidsetParameter(long param, int index)
     Sets one of the node's parameters to a long.
public  voidsetParameter(float param, int index)
     Sets one of the node's parameters to a float.
public  voidsetParameter(double param, int index)
     Sets one of the node's parameters to a double.
public  voidsetParameter(Object param, int index)
     Sets one of the node's parameters to an Object. This is a convenience method that invokes setParameterBlock() and so adheres to the same event firing behavior.

The Object may be a DeferredData instance.

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 content 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 common RenderingHints of this node.
public  voidsetSource(Object source, int index)
     Sets one of the node's sources to an Object.
public  voidsuppressProperty(String name)
     Removes a named property from the property environment of this node.

Field Detail
crif
protected transient ContextualRenderedImageFactory crif(Code)
The ContextualRenderedImageFactory used to generate renderings.



eventManager
protected PropertyChangeSupportJAI eventManager(Code)
A helper object to manage firing events.
since:
   JAI 1.1



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



properties
protected WritablePropertySourceImpl properties(Code)
A helper object to manage the image properties.
since:
   JAI 1.1



thePropertySource
protected transient PropertySource thePropertySource(Code)
The PropertySource containing the combined properties of all of the node's sources.




Constructor Detail
RenderableOp
public RenderableOp(OperationRegistry registry, String opName, ParameterBlock pb, RenderingHints hints)(Code)
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 ParameterBlock may include DeferredData parameters. 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 - 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 common node RenderingHints to be set;it may be null.This parameter is cloned.
throws:
  IllegalArgumentException - if opName isnull.
since:
   JAI 1.1




RenderableOp
public RenderableOp(OperationRegistry registry, String opName, ParameterBlock pb)(Code)
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 ParameterBlock may include DeferredData parameters. 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 - 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.
throws:
  IllegalArgumentException - if opName isnull.




RenderableOp
public RenderableOp(String opName, ParameterBlock pb)(Code)
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 ParameterBlock may include DeferredData parameters. 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.
Parameters:
  pb - The sources and other parameters. If null,it is assumed that this node has no sources and parameters.This parameter is cloned.
throws:
  IllegalArgumentException - if opName is null.





Method Detail
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)(Code)
Add a PropertyChangeListener to the listener list. The listener is registered for all properties.
since:
   JAI 1.1



addPropertyChangeListener
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)
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.
since:
   JAI 1.1



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.



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



createDefaultRendering
public RenderedImage createDefaultRendering()(Code)
Returns a default rendering of this RenderableImage. In all cases the area of interest will equal the image bounds. Any hints set on the node via setRenderingHints() will be used.

The dimensions of the created RenderedImage are determined in the following order of precedence:

  1. If a JAI.KEY_DEFAULT_RENDERING_SIZE hint is set on the node it is used unless both its dimensions are non-positive.
  2. The value returned by JAI.getDefaultRenderingSize() is used unless it is null.
  3. An identity transform from renderable to rendered coordinates is applied.
Either dimension of the default rendering size set in the hints or on the default JAI instance 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 ParameterBlock supplied at construction against the specification of the operation this node represents. It is the caller's responsibility 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 to be evaluated. The default RenderedImage.




createRendering
public RenderedImage createRendering(RenderContext renderContext)(Code)
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 ParameterBlock supplied at construction against the specification of the operation this node represents. It is the caller's responsibility 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 to be evaluated.

The RenderContext may contain a Shape that 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 RenderContext will be merged with any set on the node via setRenderingHints() with the hints in the RenderContext taking precedence.
Parameters:
  renderContext - the RenderContext to use to produce the rendering. a RenderedImage containing the rendered data.




createScaledRendering
public RenderedImage createScaledRendering(int w, int h, RenderingHints hints)(Code)
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 via setRenderingHints() 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 ParameterBlock supplied at construction against the specification of the operation this node represents. It is the caller's responsibility 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 to be evaluated.
Parameters:
  w - the width of rendered image in pixels, or 0.
Parameters:
  h - the height of rendered image in pixels, or 0.
Parameters:
  hints - a RenderingHints object containg hints. a RenderedImage containing the rendered data.
throws:
  IllegalArgumentException - if both w and h are zero.




getByteParameter
public byte getByteParameter(int index)(Code)
Returns one of the node's parameters, as a byte.
Parameters:
  index - the index of the parameter.



getCharParameter
public char getCharParameter(int index)(Code)
Returns one of the node's parameters, as a char.
Parameters:
  index - the index of the parameter.



getDoubleParameter
public double getDoubleParameter(int index)(Code)
Returns one of the node's parameters, as a double.
Parameters:
  index - the index of the parameter.



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



getFloatParameter
public float getFloatParameter(int index)(Code)
Returns one of the node's parameters, as a float.
Parameters:
  index - the index of the parameter.



getHeight
public float getHeight()(Code)
Return the rendering-independent height of the image. the image height as a float.



getIntParameter
public int getIntParameter(int index)(Code)
Returns one of the node's parameters, as an int.
Parameters:
  index - the index of the parameter.



getLongParameter
public long getLongParameter(int index)(Code)
Returns one of the node's parameters, as a long.
Parameters:
  index - the index of the parameter.



getMinX
public float getMinX()(Code)
Gets the minimum X coordinate of the rendering-independent image data.



getMinY
public float getMinY()(Code)
Gets the minimum Y coordinate of the rendering-independent image data.



getObjectParameter
public Object getObjectParameter(int index)(Code)
Returns one of the node's parameters, as an Object.
Parameters:
  index - the index of the parameter.



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 image. 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.



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 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 imaging chain and those set locally. An array of Strings containing validproperty names or null if there are none.



getPropertyNames
public String[] getPropertyNames(String prefix)(Code)
Returns an array of Strings recognized as names by this property source that begin with the supplied prefix. If no property names match, null will be returned. The comparison is done in a case-independent manner.
throws:
  IllegalArgumentException - if prefix is null. an array of Strings giving the validproperty names.



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 RenderableOp. This method always returns the String "renderable".
since:
   JAI 1.1



getRenderingHints
public RenderingHints getRenderingHints()(Code)
Returns a clone of the common RenderingHints of this node or null.
since:
   JAI 1.1



getShortParameter
public short getShortParameter(int index)(Code)
Returns one of the node's parameters, as a short.
Parameters:
  index - the index of the parameter.



getSource
public Object getSource(int index)(Code)
Returns one of the node's sources as an Object.
Parameters:
  index - the index of the source.



getSources
public Vector getSources()(Code)
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. a (possibly empty) Vector of RenderableImages, or null.



getWidth
public float getWidth()(Code)
Return the rendering-independent width of the image. the image width as a float.



isDynamic
public boolean isDynamic()(Code)
Returns false, i.e., successive renderings with the same arguments will produce identical results.



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



removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)(Code)
Remove a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.
since:
   JAI 1.1



removePropertyChangeListener
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)
Remove a PropertyChangeListener for a specific property. The case of the name is ignored.
since:
   JAI 1.1



removeSources
public void removeSources()(Code)
Removes all the node's sources. This is a convenience method that invokes setParameterBlock() and so adheres to the same event firing behavior.
since:
   JAI 1.1



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.
Parameters:
  opName - The new operation name to be set.
throws:
  IllegalArgumentException - if opName isnull.




setParameter
public void setParameter(byte param, int index)(Code)
Sets one of the node's parameters to a byte. This is a convenience method that invokes setParameter(Object,int) and so adheres to the same event firing behavior.
Parameters:
  param - the parameter, as a byte.
Parameters:
  index - the index of the parameter.



setParameter
public void setParameter(char param, int index)(Code)
Sets one of the node's parameters to a char. This is a convenience method that invokes setParameter(Object,int) and so adheres to the same event firing behavior.
Parameters:
  param - the parameter, as a char.
Parameters:
  index - the index of the parameter.



setParameter
public void setParameter(short param, int index)(Code)
Sets one of the node's parameters to a short. This is a convenience method that invokes setParameter(Object,int) and so adheres to the same event firing behavior.
Parameters:
  param - the parameter, as a short.
Parameters:
  index - the index of the parameter.



setParameter
public void setParameter(int param, int index)(Code)
Sets one of the node's parameters to an int. This is a convenience method that invokes setParameter(Object,int) and so adheres to the same event firing behavior.
Parameters:
  param - the parameter, as an int.
Parameters:
  index - the index of the parameter.



setParameter
public void setParameter(long param, int index)(Code)
Sets one of the node's parameters to a long. This is a convenience method that invokes setParameter(Object,int) and so adheres to the same event firing behavior.
Parameters:
  param - the parameter, as a long.
Parameters:
  index - the index of the parameter.



setParameter
public void setParameter(float param, int index)(Code)
Sets one of the node's parameters to a float. This is a convenience method that invokes setParameter(Object,int) and so adheres to the same event firing behavior.
Parameters:
  param - the parameter, as a float.
Parameters:
  index - the index of the parameter.



setParameter
public void setParameter(double param, int index)(Code)
Sets one of the node's parameters to a double. This is a convenience method that invokes setParameter(Object,int) and so adheres to the same event firing behavior.
Parameters:
  param - the parameter, as a double.
Parameters:
  index - the index of the parameter.



setParameter
public void setParameter(Object param, int index)(Code)
Sets one of the node's parameters to an Object. This is a convenience method that invokes setParameterBlock() and so adheres to the same event firing behavior.

The Object may be a DeferredData instance. 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.
Parameters:
  index - the index of the parameter.




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 content of the supplied ParameterBlock. The caller should ensure that the sources and parameters in the ParameterBlock are suitable for the operation this node represents; otherwise some form of error or exception may occur at the time of rendering.

If the supplied ParameterBlock does not equal the current ParameterBlock, a PropertyChangeEventJAI named "ParameterBlock", "Sources", or "Parameters" will be fired.

The ParameterBlock may include DeferredData parameters. 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:
  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 imaging chain.

If the node is serialized then serializable properties will also be serialized but non-serializable properties will be lost.
Parameters:
  name - a String representing the property name.
Parameters:
  value - the property's value, as an Object.
exception:
  IllegalArgumentException - if nameor valueis null.




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.

If the supplied registry does not equal the current registry, a PropertyChangeEventJAI named "OperationRegistry" will be fired




setRenderingHints
public synchronized void setRenderingHints(RenderingHints hints)(Code)
Sets the common 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.
Parameters:
  hints - The new RenderingHints to be set;it may be null.
since:
   JAI 1.1




setSource
public void setSource(Object source, int index)(Code)
Sets one of the node's sources to an Object. This is a convenience method that invokes setParameterBlock() and so adheres to the same event firing behavior.
Parameters:
  source - the source, as an Object.
Parameters:
  index - the index of the source.
throws:
  IllegalArgumentException - if source isnull.



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.



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.