Java Doc for DefaultProcessor.java in  » GIS » GeoTools-2.4.1 » org » geotools » coverage » processing » 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 » GIS » GeoTools 2.4.1 » org.geotools.coverage.processing 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.geotools.coverage.processing.AbstractProcessor
      org.geotools.coverage.processing.DefaultProcessor

DefaultProcessor
public class DefaultProcessor extends AbstractProcessor (Code)
Default implementation of a processor. This default implementation makes the following assumptions:

  • Operations are declared in the META-INF/services/org.opengis.coverage.processing.Operation file.
  • Operations are actually instances of AbstractOperation (note: this constraint may be relaxed in a future version after GeoAPI interfaces for grid coverage will be redesigned).
  • Most operations are backed by Java Advanced Imaging.

Note: This implementation do not caches produced coverages. Since coverages may be big, consider wrapping DefaultProcessor instances in BufferedProcessor .
since:
   2.2
version:
   $Id: DefaultProcessor.java 22482 2006-10-31 02:58:00Z desruisseaux $
author:
   Martin Desruisseaux




Constructor Summary
public  DefaultProcessor(RenderingHints hints)
     Constructs a default coverage processor.

Method Summary
protected synchronized  voidaddOperation(Operation operation)
     Add the specified operation to this processor.
public synchronized  CoveragedoOperation(ParameterValueGroup parameters)
     Applies a process operation to a coverage.
public synchronized  OperationgetOperation(String name)
     Returns the operation for the specified name.
Parameters:
  name - Name of the operation (case insensitive).
public synchronized  CollectiongetOperations()
     Retrieves grid processing operations information.
final public  ObjectgetRenderingHint(RenderingHints.Key key)
     Returns a rendering hint.
Parameters:
  key - The hint key (e.g.
public synchronized  voidscanForPlugins()
     Scans for factory plug-ins on the application class path.
 voidsetAsDefault()
     Removes the GRID_COVERAGE_PROCESSOR hint.
final  voidsetProcessor(AbstractProcessor processor)
     Sets the GRID_COVERAGE_PROCESSOR hint to the specified value.


Constructor Detail
DefaultProcessor
public DefaultProcessor(RenderingHints hints)(Code)
Constructs a default coverage processor. The DefaultProcessor.scanForPlugins method will be automatically invoked the first time an operation is required. Additional operations can be added by subclasses with the DefaultProcessor.addOperation method. Rendering hints will be initialized with the following hints:


Parameters:
  hints - A set of additional rendering hints, or null if none.




Method Detail
addOperation
protected synchronized void addOperation(Operation operation) throws IllegalStateException(Code)
Add the specified operation to this processor. This method is usually invoked at construction time before this processor is made accessible.
Parameters:
  operation - The operation to add.
throws:
  IllegalStateException - if an operation already exists with the same name.



doOperation
public synchronized Coverage doOperation(ParameterValueGroup parameters) throws OperationNotFoundException(Code)
Applies a process operation to a coverage. The default implementation checks if source coverages use an interpolation, and then invokes AbstractOperation.doOperation . If all source coverages used the same interpolation, then this interpolation is applied to the resulting coverage (except if the resulting coverage has already an interpolation).
Parameters:
  parameters - Parameters required for the operation. The easiest way to construct themis to invoke operation.Operation.getParameters getParameters()and to modify the returned group. The result as a coverage.
throws:
  OperationNotFoundException - if there is no operation for the parameter group name.



getOperation
public synchronized Operation getOperation(String name) throws OperationNotFoundException(Code)
Returns the operation for the specified name.
Parameters:
  name - Name of the operation (case insensitive). The operation for the given name.
throws:
  OperationNotFoundException - if there is no operation for the specified name.



getOperations
public synchronized Collection getOperations()(Code)
Retrieves grid processing operations information. Each operation information contains the name of the operation as well as a list of its parameters.



getRenderingHint
final public Object getRenderingHint(RenderingHints.Key key)(Code)
Returns a rendering hint.
Parameters:
  key - The hint key (e.g. Hints.JAI_INSTANCE). The hint value for the specified key, or null if there is no hint for thespecified key.



scanForPlugins
public synchronized void scanForPlugins()(Code)
Scans for factory plug-ins on the application class path. This method is needed because the application class path can theoretically change, or additional plug-ins may become available. Rather than re-scanning the classpath on every invocation of the API, the class path is scanned automatically only on the first invocation. Clients can call this method to prompt a re-scan. Thus this method need only be invoked by sophisticated applications which dynamically make new plug-ins available at runtime.



setAsDefault
void setAsDefault()(Code)
Removes the GRID_COVERAGE_PROCESSOR hint. The AbstractOperation.getProcessor method will automatically returns the default instance when this hint is not defined. Removing this hint provides three advantages for the common case when the default processor is used:
  • Avoid a strong reference to this processor in RenderedImage properties.
  • Avoid serialization of this processor when a RenderedImage is serialized.
  • Allows AbstractOperation.getProcessor to returns the BufferedProcessor instance instead of this instance.



setProcessor
final void setProcessor(AbstractProcessor processor)(Code)
Sets the GRID_COVERAGE_PROCESSOR hint to the specified value. This is used by BufferedProcessor only.



Fields inherited from org.geotools.coverage.processing.AbstractProcessor
final public static Logger LOGGER(Code)(Java Doc)
final public static Level OPERATION(Code)(Java Doc)

Methods inherited from org.geotools.coverage.processing.AbstractProcessor
abstract public Coverage doOperation(ParameterValueGroup parameters) throws OperationNotFoundException(Code)(Java Doc)
static void ensureNonNull(String name, Object object) throws IllegalArgumentException(Code)(Java Doc)
public static synchronized AbstractProcessor getInstance()(Code)(Java Doc)
public Locale getLocale()(Code)(Java Doc)
abstract public Operation getOperation(String name) throws OperationNotFoundException(Code)(Java Doc)
static String getOperationName(ParameterValueGroup parameters)(Code)(Java Doc)
abstract public Collection getOperations()(Code)(Java Doc)
static Coverage getPrimarySource(ParameterValueGroup parameters)(Code)(Java Doc)
public void listOperations(Writer out) throws IOException(Code)(Java Doc)
final void log(Coverage source, Coverage result, String operationName, boolean fromCache)(Code)(Java Doc)
public static void main(String[] args)(Code)(Java Doc)
public void printOperations(Writer out, String[] names) throws OperationNotFoundException, IOException(Code)(Java Doc)
void setAsDefault()(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.