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


java.lang.Object
   javax.media.jai.PlanarImage
      javax.media.jai.remote.PlanarImageServerProxy
         com.sun.media.jai.rmi.RMIServerProxy

RMIServerProxy
public class RMIServerProxy extends PlanarImageServerProxy (Code)



Constructor Summary
public  RMIServerProxy(String serverName, String opName, RenderingHints hints)
     Construct an RMIServerProxy.
public  RMIServerProxy(String serverName, ParameterBlock pb, String opName, RenderingHints hints)
     Construct an RMIServerProxy.
public  RMIServerProxy(String serverName, String operationName, ParameterBlock paramBlock, RenderingHints hints)
     Constructs an RMIServerProxy.
public  RMIServerProxy(PlanarImageServerProxy oldRendering, OperationNode node, String newServerName)
     Creates a RMIServerProxy which is the new rendering produced when the serverName is updated.
public  RMIServerProxy(PlanarImageServerProxy oldRendering, OperationNode node, PropertyChangeEventJAI event)
     Creates a RMIServerProxy which is the new rendering produced by updating the given old rendering by the changes specified by the given PropertyChangeEventJAI.
public  RMIServerProxy(String serverName, String operationName, ParameterBlock pb, RenderingHints hints, Long id)
     Create an RMIServerProxy to access an already created operation (as specified by the supplied id) on the server.
public  RMIServerProxy(String serverName, String operationName, ParameterBlock paramBlock, RenderContext rc, boolean isRender)
    

Method Summary
public  booleancanBeRendered()
    
public  RastercomputeTile(int tileX, int tileY)
     Gets the requested tile from the server, which does the processing to produce the desired tile.
protected  voidfinalize()
    
public  ImageLayoutgetImageLayout()
     Gets the image layout variables from the server and creates an ImageLayout object initialized with these values.
protected synchronized  ImageServergetImageServer(String serverName)
     Construct an ImageServer on the indicated server.

The name of the server must be supplied in the form

 host:port
 
where the port number is optional and may be supplied only if the host name is supplied.
public synchronized  LonggetRMIID()
     Get the unique ID to be used to refer to this object on the server.
public  ObjectgetRemoteProperty(String name)
    
public  String[]getRemotePropertyNames()
     Returns a list of names recognized by the getRemoteProperty method.
public  LonggetRenderingID()
    
public  RectanglemapDestRect(Rectangle destRect, int sourceIndex)
     Returns a conservative estimate of the region of a specified source that is required in order to compute the pixels of a given destination rectangle.
public  RectanglemapSourceRect(Rectangle sourceRect, int sourceIndex)
     Returns a conservative estimate of the destination region that can potentially be affected by the pixels of a rectangle of a given source.
public  voidsetNegotiationPreferences(NegotiableCapabilitySet preferences)
    
public synchronized  voidsetServerNegotiatedValues(NegotiableCapabilitySet negotiatedValues)
     Informs the server of the negotiated values that are the result of a successful negotiation.


Constructor Detail
RMIServerProxy
public RMIServerProxy(String serverName, String opName, RenderingHints hints)(Code)
Construct an RMIServerProxy. This constructor should only be used when the source is a RenderedOp on a different server.



RMIServerProxy
public RMIServerProxy(String serverName, ParameterBlock pb, String opName, RenderingHints hints)(Code)
Construct an RMIServerProxy. This constructor should only be used when the source is a RenderedOp on a different server and the ParameterBlock for the source itself is available.



RMIServerProxy
public RMIServerProxy(String serverName, String operationName, ParameterBlock paramBlock, RenderingHints hints)(Code)
Constructs an RMIServerProxy. This constructor creates nodes on the server corresponding to a RemoteRenderedOp on the client.



RMIServerProxy
public RMIServerProxy(PlanarImageServerProxy oldRendering, OperationNode node, String newServerName)(Code)
Creates a RMIServerProxy which is the new rendering produced when the serverName is updated.



RMIServerProxy
public RMIServerProxy(PlanarImageServerProxy oldRendering, OperationNode node, PropertyChangeEventJAI event)(Code)
Creates a RMIServerProxy which is the new rendering produced by updating the given old rendering by the changes specified by the given PropertyChangeEventJAI.



RMIServerProxy
public RMIServerProxy(String serverName, String operationName, ParameterBlock pb, RenderingHints hints, Long id)(Code)
Create an RMIServerProxy to access an already created operation (as specified by the supplied id) on the server.



RMIServerProxy
public RMIServerProxy(String serverName, String operationName, ParameterBlock paramBlock, RenderContext rc, boolean isRender)(Code)
the RMIServerProxy for the Renderable Layer




Method Detail
canBeRendered
public boolean canBeRendered()(Code)



computeTile
public Raster computeTile(int tileX, int tileY) throws RemoteImagingException(Code)
Gets the requested tile from the server, which does the processing to produce the desired tile.
throws:
  a - RemoteImagingException if a RemoteException is thrownduring the RMI communication.



finalize
protected void finalize()(Code)



getImageLayout
public ImageLayout getImageLayout() throws RemoteImagingException(Code)
Gets the image layout variables from the server and creates an ImageLayout object initialized with these values.
throws:
  RemoteImagingException - if a RemoteException is thrownduring the RMI communication.



getImageServer
protected synchronized ImageServer getImageServer(String serverName)(Code)
Construct an ImageServer on the indicated server.

The name of the server must be supplied in the form

 host:port
 
where the port number is optional and may be supplied only if the host name is supplied. If this parameter is null the default is to search for the ImageServer service on the local host at the default rmiregistry port (1099).

The result is cached in the instance variable "remoteImage".
Parameters:
  serverName - The name of the server in the format described.




getRMIID
public synchronized Long getRMIID()(Code)
Get the unique ID to be used to refer to this object on the server. The result is cached in the instance variable "id".



getRemoteProperty
public Object getRemoteProperty(String name) throws RemoteImagingException(Code)



getRemotePropertyNames
public String[] getRemotePropertyNames() throws RemoteImagingException(Code)
Returns a list of names recognized by the getRemoteProperty method. Network errors encountered should be signalled by throwing a RemoteImagingException.
throws:
  RemoteImagingException - if an error condition during remoteimage processing occurs



getRenderingID
public Long getRenderingID()(Code)



mapDestRect
public Rectangle mapDestRect(Rectangle destRect, int sourceIndex) throws RemoteImagingException(Code)
Returns a conservative estimate of the region of a specified source that is required in order to compute the pixels of a given destination rectangle. Either the server or the client can compute the source region to implement this method. Network errors encountered should be signalled by throwing a RemoteImagingException.
Parameters:
  destRect - The Rectangle in destination coordinates.
Parameters:
  sourceIndex - The index of the source image. A Rectangle indicating the required source region.
throws:
  IllegalArgumentException - If the source index isnegative or greater than that of the last source.
throws:
  IllegalArgumentException - If destRect isnull.



mapSourceRect
public Rectangle mapSourceRect(Rectangle sourceRect, int sourceIndex) throws RemoteImagingException(Code)
Returns a conservative estimate of the destination region that can potentially be affected by the pixels of a rectangle of a given source. This can be implemented by either asking the server to compute the destination region, or by having the client compute the destination region. Network errors encountered should be signalled by throwing a RemoteImagingException.
Parameters:
  sourceRect - The Rectangle in source coordinates.
Parameters:
  sourceIndex - The index of the source image. A Rectangle indicating the potentiallyaffected destination region, or null ifthe region is unknown.
throws:
  IllegalArgumentException - If the source index isnegative or greater than that of the last source.
throws:
  IllegalArgumentException - If sourceRect isnull.



setNegotiationPreferences
public void setNegotiationPreferences(NegotiableCapabilitySet preferences)(Code)



setServerNegotiatedValues
public synchronized void setServerNegotiatedValues(NegotiableCapabilitySet negotiatedValues) throws RemoteImagingException(Code)
Informs the server of the negotiated values that are the result of a successful negotiation.
Parameters:
  negotiatedValues - The result of the negotiation.



Fields inherited from javax.media.jai.remote.PlanarImageServerProxy
protected transient TileCache cache(Code)(Java Doc)
protected RenderingHints hints(Code)(Java Doc)
protected NegotiableCapabilitySet negotiated(Code)(Java Doc)
protected int numRetries(Code)(Java Doc)
protected String operationName(Code)(Java Doc)
protected ParameterBlock paramBlock(Code)(Java Doc)
protected NegotiableCapabilitySet preferences(Code)(Java Doc)
protected String protocolName(Code)(Java Doc)
protected transient OperationRegistry registry(Code)(Java Doc)
protected int retryInterval(Code)(Java Doc)
protected String serverName(Code)(Java Doc)
protected Object tileCacheMetric(Code)(Java Doc)

Methods inherited from javax.media.jai.remote.PlanarImageServerProxy
abstract public Raster computeTile(int tileX, int tileY) throws RemoteImagingException(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
public ColorModel getColorModel()(Code)(Java Doc)
public int getHeight()(Code)(Java Doc)
abstract public ImageLayout getImageLayout() throws RemoteImagingException(Code)(Java Doc)
public int getMaxX()(Code)(Java Doc)
public int getMaxY()(Code)(Java Doc)
public int getMinX()(Code)(Java Doc)
public int getMinY()(Code)(Java Doc)
public NegotiableCapability getNegotiatedValue(String category) throws RemoteImagingException(Code)(Java Doc)
public synchronized NegotiableCapabilitySet getNegotiatedValues() throws RemoteImagingException(Code)(Java Doc)
public NegotiableCapabilitySet getNegotiationPreferences()(Code)(Java Doc)
public int getNumRetries()(Code)(Java Doc)
public String getOperationName()(Code)(Java Doc)
public ParameterBlock getParameterBlock()(Code)(Java Doc)
public Object getProperty(String name)(Code)(Java Doc)
public String[] getPropertyNames()(Code)(Java Doc)
public String getProtocolName()(Code)(Java Doc)
abstract public Object getRemoteProperty(String name) throws RemoteImagingException(Code)(Java Doc)
abstract public String[] getRemotePropertyNames() throws RemoteImagingException(Code)(Java Doc)
public RenderingHints getRenderingHints()(Code)(Java Doc)
public int getRetryInterval()(Code)(Java Doc)
public SampleModel getSampleModel()(Code)(Java Doc)
public String getServerName()(Code)(Java Doc)
public Raster getTile(int tileX, int tileY)(Code)(Java Doc)
public TileCache getTileCache()(Code)(Java Doc)
public Object getTileCacheMetric()(Code)(Java Doc)
public int getTileGridXOffset()(Code)(Java Doc)
public int getTileGridYOffset()(Code)(Java Doc)
public int getTileHeight()(Code)(Java Doc)
public int getTileWidth()(Code)(Java Doc)
public int getWidth()(Code)(Java Doc)
abstract public Rectangle mapDestRect(Rectangle destRect, int sourceIndex) throws RemoteImagingException(Code)(Java Doc)
abstract public Rectangle mapSourceRect(Rectangle sourceRect, int sourceIndex) throws RemoteImagingException(Code)(Java Doc)
public void setNegotiationPreferences(NegotiableCapabilitySet preferences)(Code)(Java Doc)
public void setNumRetries(int numRetries)(Code)(Java Doc)
public void setRetryInterval(int retryInterval)(Code)(Java Doc)
public void setTileCache(TileCache cache)(Code)(Java Doc)

Fields inherited from javax.media.jai.PlanarImage
protected ColorModel colorModel(Code)(Java Doc)
protected PropertyChangeSupportJAI eventManager(Code)(Java Doc)
protected int height(Code)(Java Doc)
protected int minX(Code)(Java Doc)
protected int minY(Code)(Java Doc)
protected WritablePropertySourceImpl properties(Code)(Java Doc)
protected SampleModel sampleModel(Code)(Java Doc)
protected TileFactory tileFactory(Code)(Java Doc)
protected int tileGridXOffset(Code)(Java Doc)
protected int tileGridYOffset(Code)(Java Doc)
protected int tileHeight(Code)(Java Doc)
protected int tileWidth(Code)(Java Doc)
protected int width(Code)(Java Doc)

Methods inherited from javax.media.jai.PlanarImage
public static int XToTileX(int x, int tileGridXOffset, int tileWidth)(Code)(Java Doc)
public int XToTileX(int x)(Code)(Java Doc)
public static int YToTileY(int y, int tileGridYOffset, int tileHeight)(Code)(Java Doc)
public int YToTileY(int y)(Code)(Java Doc)
public void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc)
public synchronized boolean addSink(Object sink)(Code)(Java Doc)
protected void addSink(PlanarImage sink)(Code)(Java Doc)
protected void addSource(Object source)(Code)(Java Doc)
public synchronized void addTileComputationListener(TileComputationListener listener)(Code)(Java Doc)
public void cancelTiles(TileRequest request, Point[] tileIndices)(Code)(Java Doc)
public WritableRaster copyData()(Code)(Java Doc)
public WritableRaster copyData(WritableRaster raster)(Code)(Java Doc)
public void copyExtendedData(WritableRaster dest, BorderExtender extender)(Code)(Java Doc)
public static ColorModel createColorModel(SampleModel sm)(Code)(Java Doc)
public PlanarImage createSnapshot()(Code)(Java Doc)
final protected WritableRaster createWritableRaster(SampleModel sampleModel, Point location)(Code)(Java Doc)
public synchronized void dispose()(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
public BufferedImage getAsBufferedImage(Rectangle rect, ColorModel cm)(Code)(Java Doc)
public BufferedImage getAsBufferedImage()(Code)(Java Doc)
public Rectangle getBounds()(Code)(Java Doc)
public ColorModel getColorModel()(Code)(Java Doc)
public Raster getData()(Code)(Java Doc)
public Raster getData(Rectangle region)(Code)(Java Doc)
public static ColorModel getDefaultColorModel(int dataType, int numBands)(Code)(Java Doc)
public Raster getExtendedData(Rectangle region, BorderExtender extender)(Code)(Java Doc)
public Graphics getGraphics()(Code)(Java Doc)
public int getHeight()(Code)(Java Doc)
public Object getImageID()(Code)(Java Doc)
public int getMaxTileX()(Code)(Java Doc)
public int getMaxTileY()(Code)(Java Doc)
public int getMaxX()(Code)(Java Doc)
public int getMaxY()(Code)(Java Doc)
public int getMinTileX()(Code)(Java Doc)
public int getMinTileY()(Code)(Java Doc)
public int getMinX()(Code)(Java Doc)
public int getMinY()(Code)(Java Doc)
public int getNumBands()(Code)(Java Doc)
public int getNumSources()(Code)(Java Doc)
public int getNumXTiles()(Code)(Java Doc)
public int getNumYTiles()(Code)(Java Doc)
protected Hashtable getProperties()(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 SampleModel getSampleModel()(Code)(Java Doc)
public Vector getSinks()(Code)(Java Doc)
public PlanarImage getSource(int index)(Code)(Java Doc)
public PlanarImage getSourceImage(int index)(Code)(Java Doc)
public Object getSourceObject(int index)(Code)(Java Doc)
public Vector getSources()(Code)(Java Doc)
public void getSplits(IntegerSequence xSplits, IntegerSequence ySplits, Rectangle rect)(Code)(Java Doc)
abstract public Raster getTile(int tileX, int tileY)(Code)(Java Doc)
public TileComputationListener[] getTileComputationListeners()(Code)(Java Doc)
public TileFactory getTileFactory()(Code)(Java Doc)
public int getTileGridXOffset()(Code)(Java Doc)
public int getTileGridYOffset()(Code)(Java Doc)
public int getTileHeight()(Code)(Java Doc)
public Point[] getTileIndices(Rectangle region)(Code)(Java Doc)
public Rectangle getTileRect(int tileX, int tileY)(Code)(Java Doc)
public int getTileWidth()(Code)(Java Doc)
public Raster[] getTiles(Point[] tileIndices)(Code)(Java Doc)
public Raster[] getTiles()(Code)(Java Doc)
public int getWidth()(Code)(Java Doc)
public boolean overlapsMultipleTiles(Rectangle rect)(Code)(Java Doc)
public void prefetchTiles(Point[] tileIndices)(Code)(Java Doc)
public TileRequest queueTiles(Point[] tileIndices)(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 synchronized boolean removeSink(Object sink)(Code)(Java Doc)
protected boolean removeSink(PlanarImage sink)(Code)(Java Doc)
public void removeSinks()(Code)(Java Doc)
protected boolean removeSource(Object source)(Code)(Java Doc)
protected void removeSources()(Code)(Java Doc)
public synchronized void removeTileComputationListener(TileComputationListener listener)(Code)(Java Doc)
protected void setImageLayout(ImageLayout layout)(Code)(Java Doc)
protected void setProperties(Hashtable properties)(Code)(Java Doc)
public void setProperty(String name, Object value)(Code)(Java Doc)
protected void setSource(Object source, int index)(Code)(Java Doc)
protected void setSources(List sourceList)(Code)(Java Doc)
public static int tileXToX(int tx, int tileGridXOffset, int tileWidth)(Code)(Java Doc)
public int tileXToX(int tx)(Code)(Java Doc)
public static int tileYToY(int ty, int tileGridYOffset, int tileHeight)(Code)(Java Doc)
public int tileYToY(int ty)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public static PlanarImage wrapRenderedImage(RenderedImage image)(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.