Java Doc for RemoteRenderableOp.java in  » 6.0-JDK-Modules » Java-Advanced-Imaging » javax » media » jai » remote » 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.remote 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.media.jai.RenderableOp
      javax.media.jai.remote.RemoteRenderableOp

RemoteRenderableOp
public class RemoteRenderableOp extends RenderableOp (Code)
A subclass of RenderableOp for remote operations. This class represents a node in a remote renderable imaging chain. A RemoteRenderableOp stores a protocol name (as a String), a server name (as a String), an operation name (as a String), and a ParameterBlock containing sources and miscellaneous parameters.

By virtue of being a subclass of RemoteRenderableOp, this class participates in Java Bean-style events as specified by RenderableOp. RemoteRenderableOps add the server name and the protocol name to the critical attributes, the editing (chaging) of which may cause a PropertyChangeEventJAI to be emitted.
See Also:   javax.media.jai.RenderableOp
since:
   JAI 1.1



Field Summary
protected  StringprotocolName
     The name of the protocol this class provides an implementation for.
protected  StringserverName
     The name of the server.

Constructor Summary
public  RemoteRenderableOp(String protocolName, String serverName, String opName, ParameterBlock pb)
     Constructs a RemoteRenderableOp using the default operation registry, given the name of the remote imaging protocol, the name of the server to perform the operation on, the name of the operation to be performed remotely and a ParameterBlock containing RenderableImage sources and other parameters. Any RenderedImage sources referenced by the ParameterBlock will be ignored.

An IllegalArgumentException may be thrown by the protocol specific classes at a later point, if null is provided as the serverName argument and null is not considered a valid server name by the specified protocol.
Parameters:
  protocolName - The protocol name as a String.
Parameters:
  serverName - The server name as a String.
Parameters:
  opName - The operation name.
Parameters:
  pb - The sources and other parameters.

public  RemoteRenderableOp(OperationRegistry registry, String protocolName, String serverName, String opName, ParameterBlock pb)
     Constructs a RemoteRenderableOp using the specified operation registry, given the name of the remote imaging protocol, the name of the server to perform the operation on, the name of the operation to be performed remotely and a ParameterBlock containing RenderableImage sources and other parameters. Any RenderedImage sources referenced by the ParameterBlock will be ignored.

An IllegalArgumentException may be thrown by the protocol specific classes at a later point, if null is provided as the serverName argument and null is not considered a valid server name by the specified protocol.
Parameters:
  registry - The OperationRegistry to be used forinstantiation.


Method Summary
public  RenderedImagecreateRendering(RenderContext renderContext)
     Overrides the RenderableOp method to return a RemoteRenderedImage that represents the remote rendering of this image using a given RenderContext.
public  floatgetHeight()
     Overrides the method in RenderableOp to return the rendering-independent height of the image, as queried from the remote server.
public  floatgetMinX()
     Overrides the method in RenderableOp to return the minimum X coordinate of the rendering-independent image data, as queried from the remote server.
public  floatgetMinY()
     Overrides the method in RenderableOp to return the maximum X coordinate of the rendering-independent image data, as queried from the remote server.
public  NegotiableCapabilitySetgetNegotiatedValues()
     Returns the results of the negotiation between the client and server capabilities according to the preferences set via the setNegotiationPreferences() method.
public  NegotiableCapabilitygetNegotiatedValues(String category)
     Returns the results of the negotiation between the client and server capabilities for the given catgory according to the preferences set via the setNegotiationPreferences() method.
public  NegotiableCapabilitySetgetNegotiationPreferences()
     Returns the current negotiation preferences or null, if none were set previously.
public  intgetNumRetries()
     Returns the number of retries.
public  StringgetProtocolName()
     Returns the String that identifies the remote imaging protocol.
public  StringgetRegistryModeName()
     Returns the name of the RegistryMode corresponding to this RenderableOp.
public  intgetRetryInterval()
     Returns the amount of time between retries in milliseconds.
public  StringgetServerName()
     Returns the String that identifies the server.
public  floatgetWidth()
     Overrides the method in RenderableOp to return the rendering-independent width of the image, as queried from the remote server.
 voidsendExceptionToListener(String message, Exception e)
    
public  voidsetNegotiationPreferences(NegotiableCapabilitySet preferences)
     Sets the preferences to be used in the client-server communication.
public  voidsetNumRetries(int numRetries)
     Sets the number of retries.

This new value for number of retries will be stored and will be passed as RenderingHints as part of the RenderContext used to create the rendering.

public  voidsetProtocolAndServerNames(String protocolName, String serverName)
     Sets the protocol name and the server name of this RemoteRenderableOp to the specified arguments..

If both the supplied protocol name and the supplied server name values do not equal the current values, a PropertyChangeEventJAI named "ProtocolAndServerName" will be fired.

public  voidsetProtocolName(String protocolName)
     Sets a String identifying the remote imaging protocol.

If the supplied name does not equal the current protocol name, a PropertyChangeEventJAI named "ProtocolName" will be fired.

public  voidsetRetryInterval(int retryInterval)
     Sets the amount of time between retries in milliseconds.

This new value for retry interval will be stored and will be passed as RenderingHints as part of the RenderContext used to create the rendering.

public  voidsetServerName(String serverName)
     Sets a String identifying the server.

If the supplied name does not equal the current server name, a PropertyChangeEventJAI named "ServerName" will be fired.


Field Detail
protocolName
protected String protocolName(Code)
The name of the protocol this class provides an implementation for.



serverName
protected String serverName(Code)
The name of the server.




Constructor Detail
RemoteRenderableOp
public RemoteRenderableOp(String protocolName, String serverName, String opName, ParameterBlock pb)(Code)
Constructs a RemoteRenderableOp using the default operation registry, given the name of the remote imaging protocol, the name of the server to perform the operation on, the name of the operation to be performed remotely and a ParameterBlock containing RenderableImage sources and other parameters. Any RenderedImage sources referenced by the ParameterBlock will be ignored.

An IllegalArgumentException may be thrown by the protocol specific classes at a later point, if null is provided as the serverName argument and null is not considered a valid server name by the specified protocol.
Parameters:
  protocolName - The protocol name as a String.
Parameters:
  serverName - The server name as a String.
Parameters:
  opName - The operation name.
Parameters:
  pb - The sources and other parameters. Ifnull, it is assumed that this node hasno sources and parameters.
throws:
  IllegalArgumentException - if protocolName isnull.
throws:
  IllegalArgumentException - if opName isnull.




RemoteRenderableOp
public RemoteRenderableOp(OperationRegistry registry, String protocolName, String serverName, String opName, ParameterBlock pb)(Code)
Constructs a RemoteRenderableOp using the specified operation registry, given the name of the remote imaging protocol, the name of the server to perform the operation on, the name of the operation to be performed remotely and a ParameterBlock containing RenderableImage sources and other parameters. Any RenderedImage sources referenced by the ParameterBlock will be ignored.

An IllegalArgumentException may be thrown by the protocol specific classes at a later point, if null is provided as the serverName argument and null is not considered a valid server name by the specified protocol.
Parameters:
  registry - The OperationRegistry to be used forinstantiation. if null, the defaultregistry is used.
Parameters:
  protocolName - The protocol name as a String.
Parameters:
  serverName - The server name as a String.
Parameters:
  opName - The operation name.
Parameters:
  pb - The sources and other parameters. Ifnull, it is assumed that this node hasno sources and parameters.
throws:
  IllegalArgumentException - if protocolName isnull.
throws:
  IllegalArgumentException - if opName isnull.





Method Detail
createRendering
public RenderedImage createRendering(RenderContext renderContext)(Code)
Overrides the RenderableOp method to return a RemoteRenderedImage that represents the remote rendering of this image using a given RenderContext. This is the most general way to obtain a rendering of a RemoteRenderableOp.

This method does not validate sources and parameters supplied in the ParameterBlock against the specification of the operation this node represents. It is the caller's responsibility to ensure that the data in the ParameterBlock are suitable for this operation. Otherwise, some kind of exception or error will occur.

RemoteJAI.createRenderable() is the method that does the validation. Therefore, it is strongly recommended that all RemoteRenderableOps are created using RemoteJAI.createRenderable().

The RenderContext may contain a Shape that represents the area-of-interest (aoi). If the aoi is specifed, it is still legal to return an image that's larger than this aoi. Therefore, by default, the aoi, if specified, is ignored at the rendering.

The RenderingHints in the RenderContext may contain negotiation preferences specified under the KEY_NEGOTIATION_PREFERENCES key. These preferences can be ignored by the rendering if it so chooses.
Parameters:
  renderContext - the RenderContext to use to produce the rendering. a RemoteRenderedImage containing the rendered data.




getHeight
public float getHeight()(Code)
Overrides the method in RenderableOp to return the rendering-independent height of the image, as queried from the remote server. the image height as a float.



getMinX
public float getMinX()(Code)
Overrides the method in RenderableOp to return the minimum X coordinate of the rendering-independent image data, as queried from the remote server.



getMinY
public float getMinY()(Code)
Overrides the method in RenderableOp to return the maximum X coordinate of the rendering-independent image data, as queried from the remote server.



getNegotiatedValues
public NegotiableCapabilitySet getNegotiatedValues() throws RemoteImagingException(Code)
Returns the results of the negotiation between the client and server capabilities according to the preferences set via the setNegotiationPreferences() method. This will return null if no negotiation preferences were set, and no negotiation was performed, or if the negotiation failed.



getNegotiatedValues
public NegotiableCapability getNegotiatedValues(String category) throws RemoteImagingException(Code)
Returns the results of the negotiation between the client and server capabilities for the given catgory according to the preferences set via the setNegotiationPreferences() method. This will return null if no negotiation preferences were set, and no negotiation was performed, or if the negotiation failed.
Parameters:
  category - The category to return negotiated results for.



getNegotiationPreferences
public NegotiableCapabilitySet getNegotiationPreferences()(Code)
Returns the current negotiation preferences or null, if none were set previously.



getNumRetries
public int getNumRetries()(Code)
Returns the number of retries. If a value for the number of retries has been set previously by setNumRetries(), the same value is returned, else the default number of retries as defined by RemoteJAI.DEFAULT_NUM_RETRIES is returned.



getProtocolName
public String getProtocolName()(Code)
Returns the String that identifies the remote imaging protocol.



getRegistryModeName
public String getRegistryModeName()(Code)
Returns the name of the RegistryMode corresponding to this RenderableOp. This method overrides the implementation in RenderableOp to always returns the String "remoteRenderable".



getRetryInterval
public int getRetryInterval()(Code)
Returns the amount of time between retries in milliseconds. If a value for the retry interval has been set previously by setRetryInterval(), the same value is returned, else the default retry interval as defined by RemoteJAI.DEFAULT_RETRY_INTERVAL is returned.



getServerName
public String getServerName()(Code)
Returns the String that identifies the server.



getWidth
public float getWidth()(Code)
Overrides the method in RenderableOp to return the rendering-independent width of the image, as queried from the remote server. the image width as a float.



sendExceptionToListener
void sendExceptionToListener(String message, Exception e)(Code)



setNegotiationPreferences
public void setNegotiationPreferences(NegotiableCapabilitySet preferences)(Code)
Sets the preferences to be used in the client-server communication. These preferences are utilized in the negotiation process. Note that preferences for more than one category can be specified using this method. Also each preference can be a list of values in decreasing order of preference, each value specified as a NegotiableCapability. The NegotiableCapability first (for a particular category) in this list is given highest priority in the negotiation process (for that category).

It may be noted that this method allows for multiple negotiation cycles by allowing negotiation preferences to be set multiple times. Every time this method is called, the new preferences specified will be stored, a negotiation with these new preferences will be initiated and the results stored. These new preferences which have been stored will be passed as RenderingHints as part of the RenderContext used to create the rendering. The RenderingHints in the RenderContext will contain this information under the KEY_NEGOTIATION_PREFERENCES key. If the RenderingHints in the RenderContext already contains negotiation preferences specified by the user, the user specified negotiation preferences will take preference over the ones stored in this class.

If preferences to be set are null, the negotiation will become a two-way negotiation between the client and server capabilities.
Parameters:
  preferences - The preferences to be used in the negotiationprocess.




setNumRetries
public void setNumRetries(int numRetries)(Code)
Sets the number of retries.

This new value for number of retries will be stored and will be passed as RenderingHints as part of the RenderContext used to create the rendering. The RenderingHints in the RenderContext will contain this information under the KEY_NUM_RETRIES key. If the RenderingHints in the RenderContext already contains a number of retries value specified by the user, that will take preference over the one stored in this class.
Parameters:
  numRetries - The number of times an operation should be retriedin case of a network error.
throws:
  IllegalArgumentException - if numRetries is negative.




setProtocolAndServerNames
public void setProtocolAndServerNames(String protocolName, String serverName)(Code)
Sets the protocol name and the server name of this RemoteRenderableOp to the specified arguments..

If both the supplied protocol name and the supplied server name values do not equal the current values, a PropertyChangeEventJAI named "ProtocolAndServerName" will be fired. The oldValue field in the PropertyChangeEventJAI will contain a two element array of Strings, the old protocol name being the first element and the old server name being the second. Similarly the newValue field of the PropertyChangeEventJAI will contain a two element array of Strings, the new protocol name being the first element and the new server name being the second. If only the supplied protocol name does not equal the current protocol name, a PropertyChangeEventJAI named "ProtocolName" will be fired. If only the supplied server name does not equal the current server name, a PropertyChangeEventJAI named "ServerName" will be fired.
Parameters:
  protocolName - A String identifying the protocol.
Parameters:
  serverName - A String identifying the server.
throws:
  IllegalArgumentException - if protocolName is null.
throws:
  IllegalArgumentException - if serverName is null.




setProtocolName
public void setProtocolName(String protocolName)(Code)
Sets a String identifying the remote imaging protocol.

If the supplied name does not equal the current protocol name, a PropertyChangeEventJAI named "ProtocolName" will be fired. The oldValue field in the PropertyChangeEventJAI will contain the old protocol name String and the newValue field will contain the new protocol name String.
Parameters:
  protocolName - A String identifying the protocol.
throws:
  IllegalArgumentException - if protocolName is null.




setRetryInterval
public void setRetryInterval(int retryInterval)(Code)
Sets the amount of time between retries in milliseconds.

This new value for retry interval will be stored and will be passed as RenderingHints as part of the RenderContext used to create the rendering. The RenderingHints in the RenderContext will contain this information under the KEY_RETRY_INTERVAL key. If the RenderingHints in the RenderContext already contains a retry interval value specified by the user, that will take preference over the one stored in this class.
Parameters:
  retryInterval - The amount of time (in milliseconds) to waitbetween retries.
throws:
  IllegalArgumentException - if retryInterval is negative.




setServerName
public void setServerName(String serverName)(Code)
Sets a String identifying the server.

If the supplied name does not equal the current server name, a PropertyChangeEventJAI named "ServerName" will be fired. The oldValue field in the PropertyChangeEventJAI will contain the old server name String and the newValue field will contain the new server name String.
Parameters:
  serverName - A String identifying the server.
throws:
  IllegalArgumentException - if serverName is null.




Fields inherited from javax.media.jai.RenderableOp
protected transient ContextualRenderedImageFactory crif(Code)(Java Doc)
protected PropertyChangeSupportJAI eventManager(Code)(Java Doc)
protected OperationNodeSupport nodeSupport(Code)(Java Doc)
protected WritablePropertySourceImpl properties(Code)(Java Doc)
protected transient PropertySource thePropertySource(Code)(Java Doc)

Methods inherited from javax.media.jai.RenderableOp
public void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc)
public void addPropertyGenerator(PropertyGenerator pg)(Code)(Java Doc)
public synchronized void copyPropertyFromSource(String propertyName, int sourceIndex)(Code)(Java Doc)
public RenderedImage createDefaultRendering()(Code)(Java Doc)
public RenderedImage createRendering(RenderContext renderContext)(Code)(Java Doc)
public RenderedImage createScaledRendering(int w, int h, RenderingHints hints)(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 synchronized Object getDynamicProperty(String name)(Code)(Java Doc)
public float getFloatParameter(int index)(Code)(Java Doc)
public float getHeight()(Code)(Java Doc)
public int getIntParameter(int index)(Code)(Java Doc)
public long getLongParameter(int index)(Code)(Java Doc)
public float getMinX()(Code)(Java Doc)
public float getMinY()(Code)(Java Doc)
public Object getObjectParameter(int index)(Code)(Java Doc)
public String getOperationName()(Code)(Java Doc)
public ParameterBlock getParameterBlock()(Code)(Java Doc)
public Object getProperty(String name)(Code)(Java Doc)
public Class getPropertyClass(String name)(Code)(Java Doc)
public String[] getPropertyNames()(Code)(Java Doc)
public String[] getPropertyNames(String prefix)(Code)(Java Doc)
public synchronized OperationRegistry getRegistry()(Code)(Java Doc)
public String getRegistryModeName()(Code)(Java Doc)
public RenderingHints getRenderingHints()(Code)(Java Doc)
public short getShortParameter(int index)(Code)(Java Doc)
public Object getSource(int index)(Code)(Java Doc)
public Vector getSources()(Code)(Java Doc)
public float getWidth()(Code)(Java Doc)
public boolean isDynamic()(Code)(Java Doc)
public void removeProperty(String name)(Code)(Java Doc)
public void removePropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc)
public void removeSources()(Code)(Java Doc)
public synchronized void setOperationName(String opName)(Code)(Java Doc)
public void setParameter(byte param, int index)(Code)(Java Doc)
public void setParameter(char param, int index)(Code)(Java Doc)
public void setParameter(short param, int index)(Code)(Java Doc)
public void setParameter(int param, int index)(Code)(Java Doc)
public void setParameter(long param, int index)(Code)(Java Doc)
public void setParameter(float param, int index)(Code)(Java Doc)
public void setParameter(double param, int index)(Code)(Java Doc)
public void setParameter(Object param, int index)(Code)(Java Doc)
public synchronized void setParameterBlock(ParameterBlock pb)(Code)(Java Doc)
public void setProperty(String name, Object value)(Code)(Java Doc)
public synchronized void setRegistry(OperationRegistry registry)(Code)(Java Doc)
public synchronized void setRenderingHints(RenderingHints hints)(Code)(Java Doc)
public void setSource(Object source, int index)(Code)(Java Doc)
public void suppressProperty(String name)(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.