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

All known Subclasses:   javax.media.jai.operator.PeriodicShiftDescriptor,  javax.media.jai.operator.DivideDescriptor,  javax.media.jai.operator.GIFDescriptor,  javax.media.jai.operator.BMPDescriptor,  javax.media.jai.operator.CompositeDescriptor,  javax.media.jai.operator.ConjugateDescriptor,  javax.media.jai.operator.IIPDescriptor,  javax.media.jai.operator.HistogramDescriptor,  javax.media.jai.operator.LogDescriptor,  javax.media.jai.operator.DCTDescriptor,  javax.media.jai.operator.OrDescriptor,  javax.media.jai.operator.PiecewiseDescriptor,  javax.media.jai.operator.MatchCDFDescriptor,  javax.media.jai.operator.AddDescriptor,  ca.forklabs.media.jai.operator.UnaryFunctionDescriptor,  javax.media.jai.operator.MedianFilterDescriptor,  javax.media.jai.operator.IIPResolutionDescriptor,  javax.media.jai.operator.BinarizeDescriptor,  javax.media.jai.operator.EncodeDescriptor,  javax.media.jai.operator.FormatDescriptor,  javax.media.jai.operator.AWTImageDescriptor,  javax.media.jai.operator.PNGDescriptor,  javax.media.jai.operator.FileStoreDescriptor,  javax.media.jai.operator.MultiplyComplexDescriptor,  javax.media.jai.operator.AndConstDescriptor,  javax.media.jai.operator.CropDescriptor,  javax.media.jai.operator.SubtractConstDescriptor,  javax.media.jai.operator.ErrorDiffusionDescriptor,  javax.media.jai.operator.PatternDescriptor,  javax.media.jai.operator.DivideIntoConstDescriptor,  javax.media.jai.operator.GradientMagnitudeDescriptor,  javax.media.jai.operator.ThresholdDescriptor,  javax.media.jai.operator.BandMergeDescriptor,  javax.media.jai.operator.AndDescriptor,  javax.media.jai.operator.SubtractDescriptor,  javax.media.jai.operator.DivideComplexDescriptor,  ca.forklabs.media.jai.operator.AutoRescaleDescriptor,  ca.forklabs.media.jai.operator.KMeansDescriptor,  javax.media.jai.operator.TIFFDescriptor,  javax.media.jai.operator.ColorQuantizerDescriptor,  javax.media.jai.operator.AddCollectionDescriptor,  javax.media.jai.operator.SubtractFromConstDescriptor,  javax.media.jai.operator.PolarToComplexDescriptor,  javax.media.jai.operator.MeanDescriptor,  javax.media.jai.operator.MinFilterDescriptor,  javax.media.jai.operator.BandSelectDescriptor,  javax.media.jai.operator.XorConstDescriptor,  javax.media.jai.operator.OrConstDescriptor,  javax.media.jai.operator.MaxFilterDescriptor,  javax.media.jai.operator.ErodeDescriptor,  javax.media.jai.operator.ConstantDescriptor,  ca.forklabs.media.jai.operator.ImageFunction3DDescriptor,  javax.media.jai.operator.IDCTDescriptor,  javax.media.jai.operator.AbsoluteDescriptor,  javax.media.jai.operator.OrderedDitherDescriptor,  javax.media.jai.operator.FPXDescriptor,  javax.media.jai.operator.PhaseDescriptor,  javax.media.jai.operator.OverlayDescriptor,  javax.media.jai.operator.StreamDescriptor,  javax.media.jai.operator.MaxDescriptor,  javax.media.jai.operator.XorDescriptor,  javax.media.jai.operator.ColorConvertDescriptor,  javax.media.jai.operator.DilateDescriptor,  javax.media.jai.operator.PNMDescriptor,  javax.media.jai.operator.MultiplyDescriptor,  javax.media.jai.operator.InvertDescriptor,  javax.media.jai.operator.MultiplyConstDescriptor,  javax.media.jai.operator.AddConstDescriptor,  javax.media.jai.operator.MagnitudeSquaredDescriptor,  javax.media.jai.operator.ConvolveDescriptor,  javax.media.jai.operator.BoxFilterDescriptor,  com.sun.media.jai.operator.ImageReadDescriptor,  javax.media.jai.operator.MinDescriptor,  javax.media.jai.operator.ExpDescriptor,  javax.media.jai.operator.ClampDescriptor,  javax.media.jai.operator.ExtremaDescriptor,  javax.media.jai.operator.RescaleDescriptor,  javax.media.jai.operator.NullDescriptor,  javax.media.jai.operator.BorderDescriptor,  javax.media.jai.operator.BandCombineDescriptor,  com.sun.media.jai.operator.ImageWriteDescriptor,  javax.media.jai.operator.LookupDescriptor,  javax.media.jai.operator.MagnitudeDescriptor,  javax.media.jai.operator.FileLoadDescriptor,  javax.media.jai.operator.NotDescriptor,  javax.media.jai.operator.AddConstToCollectionDescriptor,  javax.media.jai.operator.DivideByConstDescriptor,  javax.media.jai.operator.JPEGDescriptor,  javax.media.jai.operator.UnsharpMaskDescriptor,  ca.forklabs.media.jai.CollectionDescriptor,  javax.media.jai.operator.MosaicDescriptor,  javax.media.jai.operator.URLDescriptor,  javax.media.jai.operator.RenderableDescriptor,
OperationDescriptorImpl
abstract public class OperationDescriptorImpl implements OperationDescriptor,java.io.Serializable(Code)
This class provides an abstract implementation of the OperationDescriptor interface that is suitable for subclassing.
See Also:   OperationDescriptor
See Also:   RegistryElementDescriptor


Field Summary
 String[]paramNames
     The array of parameter names.
final protected  String[][]resources
     The resource tags and their corresponding data, stored as an two-dimensional String array.
final protected  String[]sourceNames
     An array of Strings that are the names of the sources of this operation.
final protected  String[]supportedModes
     An array of operation modes supported by this operator.

Constructor Summary
public  OperationDescriptorImpl(String[][] resources, String[] supportedModes, String[] sourceNames, Class[][] sourceClasses, String[] paramNames, Class[][] paramClasses, Object[][] paramDefaults, Object[][] validParamValues)
     Constructor.
public  OperationDescriptorImpl(String[][] resources, String[] supportedModes, String[] sourceNames, Class[][] sourceClasses, String[] paramNames, Class[] paramClasses, Object[] paramDefaults, Object[] validParamValues)
     Constructor.
public  OperationDescriptorImpl(String[][] resources, String[] supportedModes, int numSources, String[] paramNames, Class[] paramClasses, Object[] paramDefaults, Object[] validParamValues)
     Constructor.
public  OperationDescriptorImpl(String[][] resources, String[] supportedModes, String[] sourceNames, Class[][] sourceClasses, ParameterListDescriptor[] pld)
     Constructor which accepts a ParameterListDescriptor to describe the parameters for each mode.
public  OperationDescriptorImpl(String[][] resources, String[] supportedModes, String[] sourceNames, Class[][] sourceClasses, ParameterListDescriptor pld)
     Constructor.
public  OperationDescriptorImpl(String[][] resources, Class[] sourceClasses, Class[] renderableSourceClasses, Class[] paramClasses, String[] paramNames, Object[] paramDefaults)
     Constructor.
Parameters:
  resources - The resource tags and their corresponding data.
Parameters:
  sourceClasses - The source types required by this operationin the rendered mode.
public  OperationDescriptorImpl(String[][] resources, int numSources, Class[] paramClasses, String[] paramNames, Object[] paramDefaults)
     Constructor for operations that support either the rendered or the renderable or both modes.
public  OperationDescriptorImpl(String[][] resources, Class[] sourceClasses)
     Constructor for operations that supports only the rendered mode and requires no parameters.
Parameters:
  resources - The resource tags and their corresponding data.
Parameters:
  sourceClasses - The source types required by this operationin the rendered mode.
public  OperationDescriptorImpl(String[][] resources, Class[] sourceClasses, Class[] renderableSourceClasses)
     Constructor for operations that supports either the rendered or the renderable or both modes and requires no parameters.
Parameters:
  resources - The resource tags and their corresponding data.
Parameters:
  sourceClasses - The source types required by this operationin the rendered mode.
public  OperationDescriptorImpl(String[][] resources, Class[] paramClasses, String[] paramNames, Object[] paramDefaults)
     Constructor for operations that supports either the rendered or the renderable or both modes and requires no sources.
public  OperationDescriptorImpl(String[][] resources, int numSources)
     Constructor for operations that support the rendered mode and possibly the renderable mode and require no parameters.

Method Summary
public  booleanarePropertiesSupported()
    
protected static  ClassgetDefaultSourceClass(String modeName)
     Get the default source class for the supported mode.
public  ClassgetDestClass(String modeName)
     Returns a Class that describes the type of destination this operation produces for the specified mode.

For the sake of backward compatibilty, if a deprecated constructor was used to create this object, then this method simply calls its deprecated equivalent, if the modeName is either "rendered" or "renderable".

public  ClassgetDestClass()
     Returns the destination class type of this operation for the rendered mode.
public  ObjectgetInvalidRegion(String modeName, ParameterBlock oldParamBlock, RenderingHints oldHints, ParameterBlock newParamBlock, RenderingHints newHints, OperationNode node)
     Calculates the region over which two distinct renderings of an operation may be expected to differ.

The class of the returned object will vary as a function of the mode of the operation.

public  StringgetName()
     Returns the name of this operation; this is the same as the GlobalName value in the resources and is visible to all.
public  intgetNumParameters()
     Returns the number of parameters (not including sources) required by this operation.
public  intgetNumSources()
     Returns the number of sources required by this operation.
public  Class[]getParamClasses()
     Returns the parameter class types of this operation.
public  ObjectgetParamDefaultValue(int index)
     Returns the default value of specified parameter.
public  Object[]getParamDefaults()
     Returns the default values of the parameters for this operation. If this operation has no parameters, this method returns null.
public  NumbergetParamMaxValue(int index)
     Returns the maximum legal value of a specified numeric parameter for this operation.
public  NumbergetParamMinValue(int index)
     Returns the minimum legal value of a specified numeric parameter for this operation.
public  String[]getParamNames()
     Returns the localized parameter names of this operation.
public  ParameterListDescriptorgetParameterListDescriptor(String modeName)
     Returns the ParameterListDescriptor that describes the associated parameters (NOT sources).
public  PropertyGenerator[]getPropertyGenerators(String modeName)
     Returns an array of PropertyGenerators implementing the property inheritance for this operator that may be used as a basis for the operation's property management.
public  PropertyGenerator[]getPropertyGenerators()
     Returns an array of PropertyGenerators implementing the property inheritance for this operation.
public  ClassgetRenderableDestClass()
     Returns the destination class type of this operation for the renderable mode.
public  Class[]getRenderableSourceClasses()
     Returns the source class types of this operation for the renderable mode.
public  ResourceBundlegetResourceBundle(Locale locale)
     Returns the resource data for this operation in a ResourceBundle.
public  String[][]getResources(Locale locale)
     Returns the resource data for this operation.
public  Class[]getSourceClasses(String modeName)
     Returns an array of Classes that describe the types of sources required by this operation for the specified mode.
public  Class[]getSourceClasses()
     Returns the source class types of this operation for the rendered mode.
public  String[]getSourceNames()
     Returns an array of Strings that are the names of the sources of this operation.
public  String[]getSupportedModes()
     The registry modes supported by this descriptor.
public  booleanisImmediate()
     Returns true if the operation should be computed immediately for all supported modes of this operation during the call to JAI.create(); that is, the operation is placed in immediate mode.
public  booleanisModeSupported(String modeName)
     Does this descriptor support the specified registry mode ?. The modeNames are treated in a case-insensitive (but retentive) manner.
Parameters:
  modeName - the registry mode name true, if the implementation of this descriptor supportsthe specified mode.
public  booleanisRenderableSupported()
     Returns true if this operation supports the renderable mode.
public  booleanisRenderedSupported()
     Returns true if this operation supports the rendered mode.
protected static  Class[][]makeDefaultSourceClassList(String[] supportedModes, int numSources)
     Create a list of per mode source classes for each supported mode which can then be passed on to the constructor.
public  booleanvalidateArguments(String modeName, ParameterBlock args, StringBuffer msg)
     Returns true if this operation/mode is capable of handling the input source(s) and/or parameter(s) specified in the ParameterBlock, or false otherwise, in which case an explanatory message may be appended to the StringBuffer.

This method is the standard place where input arguments are validated against this operation's specification for the specified mode.

public  booleanvalidateArguments(ParameterBlock args, StringBuffer msg)
     Returns true if this operation supports the rendered mode, and is capable of handling the input arguments for the rendered mode.
protected  booleanvalidateParameters(String modeName, ParameterBlock args, StringBuffer msg)
     Returns true if this operation is capable of handling the input parameters for the specified mode.
protected  booleanvalidateParameters(ParameterBlock args, StringBuffer msg)
     Returns true if this operation is capable of handling the given input parameters.
public  booleanvalidateRenderableArguments(ParameterBlock args, StringBuffer msg)
     Returns true if this operation supports the renderable mode, and is capable of handling the input arguments for the renderable mode.
protected  booleanvalidateRenderableSources(ParameterBlock args, StringBuffer msg)
     Returns true if this operation supports the renderable mode, and is capable of handling the given input source(s) for the renderable mode.
protected  booleanvalidateSources(String modeName, ParameterBlock args, StringBuffer msg)
     Returns true if this operation supports the specified mode, and is capable of handling the given input source(s) for the specified mode.
protected  booleanvalidateSources(ParameterBlock args, StringBuffer msg)
     Returns true if this operation supports the rendered mode, and is capable of handling the given input source(s) for the rendered mode.

Field Detail
paramNames
String[] paramNames(Code)
The array of parameter names. We need this because ParameterListDescriptor works only with parameter names and not parameter indices. But many of the deprecated methods and the validation of ParameterBlock has to happen through parameter indices.



resources
final protected String[][] resources(Code)
The resource tags and their corresponding data, stored as an two-dimensional String array.
since:
   JAI 1.1



sourceNames
final protected String[] sourceNames(Code)
An array of Strings that are the names of the sources of this operation. The names must be listed in the order corresponding to the source Classes.
since:
   JAI 1.1



supportedModes
final protected String[] supportedModes(Code)
An array of operation modes supported by this operator. Must be a non-empty subset of "rendered", "renderable", "collection" and "renderableCollection" or other image operator modes to be defined later.
since:
   JAI 1.1




Constructor Detail
OperationDescriptorImpl
public OperationDescriptorImpl(String[][] resources, String[] supportedModes, String[] sourceNames, Class[][] sourceClasses, String[] paramNames, Class[][] paramClasses, Object[][] paramDefaults, Object[][] validParamValues)(Code)
Constructor. Note that sourceClasses[m][i] corresponds to the mode supportedModes[m] and the source sourceNames[i]. Similarly paramClasses[m][i] corresponds to the mode supportedModes[m] and the parameter paramNames[i]. The same holds true for paramDefaults and validParamValues
Parameters:
  resources - The resource tags and their corresponding data.
Parameters:
  supportedModes - The modes that this operator supports.maybe one or more of "rendered", "renderable", "collection",and "renderableCollection" (or other image operation relatedmodes that maybe defined later). Must support at least one mode.
Parameters:
  sourceNames - The source names. It may be nullif this operation has no sources or if the default sourcenaming convention ("source0", "source1", etc.) is to be used.
Parameters:
  sourceClasses - The source types required by this operationfor each of the above supported modes. can be nullif this operation has no sources. The number ofsources for each mode must be the same.
Parameters:
  paramNames - The localized parameter names. It may benull if this operation has no parameters.
Parameters:
  paramClasses - The parameter types required by this operation.for each mode. It may be null if this operationhas no parameters. The number of parameters for each modemust be the same.
Parameters:
  paramDefaults - The parameter default values for each parameterfor each mode. It may be null if thisoperation has no parameters, or none of the parameters hasa default value for any mode. The parameter defaults for anindividual mode may be null, if there are no defaults forthat mode.
Parameters:
  validParamValues - defines the valid values for each parameterfor each mode. this can be null if the operationhas no parameters. Otherwise each element can be filled in asdefined in ParameterListDescriptorImpl.ParameterListDescriptorImpl(ObjectString[]Class[]Object[]Object[])
throws:
  IllegalArgumentException - if resources isnull.
throws:
  IllegalArgumentException - if supportedModes is null
throws:
  IllegalArgumentException - if the number of sourceClassesfor each mode is not the same or is not equal to the numberof sourceNames (if non-null).
throws:
  IllegalArgumentException - if this operation has parameters andparamClasses or paramNames isnull.
throws:
  IllegalArgumentException - if sourceNamesis non-null and its length does not equalthe number of sources of this operation.
throws:
  IllegalArgumentException - if this operation has parametersand paramClasses, paramNames,and paramDefaults (if all are notnull) do not all have the same number of elements.
since:
   JAI 1.1



OperationDescriptorImpl
public OperationDescriptorImpl(String[][] resources, String[] supportedModes, String[] sourceNames, Class[][] sourceClasses, String[] paramNames, Class[] paramClasses, Object[] paramDefaults, Object[] validParamValues)(Code)
Constructor. This assumes that all modes have the same set of parameter classes, defaults and valid values. Note that sourceClasses[m][i] corresponds to the mode supportedModes[m] and the source sourceNames[i].
Parameters:
  resources - The resource tags and their corresponding data.
Parameters:
  supportedModes - The modes that this operator supports.maybe one or more of "rendered", "renderable", "collection",and "renderableCollection". Must support at least one mode.
Parameters:
  sourceNames - The source names. It may be nullif this operation has no sources or if the default sourcenaming convention ("source0", "source1", etc.) is to be used.
Parameters:
  sourceClasses - The source types required by this operationfor each of the above supported modes. can be nullif this operation has no sources. The number ofsources for each mode must be the same.
Parameters:
  paramNames - The localized parameter names. It may benull if this operation has no parameters.
Parameters:
  paramClasses - The parameter types required by this operation.It may be null if this operation has no parameters.
Parameters:
  paramDefaults - The parameter default values for each parameterIt may be null if this operation has noparameters, or none of the parameters has a default value.
Parameters:
  validParamValues - defines the valid values for each parameterfor all modes. this can be null if the operationhas no parameters. Otherwise it can be filled in asdefined in ParameterListDescriptorImpl.ParameterListDescriptorImpl(ObjectString[]Class[]Object[]Object[])
throws:
  IllegalArgumentException - if resources isnull.
throws:
  IllegalArgumentException - if supportedModes is null
throws:
  IllegalArgumentException - if the number of sourceClassesfor each mode is not the same or is not equal to the numberof sourceNames (if non-null).
throws:
  IllegalArgumentException - if this operation has parameters andparamClasses or paramNames isnull.
throws:
  IllegalArgumentException - if sourceNamesis non-null and its length does not equalthe number of sources of this operation.
throws:
  IllegalArgumentException - if this operation has parametersand paramClasses, paramNames,and paramDefaults (if all are notnull) do not all have the same number of elements.
since:
   JAI 1.1



OperationDescriptorImpl
public OperationDescriptorImpl(String[][] resources, String[] supportedModes, int numSources, String[] paramNames, Class[] paramClasses, Object[] paramDefaults, Object[] validParamValues)(Code)
Constructor. This assumes that all modes have the same set of parameter classes, defaults and valid values. The source names are automatically generated using the default source naming convertion ("source0", "source1", etc.). The source class list is automatically generated using makeDefaultSourceClassList() from numSources and supportedModes
Parameters:
  resources - The resource tags and their corresponding data.
Parameters:
  supportedModes - The modes that this operator supports.maybe one or more of "rendered", "renderable", "collection",and "renderableCollection". Must support at least one mode.
Parameters:
  numSources - The number of sources.
Parameters:
  paramNames - The localized parameter names. It may benull if this operation has no parameters.
Parameters:
  paramClasses - The parameter types required by this operation.It may be null if this operation has no parameters.
Parameters:
  paramDefaults - The parameter default values for each parameterIt may be null if this operation has noparameters, or none of the parameters has a default value.
Parameters:
  validParamValues - defines the valid values for each parameterfor all modes. this can be null if the operationhas no parameters. Otherwise it can be filled in asdefined in ParameterListDescriptorImpl.ParameterListDescriptorImpl(ObjectString[]Class[]Object[]Object[])
throws:
  IllegalArgumentException - if resources isnull.
throws:
  IllegalArgumentException - if supportedModes is null
throws:
  IllegalArgumentException - if this operation has parameters andparamClasses or paramNames isnull.
throws:
  IllegalArgumentException - if this operation has parametersand paramClasses, paramNames,and paramDefaults (if all are notnull) do not all have the same number of elements.
since:
   JAI 1.1



OperationDescriptorImpl
public OperationDescriptorImpl(String[][] resources, String[] supportedModes, String[] sourceNames, Class[][] sourceClasses, ParameterListDescriptor[] pld)(Code)
Constructor which accepts a ParameterListDescriptor to describe the parameters for each mode. Note that sourceClasses[m][i] corresponds to the mode supportedModes[m] and the source sourceNames[i].
Parameters:
  resources - The resource tags and their corresponding data.
Parameters:
  supportedModes - The modes that this operator supports.maybe one or more of "rendered", "renderable", "collection",and "renderableCollection". Must support at least one mode.
Parameters:
  sourceNames - The source names. It may be nullif this operation has no sources or if the default sourcenaming convention ("source0", "source1", etc.) is to be used.
Parameters:
  sourceClasses - The source types required by this operationfor each of the above supported modes. can be nullif this operation has no sources. The number ofsources for each mode must be the same.
Parameters:
  pld - the parameter list descriptor for each mode.Can be null if there are no parameters.
throws:
  IllegalArgumentException - if resources isnull.
throws:
  IllegalArgumentException - if supportedModes is null
throws:
  IllegalArgumentException - if the number of sourceClassesfor each mode is not the same or is not equal to the numberof sourceNames (if non-null).
throws:
  IllegalArgumentException - if sourceNamesis non-null and its length does not equalthe number of sources of this operation.
since:
   JAI 1.1



OperationDescriptorImpl
public OperationDescriptorImpl(String[][] resources, String[] supportedModes, String[] sourceNames, Class[][] sourceClasses, ParameterListDescriptor pld)(Code)
Constructor. This assumes that all modes use the same ParameterListDescriptor. Note that sourceClasses[m][i] corresponds to the mode supportedModes[m] and the source sourceNames[i].
Parameters:
  resources - The resource tags and their corresponding data.
Parameters:
  supportedModes - The modes that this operator supports.maybe one or more of "rendered", "renderable", "collection",and "renderableCollection". Must support at least one mode.
Parameters:
  sourceNames - The source names. It may be nullif this operation has no sources or if the default sourcenaming convention ("source0", "source1", etc.) is to be used.
Parameters:
  sourceClasses - The source types required by this operationfor each of the above supported modes. can be nullif this operation has no sources. The number ofsources for each mode must be the same.
Parameters:
  pld - the parameter list descriptor for all modes.Can be null if there are no parameters.
throws:
  IllegalArgumentException - if resources isnull.
throws:
  IllegalArgumentException - if supportedModes is null
throws:
  IllegalArgumentException - if the number of sourceClassesfor each mode is not the same or is not equal to the numberof sourceNames (if non-null).
throws:
  IllegalArgumentException - if sourceNamesis non-null and its length does not equalthe number of sources of this operation.
since:
   JAI 1.1



OperationDescriptorImpl
public OperationDescriptorImpl(String[][] resources, Class[] sourceClasses, Class[] renderableSourceClasses, Class[] paramClasses, String[] paramNames, Object[] paramDefaults)(Code)
Constructor.
Parameters:
  resources - The resource tags and their corresponding data.
Parameters:
  sourceClasses - The source types required by this operationin the rendered mode. It may be nullif this operation does not support the rendered mode, orif it has no sources.
Parameters:
  renderableSourceClasses - The source types required by thisoperation in the renderable mode. It may benull if this operation does not support therenderable mode, or if it has no sources.
Parameters:
  paramClasses - The parameter types required by this operation.It may be null if this operation has noparameters.
Parameters:
  paramNames - The localized parameter names. It may benull if this operation has no parameters.
Parameters:
  paramDefaults - The parameter default values. It may benull if this operation has no parameters,or none of the parameters has a default value.
throws:
  IllegalArgumentException - if resources isnull.
throws:
  IllegalArgumentException - if this operation supports therendered mode, and it has sources, andsourceClasses is null.
throws:
  IllegalArgumentException - if this operation supports therenderable mode, and it has sources, andrenderableSourceClasses is null.
throws:
  IllegalArgumentException - if sourceClassesand renderableSourceClasses (if both are notnull) do not have the same number of elements.
throws:
  IllegalArgumentException - if this operation has parameters andparamClasses or paramNames isnull.
throws:
  IllegalArgumentException - if this operation has parametersand paramClasses, paramNames,and paramDefaults (if all are notnull) do not all have the same number of elements.
See Also:   OperationDescriptorImpl.OperationDescriptorImpl(String[][]String[]String[]Class[][]String[]Class[]Object[]Object[])



OperationDescriptorImpl
public OperationDescriptorImpl(String[][] resources, int numSources, Class[] paramClasses, String[] paramNames, Object[] paramDefaults)(Code)
Constructor for operations that support either the rendered or the renderable or both modes. The class type for all the source(s) of the rendered mode (if supported) is set to java.awt.image.RenderedImage.class. The class type for all the source(s) of the renderable mode (if supported) is set to java.awt.image.renderable.RenderableImage.
Parameters:
  resources - The resource tags and their corresponding data.
Parameters:
  numSources - The number of sources required by this operation.It should not be negative. A negative value indicates thisoperation has no sources.
Parameters:
  paramClasses - The parameter types required by this operation.It may be null if this operation has noparameters.
Parameters:
  paramNames - The localized parameter names. It may benull if this operation has no parameters.
Parameters:
  paramDefaults - The parameter default values. It may benull if this operation has no parameters,or none of the parameters has a default value.
throws:
  IllegalArgumentException - if resources isnull.
throws:
  IllegalArgumentException - if this operation has parameters andparamClasses or paramNames isnull.
throws:
  IllegalArgumentException - if this operation has parametersand paramClasses, paramNames,and paramDefaults (if not null)do not all have the same number of elements.
See Also:   OperationDescriptorImpl.OperationDescriptorImpl(String[][]String[]intString[]Class[]Object[]Object[])



OperationDescriptorImpl
public OperationDescriptorImpl(String[][] resources, Class[] sourceClasses)(Code)
Constructor for operations that supports only the rendered mode and requires no parameters.
Parameters:
  resources - The resource tags and their corresponding data.
Parameters:
  sourceClasses - The source types required by this operationin the rendered mode. It may be nullif this operation has no sources.
throws:
  IllegalArgumentException - if resources isnull.
See Also:   OperationDescriptorImpl.OperationDescriptorImpl(String[][]String[]String[]Class[][]String[]Class[]Object[]Object[])



OperationDescriptorImpl
public OperationDescriptorImpl(String[][] resources, Class[] sourceClasses, Class[] renderableSourceClasses)(Code)
Constructor for operations that supports either the rendered or the renderable or both modes and requires no parameters.
Parameters:
  resources - The resource tags and their corresponding data.
Parameters:
  sourceClasses - The source types required by this operationin the rendered mode. It may be nullif this operation does not support the rendered mode, orif it has no sources.
Parameters:
  renderableSourceClasses - The source types required by thisoperation in the renderable mode. It may benull if this operation does not support therenderable mode, or if it has no sources.
throws:
  IllegalArgumentException - if resources isnull.
throws:
  IllegalArgumentException - if this operation supports therendered mode, and it has sources, andsourceClasses is null.
throws:
  IllegalArgumentException - if this operation supports therenderable mode, and it has sources, andrenderableSourceClasses is null.
throws:
  IllegalArgumentException - if sourceClassesand renderableSourceClasses (if both are notnull) do not have the same number of elements.
See Also:   OperationDescriptorImpl.OperationDescriptorImpl(String[][]String[]String[]Class[][]String[]Class[]Object[]Object[])



OperationDescriptorImpl
public OperationDescriptorImpl(String[][] resources, Class[] paramClasses, String[] paramNames, Object[] paramDefaults)(Code)
Constructor for operations that supports either the rendered or the renderable or both modes and requires no sources.
throws:
  IllegalArgumentException - if resources isnull.
throws:
  IllegalArgumentException - if this operation has parameters andparamClasses or paramNames isnull.
throws:
  IllegalArgumentException - if this operation has parametersand paramClasses, paramNames,and paramDefaults (if not null)do not all have the same number of elements.
See Also:   OperationDescriptorImpl.OperationDescriptorImpl(String[][]String[]intString[]Class[]Object[]Object[])



OperationDescriptorImpl
public OperationDescriptorImpl(String[][] resources, int numSources)(Code)
Constructor for operations that support the rendered mode and possibly the renderable mode and require no parameters. The class type for all the source(s) of the rendered mode is set to java.awt.image.RenderedImage.class. The class type for all the source(s) of the renderable mode (if supported) is set to java.awt.image.renderable.RenderableImage.
Parameters:
  resources - The resource tags and their corresponding data.
Parameters:
  numSources - The number of sources required by this operation.It should not be negative. A negative value indicates thisoperation has no sources.
throws:
  IllegalArgumentException - if resources isnull.
See Also:   OperationDescriptorImpl.OperationDescriptorImpl(String[][]String[]intString[]Class[]Object[]Object[])




Method Detail
arePropertiesSupported
public boolean arePropertiesSupported()(Code)
Does this descriptor support properties ? The default implementation in this class returnstrue so that properties are always supported.Operations that do not wish to support properties mustoverride this implementation.
See Also:   PropertyGenerator
See Also:   RegistryElementDescriptor
since:
   JAI 1.1



getDefaultSourceClass
protected static Class getDefaultSourceClass(String modeName)(Code)
Get the default source class for the supported mode. "rendered" - java.awt.image.RenderedImage.class "renderable" - java.awt.image.renderable.RenderableImage.class "collection" - java.util.Collection.class "renderableCollection" - java.util.Collection.class
since:
   JAI 1.1



getDestClass
public Class getDestClass(String modeName)(Code)
Returns a Class that describes the type of destination this operation produces for the specified mode.

For the sake of backward compatibilty, if a deprecated constructor was used to create this object, then this method simply calls its deprecated equivalent, if the modeName is either "rendered" or "renderable".
Parameters:
  modeName - the operation mode name
throws:
  IllegalArgumentException - if modeName is nullor if it is not one of the supported modes.
since:
   JAI 1.1




getDestClass
public Class getDestClass()(Code)
Returns the destination class type of this operation for the rendered mode. The default implementation in this class returns java.awt.image.RenderedImage.class if this operation supports the rendered mode, or null otherwise.
See Also:   OperationDescriptorImpl.getDestClass



getInvalidRegion
public Object getInvalidRegion(String modeName, ParameterBlock oldParamBlock, RenderingHints oldHints, ParameterBlock newParamBlock, RenderingHints newHints, OperationNode node)(Code)
Calculates the region over which two distinct renderings of an operation may be expected to differ.

The class of the returned object will vary as a function of the mode of the operation. For rendered and renderable two- dimensional images this will be an instance of a class which implements java.awt.Shape.
Parameters:
  modeName - The name of the mode.
Parameters:
  oldParamBlock - The previous sources and parameters.
Parameters:
  oldHints - The previous hints.
Parameters:
  newParamBlock - The current sources and parameters.
Parameters:
  newHints - The current hints.
Parameters:
  node - The affected node in the processing chain. null to indicate that there is nocommon region of validity.
throws:
  IllegalArgumentException - if modeNameis null or if the operation requires eithersources or parameters and either oldParamBlockor newParamBlock is null.
throws:
  IllegalArgumentException - if oldParamBlock ornewParamBlock do not contain sufficient sourcesor parameters for the operation in question.
since:
   JAI 1.1




getName
public String getName()(Code)
Returns the name of this operation; this is the same as the GlobalName value in the resources and is visible to all. This is also descriptor name under which it is registered in the OperationRegistry. A String representing the operation'sglobal name.
throws:
  MissingResourceException - if the GlobalNameresource value is not supplied in the resources.



getNumParameters
public int getNumParameters()(Code)
Returns the number of parameters (not including sources) required by this operation.
See Also:   ParameterListDescriptor.getNumParameters



getNumSources
public int getNumSources()(Code)
Returns the number of sources required by this operation. All modes have the same number of sources.



getParamClasses
public Class[] getParamClasses()(Code)
Returns the parameter class types of this operation. If this operation has no parameters, this method returns null.
See Also:   ParameterListDescriptor.getParamClasses



getParamDefaultValue
public Object getParamDefaultValue(int index)(Code)
Returns the default value of specified parameter. The default value may be null. If a parameter has no default value, this method returns OperationDescriptor.NO_PARAMETER_DEFAULT.
Parameters:
  index - The index of the parameter whose defaultvalue is queried.
throws:
  IllegalArgumentException - if this operation has no parameters.
throws:
  ArrayIndexOutOfBoundsException - if there is no parametercorresponding to the specified index.
See Also:   ParameterListDescriptor.getParamDefaultValue



getParamDefaults
public Object[] getParamDefaults()(Code)
Returns the default values of the parameters for this operation. If this operation has no parameters, this method returns null. If a parameter does not have a default value, the constant OperationDescriptor.NO_PARAMETER_DEFAULT will be returned. The validateArguments() and validateRenderableArguments method will return false if an input parameter without a default value is supplied as null, or if an unspecified tailing parameter does not have a default value.
See Also:   ParameterListDescriptor.getParamDefaults



getParamMaxValue
public Number getParamMaxValue(int index)(Code)
Returns the maximum legal value of a specified numeric parameter for this operation. If the specified parameter is non-numeric, this method returns null.

The return value should be of the class type corresponding to the parameter's primitive type, that is, Byte for a byte parameter, Integer for an int parameter, and so forth.

The default implementation returns the maximum value in the parameter data type's full range.
Parameters:
  index - The index of the parameter to be queried. A Number representing the maximum legal value,or null if the specified parameter is notnumeric.
throws:
  IllegalArgumentException - if this operation has no parameters.
throws:
  ArrayIndexOutOfBoundsException - if there is no parametercorresponding to the specified index.
See Also:   ParameterListDescriptor.getParamValueRange
See Also:   ParameterListDescriptor.getEnumeratedParameterValues
See Also:   ParameterListDescriptor.isParameterValueValid




getParamMinValue
public Number getParamMinValue(int index)(Code)
Returns the minimum legal value of a specified numeric parameter for this operation. If the specified parameter is non-numeric, this method returns null.

The return value should be of the class types corresponding to the parameter's primitive type, that is, Byte for a byte parameter, Integer for an int parameter, and so forth.

The default implementation returns the minimum value in the parameter data type's full range.
Parameters:
  index - The index of the parameter to be queried. A Number representing the minimum legal value,or null if the specified parameter is notnumeric.
throws:
  IllegalArgumentException - if this operation has no parameters.
throws:
  ArrayIndexOutOfBoundsException - if there is no parametercorresponding to the specified index.
See Also:   ParameterListDescriptor.getParamValueRange
See Also:   ParameterListDescriptor.getEnumeratedParameterValues
See Also:   ParameterListDescriptor.isParameterValueValid




getParamNames
public String[] getParamNames()(Code)
Returns the localized parameter names of this operation. If this operation has no parameters, this method returns null.
See Also:   ParameterListDescriptor.getParamNames



getParameterListDescriptor
public ParameterListDescriptor getParameterListDescriptor(String modeName)(Code)
Returns the ParameterListDescriptor that describes the associated parameters (NOT sources). This method returns null if there are no parameters for the specified modeName. If the specified modeName supports parameters but the implementing class does not have parameters, then this method returns a non-null ParameterListDescriptor whose getNumParameters() returns 0.
Parameters:
  modeName - the registry mode name.
throws:
  IllegalArgumentException - if modeName is nullor if it is not one of the supported modes.
See Also:   RegistryElementDescriptor
since:
   JAI 1.1



getPropertyGenerators
public PropertyGenerator[] getPropertyGenerators(String modeName)(Code)
Returns an array of PropertyGenerators implementing the property inheritance for this operator that may be used as a basis for the operation's property management. The default implementation returns null, indicating that source properties are simply copied. Subclasses should override this method if they wish to produce inherited properties.

For the sake of backward compatibilty, if a deprecated constructor was used to create this object, then this method simply calls its deprecated equivalent, getPropertyGenerators(), if the modeName is either "rendered" or "renderable".
Parameters:
  modeName - the registry mode name An array of PropertyGenerators, ornull if this operation does not have any ofits own PropertyGenerators.
throws:
  IllegalArgumentException - if modeName is nullor if it is not one of the supported modes.
throws:
  UnsupportedOperationException - if arePropertiesSupportedreturns false
See Also:   RegistryElementDescriptor
since:
   JAI 1.1




getPropertyGenerators
public PropertyGenerator[] getPropertyGenerators()(Code)
Returns an array of PropertyGenerators implementing the property inheritance for this operation. The default implementation returns null, indicating that source properties are simply copied. Subclasses should override this method if they wish to produce inherited properties.
See Also:   OperationDescriptorImpl.getPropertyGenerators



getRenderableDestClass
public Class getRenderableDestClass()(Code)
Returns the destination class type of this operation for the renderable mode. The default implementation in this class returns java.awt.image.renderable.RenderableImage.class if this operation supports the renderable mode, or null otherwise.
See Also:   OperationDescriptorImpl.getDestClass



getRenderableSourceClasses
public Class[] getRenderableSourceClasses()(Code)
Returns the source class types of this operation for the renderable mode. If this operation has no sources this method returns null.
throws:
  IllegalArgumentException - if the renderable modeis not supported.
See Also:   OperationDescriptorImpl.getSourceClasses



getResourceBundle
public ResourceBundle getResourceBundle(Locale locale)(Code)
Returns the resource data for this operation in a ResourceBundle. The resource data are taken from the getResources() method.

The default implementation ignores the Locale argument, and always returns the resources in the default Locale.
Parameters:
  locale - The Locale in which to localize theresource data. A ResourceBundle containing mandatory andoptional resource information.




getResources
public String[][] getResources(Locale locale)(Code)
Returns the resource data for this operation. It must contain String data for the following tags: "GlobalName", "LocalName", "Vendor", "Description", "DocURL", and "Version". Additional resources should be supplied when appropriate.

The default implementation simply returns a reference to the local "resources" variable, which should be supplied by each subclass by way of the superclass constructor. It also ignores the Locale argument, and always returns the Strings in the default Locale.
Parameters:
  locale - The Locale in which to localize theresource data. A two-dimensional array of Strings containingthe mandatory and optional resource tags and theircorresponding resource data. (String[i][0] isthe tag for the i-th resource and String[i][1] is thecorresponding data)




getSourceClasses
public Class[] getSourceClasses(String modeName)(Code)
Returns an array of Classes that describe the types of sources required by this operation for the specified mode. If this operation has no sources, this method returns null.
Parameters:
  modeName - the operation mode name
throws:
  IllegalArgumentException - if modeName is nullor if it is not one of the supported modes.
since:
   JAI 1.1



getSourceClasses
public Class[] getSourceClasses()(Code)
Returns the source class types of this operation for the rendered mode. If this operation has no sources, this method returns null.
throws:
  IllegalArgumentException - if the rendered modeis not supported.
See Also:   OperationDescriptorImpl.getSourceClasses



getSourceNames
public String[] getSourceNames()(Code)
Returns an array of Strings that are the names of the sources of this operation. If this operation has no sources, this method returns null. If this operation has sources but their names were not provided at construction time, then the returned names will be of the form "source0", "source1", etc.
since:
   JAI 1.1



getSupportedModes
public String[] getSupportedModes()(Code)
The registry modes supported by this descriptor. Known modes include those returned by RegistryMode.getModes() an array of Strings specifying the supported modes.
See Also:   RegistryMode
See Also:   RegistryElementDescriptor
since:
   JAI 1.1



isImmediate
public boolean isImmediate()(Code)
Returns true if the operation should be computed immediately for all supported modes of this operation during the call to JAI.create(); that is, the operation is placed in immediate mode. If true, and the computation fails, null will be returned from JAI.create(). If false, JAI.create() will return an instance of the appropriate destination class that may be asked to compute itself at a later time; this computation may fail at that time.

Operations that rely on an external resource, such as a source file, or that produce externally-visible side effects, such as writing to an output file, should return true from this method. Operations that rely only on their sources and parameters usually wish to return false in order to defer rendering as long as possible.

The default implementation in this class returns false so that deferred execution is invoked. Operations that wish to be placed in the immediate mode must override this implementation.




isModeSupported
public boolean isModeSupported(String modeName)(Code)
Does this descriptor support the specified registry mode ?. The modeNames are treated in a case-insensitive (but retentive) manner.
Parameters:
  modeName - the registry mode name true, if the implementation of this descriptor supportsthe specified mode. false otherwise.
throws:
  IllegalArgumentException - if modeName is null
See Also:   RegistryElementDescriptor
since:
   JAI 1.1



isRenderableSupported
public boolean isRenderableSupported()(Code)
Returns true if this operation supports the renderable mode. The default implementation in this class returns false. Operations that support the renderable mode must override this implementation.
See Also:   OperationDescriptorImpl.isModeSupported



isRenderedSupported
public boolean isRenderedSupported()(Code)
Returns true if this operation supports the rendered mode. The default implementation in this class returns true.
See Also:   OperationDescriptorImpl.isModeSupported



makeDefaultSourceClassList
protected static Class[][] makeDefaultSourceClassList(String[] supportedModes, int numSources)(Code)
Create a list of per mode source classes for each supported mode which can then be passed on to the constructor. Uses getDefaultSourceClass(modeName) to construct this list.
since:
   JAI 1.1



validateArguments
public boolean validateArguments(String modeName, ParameterBlock args, StringBuffer msg)(Code)
Returns true if this operation/mode is capable of handling the input source(s) and/or parameter(s) specified in the ParameterBlock, or false otherwise, in which case an explanatory message may be appended to the StringBuffer.

This method is the standard place where input arguments are validated against this operation's specification for the specified mode. It is called by JAI.create() as a part of its validation process. Thus it is strongly recommended that the application programs use the JAI.create() methods to instantiate all the rendered operations.

The default implementation of this method makes sure that this operator supports the specified mode and then calls validateSources and validateParameters.

This method sets all the undefined parameters in the ParameterBlock to their default values, if the default values are specified.

Note that DeferredData parameters will not be recognized as valid unless the parameter is defined to have class DeferredData.class.
Parameters:
  modeName - the operation mode name
Parameters:
  args - Input arguments, including source(s) and/or parameter(s).
Parameters:
  msg - A string that may contain error messages.
throws:
  IllegalArgumentException - if modeName is null
since:
   JAI 1.1
See Also:   OperationDescriptorImpl.validateSources
See Also:   OperationDescriptorImpl.validateParameters




validateArguments
public boolean validateArguments(ParameterBlock args, StringBuffer msg)(Code)
Returns true if this operation supports the rendered mode, and is capable of handling the input arguments for the rendered mode. The default implementation validates both the source(s) and the parameter(s).

Note that DeferredData parameters will not be recognized as valid unless the parameter is defined to have class DeferredData.class.

Additional validations should be added by each individual operation based on its specification.
throws:
  IllegalArgumentException - if args is null.
throws:
  IllegalArgumentException - if msg is nulland the validation fails.
See Also:   OperationDescriptorImpl.validateArguments




validateParameters
protected boolean validateParameters(String modeName, ParameterBlock args, StringBuffer msg)(Code)
Returns true if this operation is capable of handling the input parameters for the specified mode. The default implementation validates the number of parameters, the class type of each parameter, and null parameter. For non-null parameters, it also checks to see if the parameter value is valid. Subclasses should override this implementation if their requirement on the parameter objects are different from the default. This is used by validateArguments to validate the parameters.

JAI allows unspecified tailing parameters if these parameters have default values. This method automatically sets these unspecified parameters to their default values. However, if a parameter, which has a default value, is followed by one or more parameters that have no default values, this parameter must be specified in the ParameterBlock; else this method returns false.

This method sets all the undefined parameters in the ParameterBlock to their default values, if the default values are specified.

Note that DeferredData parameters will not be recognized as valid unless the parameter is defined to have class DeferredData.class.

For the sake of backward compatibilty, if a deprecated constructor was used to create this object, then this method simply calls its deprecated equivalent, if the modeName is either "rendered" or "renderable".
throws:
  IllegalArgumentException - if any of the input parameters are null.
since:
   JAI 1.1
See Also:   OperationDescriptorImpl.validateArguments
See Also:   ParameterListDescriptorImpl.isParameterValueValid




validateParameters
protected boolean validateParameters(ParameterBlock args, StringBuffer msg)(Code)
Returns true if this operation is capable of handling the given input parameters. The default implementation validates the number of parameters, the class type of each parameter, and null parameters. For those non-null numeric parameters, it also checks to see if the parameter value is within the minimum and maximum range. Subclasses should override this implementation if their requirements for the parameter objects are different from the default.

JAI allows unspecified tailing parameters if these parameters have default values. This method automatically sets these unspecified parameters to their default values. However, if a parameter, which has a default value, is followed by one or more parameters that have no default values, this parameter must be specified in the ParameterBlock; else this method returns false.

Note that DeferredData parameters will not be recognized as valid unless the parameter is defined to have class DeferredData.class.
throws:
  IllegalArgumentException - if args is null.
throws:
  IllegalArgumentException - if msg is nulland the validation fails.
See Also:   OperationDescriptorImpl.validateParameters




validateRenderableArguments
public boolean validateRenderableArguments(ParameterBlock args, StringBuffer msg)(Code)
Returns true if this operation supports the renderable mode, and is capable of handling the input arguments for the renderable mode. The default implementation validates both the source(s) and the parameter(s).

If this operation does not support the renderable mode, this method returns false regardless of the input arguments.

Note that DeferredData parameters will not be recognized as valid unless the parameter is defined to have class DeferredData.class.

Additional validations should be added by each individual operation based on its specification.
throws:
  IllegalArgumentException - if args is null.
throws:
  IllegalArgumentException - if msg is nulland the validation fails.
See Also:   OperationDescriptorImpl.validateArguments




validateRenderableSources
protected boolean validateRenderableSources(ParameterBlock args, StringBuffer msg)(Code)
Returns true if this operation supports the renderable mode, and is capable of handling the given input source(s) for the renderable mode. The default implementation validates the number of sources, the class type of each source, and null sources. Subclasses should override this implementation if their requirement on the sources are different from the default.
throws:
  IllegalArgumentException - if args is null.
throws:
  IllegalArgumentException - if msg is nulland the validation fails.
See Also:   OperationDescriptorImpl.validateSources



validateSources
protected boolean validateSources(String modeName, ParameterBlock args, StringBuffer msg)(Code)
Returns true if this operation supports the specified mode, and is capable of handling the given input source(s) for the specified mode. The default implementation ensures that the ParameterBlock has at least the required number of sources. It also verifies the class type of the first getNumSources() and makes sure that none of them are null. Any extra sources in the ParameterBlock are ignored. Subclasses should override this implementation if their requirement on the sources are different from the default. This method is used by validateArguments to validate the sources.

For the sake of backward compatibilty, if a deprecated constructor was used to create this object, then this method simply calls its deprecated equivalent, if the modeName is either "rendered" or "renderable".
Parameters:
  modeName - the operation mode name
Parameters:
  args - a ParameterBlock that has the sources
Parameters:
  msg - A string that may contain error messages.
throws:
  IllegalArgumentException - if any of the input parameters are null.
since:
   JAI 1.1
See Also:   OperationDescriptorImpl.validateArguments




validateSources
protected boolean validateSources(ParameterBlock args, StringBuffer msg)(Code)
Returns true if this operation supports the rendered mode, and is capable of handling the given input source(s) for the rendered mode. The default implementation validates the number of sources, the class type of each source, and null sources. Subclasses should override this implementation if their requirement on the sources are different from the default.
throws:
  IllegalArgumentException - if args is null.
throws:
  IllegalArgumentException - if msg is nulland the validation fails.
See Also:   OperationDescriptorImpl.validateSources



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.