Java Doc for ParameterBlockJAI.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
   java.awt.image.renderable.ParameterBlock
      javax.media.jai.ParameterBlockJAI

ParameterBlockJAI
public class ParameterBlockJAI extends ParameterBlock implements ParameterList(Code)
A convenience subclass of ParameterBlock that allows the use of default parameter values and getting/setting sources and parameters by name. A ParameterBlockJAI is constructed using either an OperationDescriptor, or an operation name (that will be looked up in the appropriate default OperationRegistry) and a mode which should be in OperationDescriptor.getSupportedModes() (such as rendered, renderable, collection or renderableCollection). If the mode is not specified ParameterBlockJAI will by default work with the first mode in the array of Strings returned by OperationDescriptor.getSupportedModes().

Once constructed, a ParameterBlockJAI appears to have no sources. It contains all the parameters required by its OperationDescriptor for a specified mode, each having its default value as given by the OperationDescriptor. Such a ParameterBlockJAI may not yet be usable, its sources (if any) are not set, and some or all of its parameters may have inapproriate values. The addSource methods of ParameterBlock may be used to initialize the source values, and the set(value, index) methods may be used to modify new parameter values. The preferred way of setting parameter values is the setParameter(name, value) described below. The add() methods should not be used since the parameter list is already long enough to hold all of the parameters required by the OperationDescriptor.

Additionally, ParameterBlockJAI offers setParameter(name, value) methods that take a parameter name; the index of the parameter is determined from the OperationDescriptor and the corresponding parameter is set. (users are strongly recommended to use this method instead of the equivalent set(value, index) or the deprecated set(value, name) methods). As in ParameterBlock, all parameters are stored internally as subclasses of Object and all get/set methods that take or return values of primitive types are simply convenience methods that transform values between the primitive types and their corresponding wrapper classes.

The OperationDescriptor that is used to initialize a ParameterBlockJAI at construction is not serializable and thus cannot be serialized using the default serialization mechanism. The operation name is serialized instead and included in the serialized ParameterBlockJAI stream. During de-serialization, the operation name is de-serialized and then looked up in the default OperationRegistry available at the time of de-serialization. If no OperationDescriptor has been registered with this OperationRegistry under the given operation name, a NotSerializableException will be thrown. The serialization of ParameterBlockJAI works correctly only if the OperationDescriptor registered for the operation name in question is identical to the OperationDescriptor that was registered with the OperationRegistry available at serialization time.

All parameter names are treated in a case-insensitive but retentive manner.

Warning: Serialized objects of this class will not be compatible with future releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of JAI. A future release of JAI will provide support for long term persistence.




Constructor Summary
public  ParameterBlockJAI(OperationDescriptor odesc)
     Constructs a ParameterBlockJAI for use with an operation described by a particular OperationDescriptor.
public  ParameterBlockJAI(String operationName)
     Constructs a ParameterBlockJAI for a particular operation by name.
public  ParameterBlockJAI(OperationDescriptor odesc, String modeName)
     Constructs a ParameterBlockJAI for use with an operation described by a particular OperationDescriptor and a registry mode.
public  ParameterBlockJAI(String operationName, String modeName)
     Constructs a ParameterBlockJAI for a particular operation by name and a registry mode.

Method Summary
public  ParameterBlockadd(Object obj)
     Adds an object to the list of parameters.
public  Objectclone()
     Creates a copy of a ParameterBlockJAI.
public  booleangetBooleanParameter(String paramName)
     A convenience method to return a parameter as a boolean.
public  bytegetByteParameter(String paramName)
     A convenience method to return a parameter as a byte.
public  chargetCharParameter(String paramName)
     A convenience method to return a parameter as a char.
public  doublegetDoubleParameter(String paramName)
     A convenience method to return a parameter as a double.
public  floatgetFloatParameter(String paramName)
     A convenience method to return a parameter as a float.
public  intgetIntParameter(String paramName)
     A convenience method to return a parameter as an int.
public  longgetLongParameter(String paramName)
     A convenience method to return a parameter as a long.
public  StringgetMode()
     Get the operation mode used to determine parameter names, classes and default values.
public  ObjectgetObjectParameter(String paramName)
     Gets a named parameter as an Object.
public  OperationDescriptorgetOperationDescriptor()
     Returns the OperationDescriptor associated with this ParameterBlockJAI.
public  Class[]getParamClasses()
     Returns an array of Class objects describing the types of the parameters.
public  ParameterListDescriptorgetParameterListDescriptor()
     Returns the ParameterListDescriptor that provides descriptions of the parameters associated with the operator and mode.
public  shortgetShortParameter(String paramName)
     A convenience method to return a parameter as an short.
public  intindexOf(String paramName)
     Returns the zero-relative index of a named parameter within the list of parameters.
public  intindexOfParam(String paramName)
     Returns the zero-relative index of a named parameter within the list of parameters.
public  intindexOfSource(String sourceName)
     Returns the zero-relative index of a named source within the list of sources.
public  ParameterBlockset(Object obj, int index)
     Replaces an Object in the list of parameters.
public  ParameterBlockset(byte b, String paramName)
     Sets a named parameter to a byte value.
public  ParameterBlockset(char c, String paramName)
     Sets a named parameter to a char value.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  c - a char value for the parameter.
public  ParameterBlockset(short s, String paramName)
     Sets a named parameter to a short value.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  s - a short value for the parameter.
public  ParameterBlockset(int i, String paramName)
     Sets a named parameter to an int value.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  i - an int value for the parameter.
public  ParameterBlockset(long l, String paramName)
     Sets a named parameter to a long value.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  l - a long value for the parameter.
public  ParameterBlockset(float f, String paramName)
     Sets a named parameter to a float value.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  f - a float value for the parameter.
public  ParameterBlockset(double d, String paramName)
     Sets a named parameter to a double value.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  d - a double value for the parameter.
public  ParameterBlockset(Object obj, String paramName)
     Sets a named parameter to an Object value.
public  ParameterListsetParameter(String paramName, byte b)
     Sets a named parameter to a byte value.
public  ParameterListsetParameter(String paramName, boolean b)
     Sets a named parameter to a boolean value.
public  ParameterListsetParameter(String paramName, char c)
     Sets a named parameter to a char value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  c - a char value for the parameter.
public  ParameterListsetParameter(String paramName, short s)
     Sets a named parameter to a short value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  s - a short value for the parameter.
public  ParameterListsetParameter(String paramName, int i)
     Sets a named parameter to an int value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  i - an int value for the parameter.
public  ParameterListsetParameter(String paramName, long l)
     Sets a named parameter to a long value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  l - a long value for the parameter.
public  ParameterListsetParameter(String paramName, float f)
     Sets a named parameter to a float value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  f - a float value for the parameter.
public  ParameterListsetParameter(String paramName, double d)
     Sets a named parameter to a double value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  d - a double value for the parameter.
public  ParameterListsetParameter(String paramName, Object obj)
     Sets a named parameter to an Object value.
public  voidsetParameters(Vector parameters)
     Sets the entire Vector of parameters to a given Vector.
public  ParameterBlockJAIsetSource(String sourceName, Object source)
     Sets a named source to a given Object value.


Constructor Detail
ParameterBlockJAI
public ParameterBlockJAI(OperationDescriptor odesc)(Code)
Constructs a ParameterBlockJAI for use with an operation described by a particular OperationDescriptor. It uses the first mode in the array of Strings returned by OperationDescriptor.getSupportedModes() to get the ParameterListDescriptor from OperationDescriptor. The default values of the parameters are filled in.
Parameters:
  odesc - the OperationDescriptor describing the parametersto be managed.
throws:
  IllegalArgumentException - if odesc is null



ParameterBlockJAI
public ParameterBlockJAI(String operationName)(Code)
Constructs a ParameterBlockJAI for a particular operation by name. The OperationRegistry associated with the default instance of the JAI class is used to locate the OperationDescriptor associated with the operation name. It uses the first mode in the array of Strings returned by OperationDescriptor.getSupportedModes() to get the ParameterListDescriptor from OperationDescriptor. The default values of the parameters are filled in.
Parameters:
  operationName - a String giving the name of the operation.
throws:
  IllegalArgumentException - if operationName is null.



ParameterBlockJAI
public ParameterBlockJAI(OperationDescriptor odesc, String modeName)(Code)
Constructs a ParameterBlockJAI for use with an operation described by a particular OperationDescriptor and a registry mode. The default values of the parameters are filled in.
Parameters:
  odesc - the OperationDescriptor describing the parametersto be managed.
Parameters:
  modeName - the operation mode whose paramters are to be managed.
throws:
  IllegalArgumentException - if modeName is null or odesc is null
since:
   JAI 1.1



ParameterBlockJAI
public ParameterBlockJAI(String operationName, String modeName)(Code)
Constructs a ParameterBlockJAI for a particular operation by name and a registry mode. The OperationRegistry associated with the default instance of the JAI class is used to locate the OperationDescriptor associated with the operation name. The default values of the parameters are filled in.
Parameters:
  operationName - a String giving the name of theoperation.
Parameters:
  modeName - the operation mode whose paramters are to be managed.
throws:
  IllegalArgumentException - if operationName or modeName is null
since:
   JAI 1.1




Method Detail
add
public ParameterBlock add(Object obj)(Code)
Adds an object to the list of parameters. This method always throws an IllegalStateException because the ParameterBlockJAI constructor initializes all parameters with their default values.
throws:
  IllegalStateException - if parameters are added to an already initialized ParameterBlockJAI
since:
   JAI 1.1



clone
public Object clone()(Code)
Creates a copy of a ParameterBlockJAI. The source and parameter Vectors are cloned, but the actual sources and parameters are copied by reference. This allows modifications to the order and number of sources and parameters in the clone to be invisible to the original ParameterBlockJAI. Changes to the shared sources or parameters themselves will still be visible. an Object clone of the ParameterBlockJAI.
since:
   JAI 1.1



getBooleanParameter
public boolean getBooleanParameter(String paramName)(Code)
A convenience method to return a parameter as a boolean. An exception will be thrown if the parameter is of a different type.
Parameters:
  paramName - the name of the parameter to be returned.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  ClassCastException - if the parameter is of a different type.
throws:
  IllegalStateException - if the parameter value is stillParameterListDescriptor.NO_PARAMETER_DEFAULT
since:
   JAI 1.1



getByteParameter
public byte getByteParameter(String paramName)(Code)
A convenience method to return a parameter as a byte. An exception will be thrown if the parameter is of a different type.
Parameters:
  paramName - the name of the parameter to be returned.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  ClassCastException - if the parameter is of a different type.
throws:
  IllegalStateException - if the parameter value is stillParameterListDescriptor.NO_PARAMETER_DEFAULT



getCharParameter
public char getCharParameter(String paramName)(Code)
A convenience method to return a parameter as a char. An exception will be thrown if the parameter is of a different type.
Parameters:
  paramName - the name of the parameter to be returned.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  ClassCastException - if the parameter is of a different type.
throws:
  IllegalStateException - if the parameter value is stillParameterListDescriptor.NO_PARAMETER_DEFAULT



getDoubleParameter
public double getDoubleParameter(String paramName)(Code)
A convenience method to return a parameter as a double. An exception will be thrown if the parameter is of a different type.
Parameters:
  paramName - the name of the parameter to be returned.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  ClassCastException - if the parameter is of a different type.
throws:
  IllegalStateException - if the parameter value is stillParameterListDescriptor.NO_PARAMETER_DEFAULT



getFloatParameter
public float getFloatParameter(String paramName)(Code)
A convenience method to return a parameter as a float. An exception will be thrown if the parameter is of a different type.
Parameters:
  paramName - the name of the parameter to be returned.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  ClassCastException - if the parameter is of a different type.
throws:
  IllegalStateException - if the parameter value is stillParameterListDescriptor.NO_PARAMETER_DEFAULT



getIntParameter
public int getIntParameter(String paramName)(Code)
A convenience method to return a parameter as an int. An exception will be thrown if the parameter is of a different type.
Parameters:
  paramName - the name of the parameter to be returned.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  ClassCastException - if the parameter is of a different type.
throws:
  IllegalStateException - if the parameter value is stillParameterListDescriptor.NO_PARAMETER_DEFAULT



getLongParameter
public long getLongParameter(String paramName)(Code)
A convenience method to return a parameter as a long. An exception will be thrown if the parameter is of a different type.
Parameters:
  paramName - the name of the parameter to be returned.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  ClassCastException - if the parameter is of a different type.
throws:
  IllegalStateException - if the parameter value is stillParameterListDescriptor.NO_PARAMETER_DEFAULT



getMode
public String getMode()(Code)
Get the operation mode used to determine parameter names, classes and default values.
since:
   JAI 1.1



getObjectParameter
public Object getObjectParameter(String paramName)(Code)
Gets a named parameter as an Object. Parameters belonging to a primitive type, such as int, will be returned as a member of the corresponding Number subclass, such as Integer.
Parameters:
  paramName - the name of the parameter to be returned.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  IllegalStateException - if the parameter value is stillParameterListDescriptor.NO_PARAMETER_DEFAULT



getOperationDescriptor
public OperationDescriptor getOperationDescriptor()(Code)
Returns the OperationDescriptor associated with this ParameterBlockJAI.



getParamClasses
public Class[] getParamClasses()(Code)
Returns an array of Class objects describing the types of the parameters. This is a more efficient implementation than that of the superclass as the parameter classes are known a priori.
since:
   JAI 1.1



getParameterListDescriptor
public ParameterListDescriptor getParameterListDescriptor()(Code)
Returns the ParameterListDescriptor that provides descriptions of the parameters associated with the operator and mode.
since:
   JAI 1.1



getShortParameter
public short getShortParameter(String paramName)(Code)
A convenience method to return a parameter as an short. An exception will be thrown if the parameter is of a different type.
Parameters:
  paramName - the name of the parameter to be returned.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  ClassCastException - if the parameter is of a different type.
throws:
  IllegalStateException - if the parameter value is stillParameterListDescriptor.NO_PARAMETER_DEFAULT
since:
   JAI 1.1



indexOf
public int indexOf(String paramName)(Code)
Returns the zero-relative index of a named parameter within the list of parameters.
Parameters:
  paramName - a String containing the parameter name.
throws:
  IllegalArgumentException - if paramName is null or if there isno parameter with the specified name.
See Also:   ParameterBlockJAI.indexOfParam



indexOfParam
public int indexOfParam(String paramName)(Code)
Returns the zero-relative index of a named parameter within the list of parameters.
Parameters:
  paramName - a String containing the parameter name.
throws:
  IllegalArgumentException - if paramName is null or if there isno parameter with the specified name.
since:
   JAI 1.1



indexOfSource
public int indexOfSource(String sourceName)(Code)
Returns the zero-relative index of a named source within the list of sources.
Parameters:
  sourceName - a String containing the parameter name.
throws:
  IllegalArgumentException - if source is null or if there isno source with the specified name.
since:
   JAI 1.1



set
public ParameterBlock set(Object obj, int index)(Code)
Replaces an Object in the list of parameters.
Parameters:
  obj - The new value of the parameter.
Parameters:
  index - The zero-relative index of the parameter.
throws:
  ArrayIndexOutOfBoundsException - if indexis negative or not less than the number of parametersexpected for the associated operation.
throws:
  IllegalArgumentException - if obj isnon-null and not an instance of the classexpected for the indicated parameter or if objis an invalid value for the indicated parameter.
since:
   JAI 1.1



set
public ParameterBlock set(byte b, String paramName)(Code)
Sets a named parameter to a byte value.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  b - a byte value for the parameter.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
See Also:   ParameterBlockJAI.setParameter(String,byte)



set
public ParameterBlock set(char c, String paramName)(Code)
Sets a named parameter to a char value.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  c - a char value for the parameter.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
See Also:   ParameterBlockJAI.setParameter(String,char)



set
public ParameterBlock set(short s, String paramName)(Code)
Sets a named parameter to a short value.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  s - a short value for the parameter.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
See Also:   ParameterBlockJAI.setParameter(String,short)



set
public ParameterBlock set(int i, String paramName)(Code)
Sets a named parameter to an int value.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  i - an int value for the parameter.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
See Also:   ParameterBlockJAI.setParameter(String,int)



set
public ParameterBlock set(long l, String paramName)(Code)
Sets a named parameter to a long value.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  l - a long value for the parameter.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
See Also:   ParameterBlockJAI.setParameter(String,long)



set
public ParameterBlock set(float f, String paramName)(Code)
Sets a named parameter to a float value.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  f - a float value for the parameter.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
See Also:   ParameterBlockJAI.setParameter(String,float)



set
public ParameterBlock set(double d, String paramName)(Code)
Sets a named parameter to a double value.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  d - a double value for the parameter.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
See Also:   ParameterBlockJAI.setParameter(String,double)



set
public ParameterBlock set(Object obj, String paramName)(Code)
Sets a named parameter to an Object value.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  obj - an Object value for the parameter.
throws:
  IllegalArgumentException - if obj is null, or if the classtype of obj does not match the class type of parameterpointed to by the paramName.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
See Also:   ParameterBlockJAI.setParameter(String,Object)



setParameter
public ParameterList setParameter(String paramName, byte b)(Code)
Sets a named parameter to a byte value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  b - a byte value for the parameter.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  IllegalArgumentException - if the class type of parameterpointed to by the paramName is not a Byte
throws:
  IllegalArgumentException - if the parameter value is invalid.
since:
   JAI 1.1



setParameter
public ParameterList setParameter(String paramName, boolean b)(Code)
Sets a named parameter to a boolean value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  b - a boolean value for the parameter.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  IllegalArgumentException - if the class type of parameterpointed to by the paramName is not a Boolean
throws:
  IllegalArgumentException - if the parameter value is invalid.
since:
   JAI 1.1



setParameter
public ParameterList setParameter(String paramName, char c)(Code)
Sets a named parameter to a char value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  c - a char value for the parameter.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  IllegalArgumentException - if the class type of parameterpointed to by the paramName is not a Character
throws:
  IllegalArgumentException - if the parameter value is invalid.
since:
   JAI 1.1



setParameter
public ParameterList setParameter(String paramName, short s)(Code)
Sets a named parameter to a short value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  s - a short value for the parameter.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  IllegalArgumentException - if the class type of parameterpointed to by the paramName is not a Short
throws:
  IllegalArgumentException - if the parameter value is invalid.
since:
   JAI 1.1



setParameter
public ParameterList setParameter(String paramName, int i)(Code)
Sets a named parameter to an int value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  i - an int value for the parameter.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  IllegalArgumentException - if the class type of parameterpointed to by the paramName is not a Integer
throws:
  IllegalArgumentException - if the parameter value is invalid.
since:
   JAI 1.1



setParameter
public ParameterList setParameter(String paramName, long l)(Code)
Sets a named parameter to a long value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  l - a long value for the parameter.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  IllegalArgumentException - if the class type of parameterpointed to by the paramName is not a Long
throws:
  IllegalArgumentException - if the parameter value is invalid.
since:
   JAI 1.1



setParameter
public ParameterList setParameter(String paramName, float f)(Code)
Sets a named parameter to a float value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  f - a float value for the parameter.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  IllegalArgumentException - if the class type of parameterpointed to by the paramName is not a Float
throws:
  IllegalArgumentException - if the parameter value is invalid.
since:
   JAI 1.1



setParameter
public ParameterList setParameter(String paramName, double d)(Code)
Sets a named parameter to a double value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  d - a double value for the parameter.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  IllegalArgumentException - if the class type of parameterpointed to by the paramName is not a Double
throws:
  IllegalArgumentException - if the parameter value is invalid.
since:
   JAI 1.1



setParameter
public ParameterList setParameter(String paramName, Object obj)(Code)
Sets a named parameter to an Object value. The value may be null, an instance of the class expected for this parameter, or a DeferredData instance the getDataClass() method of which returns the expected class. If the object is a DeferredData instance, then its wrapped data value is checked for validity if and only if its isValid() method returns true. If the object is not a DeferredData instance, then it is always checked for validity.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  obj - an Object value for the parameter.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  IllegalArgumentException - if the parameter value is invalid.
since:
   JAI 1.1



setParameters
public void setParameters(Vector parameters)(Code)
Sets the entire Vector of parameters to a given Vector. The Vector is saved by reference.
throws:
  IllegalArgumentException - if the size of the suppliedVector does not equal the number of parametersof the associated operation.
throws:
  IllegalArgumentException - if a non-null,non-DeferredData value is not an instance ofthe class expected for the indicated parameter or ifobj is an invalid value for the indicatedparameter.
throws:
  IllegalArgumentException - if a non-null,DeferredData value does not wrap an instance ofthe class expected for the indicated parameter or if it isvalid but its wrapped value is invalid for the indicatedparameter.
since:
   JAI 1.1



setSource
public ParameterBlockJAI setSource(String sourceName, Object source)(Code)
Sets a named source to a given Object value.
Parameters:
  sourceName - a String naming a source.
Parameters:
  source - an Object value for the source.
throws:
  IllegalArgumentException - if source is null.
throws:
  IllegalArgumentException - if sourceName is null.
throws:
  IllegalArgumentException - if source is notan instance of (any of) theexpected class(es).
throws:
  IllegalArgumentException - if the associated operation hasno source with the supplied name.
since:
   JAI 1.1



Fields inherited from java.awt.image.renderable.ParameterBlock
protected Vector<Object> parameters(Code)(Java Doc)
protected Vector<Object> sources(Code)(Java Doc)

Methods inherited from java.awt.image.renderable.ParameterBlock
public ParameterBlock add(Object obj)(Code)(Java Doc)
public ParameterBlock add(byte b)(Code)(Java Doc)
public ParameterBlock add(char c)(Code)(Java Doc)
public ParameterBlock add(short s)(Code)(Java Doc)
public ParameterBlock add(int i)(Code)(Java Doc)
public ParameterBlock add(long l)(Code)(Java Doc)
public ParameterBlock add(float f)(Code)(Java Doc)
public ParameterBlock add(double d)(Code)(Java Doc)
public ParameterBlock addSource(Object source)(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
public byte getByteParameter(int index)(Code)(Java Doc)
public char getCharParameter(int index)(Code)(Java Doc)
public double getDoubleParameter(int index)(Code)(Java Doc)
public float getFloatParameter(int index)(Code)(Java Doc)
public int getIntParameter(int index)(Code)(Java Doc)
public long getLongParameter(int index)(Code)(Java Doc)
public int getNumParameters()(Code)(Java Doc)
public int getNumSources()(Code)(Java Doc)
public Object getObjectParameter(int index)(Code)(Java Doc)
public Class[] getParamClasses()(Code)(Java Doc)
public Vector<Object> getParameters()(Code)(Java Doc)
public RenderableImage getRenderableSource(int index)(Code)(Java Doc)
public RenderedImage getRenderedSource(int index)(Code)(Java Doc)
public short getShortParameter(int index)(Code)(Java Doc)
public Object getSource(int index)(Code)(Java Doc)
public Vector<Object> getSources()(Code)(Java Doc)
public void removeParameters()(Code)(Java Doc)
public void removeSources()(Code)(Java Doc)
public ParameterBlock set(Object obj, int index)(Code)(Java Doc)
public ParameterBlock set(byte b, int index)(Code)(Java Doc)
public ParameterBlock set(char c, int index)(Code)(Java Doc)
public ParameterBlock set(short s, int index)(Code)(Java Doc)
public ParameterBlock set(int i, int index)(Code)(Java Doc)
public ParameterBlock set(long l, int index)(Code)(Java Doc)
public ParameterBlock set(float f, int index)(Code)(Java Doc)
public ParameterBlock set(double d, int index)(Code)(Java Doc)
public void setParameters(Vector<Object> parameters)(Code)(Java Doc)
public ParameterBlock setSource(Object source, int index)(Code)(Java Doc)
public void setSources(Vector<Object> sources)(Code)(Java Doc)
public Object shallowClone()(Code)(Java Doc)

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

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.