Java Doc for SVGImageLoader.java in  » 6.0-JDK-Modules » j2me » com » sun » perseus » model » 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 » j2me » com.sun.perseus.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.perseus.model.DefaultImageLoader
      com.sun.perseus.model.SVGImageLoader

SVGImageLoader
public class SVGImageLoader extends DefaultImageLoader (Code)
JSR 226 implementation of the ImageLoader interface.
author:
   Kevin Wong
version:
   $Id: SVGImageLoader.java,v 1.14 2006/06/29 10:47:34 ln156897 Exp $


Field Summary
final protected static  StringIMAGE_REQUESTED
     Constant used to indicate that an image has been requested to the ExternalResourceHandler but that the handler has not delivered the result yet.
protected  booleandocumentLoaded
     Set to true once the associated DocumentNode has fully loaded.
protected  ExternalResourceHandlerhandler
     Handles any external resource referenced in the image document.
protected  ImageLoaderUtilloaderUtil
     ImageLoaderUtil contains helper methods which make this implementation easier.
protected  VectorpendingNeedsURI
     Keeps track of pending absoluteURI requests.
protected  HashtablerasterImageConsumerTable
     Simple hashtable used to track ImageNode objects.
protected  SVGImageImplsvgImage
    

Constructor Summary
public  SVGImageLoader(SVGImageImpl svgImage, ExternalResourceHandler handler)
    

Method Summary
public  voidaddRasterImageConsumer(String absoluteURI, RasterImageConsumer imageNode)
     In cases where the ImageLoader may update the images associated to a URI, RasterImageConsumer interested in updates need to register their interest throught this method.
 voidaddToCache(String uri, Object image)
     Adds image to the Image cache.
public  booleanallowsRelativeURI()
    
public  voiddocumentLoaded(DocumentNode doc)
     Some ImageLoader implementations may wish to wait until the end of the Document load to start retrieving resources.
public  RasterImagegetImageAndWait(String uri)
     Requests the given image.
public  RasterImagegetImageFromCache(String uri)
     Returns the Image that was previously loaded.
Parameters:
  uri - the key for the Image cache.
public  voidgetImageLater(String uri, RasterImageConsumer rasterImageConsumer)
     Requests the given image.
public  voidneedsURI(String absoluteURI)
     Notifies the URILoader that the given uri will be needed.
Parameters:
  absoluteURI - the requested URI content.
protected  voidneedsURIDocumentLoaded(String absoluteURI)
     In SVGImageLoader, we wait until the document has been loaded before acting on required raster images.
Parameters:
  absoluteURI - the requested URI content.
public  voidremoveRasterImageConsumer(String absoluteURI, RasterImageConsumer imageNode)
     In cases where the ImageLoader may update the images associated to a URI, RasterImageConsumer interested in updates need to de-register their interest throught this method.
 voidsetRasterImageConsumerImage(String uri, RasterImage image)
     Implementation helper.

Field Detail
IMAGE_REQUESTED
final protected static String IMAGE_REQUESTED(Code)
Constant used to indicate that an image has been requested to the ExternalResourceHandler but that the handler has not delivered the result yet.



documentLoaded
protected boolean documentLoaded(Code)
Set to true once the associated DocumentNode has fully loaded.



handler
protected ExternalResourceHandler handler(Code)
Handles any external resource referenced in the image document.



loaderUtil
protected ImageLoaderUtil loaderUtil(Code)
ImageLoaderUtil contains helper methods which make this implementation easier.



pendingNeedsURI
protected Vector pendingNeedsURI(Code)
Keeps track of pending absoluteURI requests.



rasterImageConsumerTable
protected Hashtable rasterImageConsumerTable(Code)
Simple hashtable used to track ImageNode objects.



svgImage
protected SVGImageImpl svgImage(Code)
The SVGImage associated to this SVGImageLoader




Constructor Detail
SVGImageLoader
public SVGImageLoader(SVGImageImpl svgImage, ExternalResourceHandler handler)(Code)
Constructor
Parameters:
  svgImage - the associated SVGImage, should not be null.
Parameters:
  handler - the ExternalResourceHandler which will get the images data.




Method Detail
addRasterImageConsumer
public void addRasterImageConsumer(String absoluteURI, RasterImageConsumer imageNode)(Code)
In cases where the ImageLoader may update the images associated to a URI, RasterImageConsumer interested in updates need to register their interest throught this method.
Parameters:
  absoluteURI - the URI the RasterImageConsumer is interested in.
Parameters:
  imageNode - the RasterImageConsumer interested in the URI.



addToCache
void addToCache(String uri, Object image)(Code)
Adds image to the Image cache.
Parameters:
  uri - the key for the Image cache.
Parameters:
  image - the Image to store.



allowsRelativeURI
public boolean allowsRelativeURI()(Code)
Determines whether this ImageLoader can handle relative uri's true if this ImageLoader can handle relative uri's;false otherwise.



documentLoaded
public void documentLoaded(DocumentNode doc)(Code)
Some ImageLoader implementations may wish to wait until the end of the Document load to start retrieving resources. This method notifies the implementation that the DocumentNode completed loading successfully.
Parameters:
  doc - the DocumentNode which just finised loading.



getImageAndWait
public RasterImage getImageAndWait(String uri)(Code)
Requests the given image. This call blocks until an image is returned.
Parameters:
  uri - the requested URI. the loaded image or the same image as returned bya getBrokenImage call if the image couldnot be loaded.



getImageFromCache
public RasterImage getImageFromCache(String uri)(Code)
Returns the Image that was previously loaded.
Parameters:
  uri - the key for the Image cache. the Image associated with the key.



getImageLater
public void getImageLater(String uri, RasterImageConsumer rasterImageConsumer)(Code)
Requests the given image. This call returns immediately and the image is set on the input ImageNode when the image becomes available.
Parameters:
  uri - the requested URI.
Parameters:
  rasterImageConsumer - the RasterImageConsumer whose image member should be set as a result of loading the image.



needsURI
public void needsURI(String absoluteURI)(Code)
Notifies the URILoader that the given uri will be needed.
Parameters:
  absoluteURI - the requested URI content.



needsURIDocumentLoaded
protected void needsURIDocumentLoaded(String absoluteURI)(Code)
In SVGImageLoader, we wait until the document has been loaded before acting on required raster images.
Parameters:
  absoluteURI - the requested URI content.



removeRasterImageConsumer
public void removeRasterImageConsumer(String absoluteURI, RasterImageConsumer imageNode)(Code)
In cases where the ImageLoader may update the images associated to a URI, RasterImageConsumer interested in updates need to de-register their interest throught this method.
Parameters:
  absoluteURI - the URI the RasterImageConsumer is interested in.
Parameters:
  imageNode - the RasterImageConsumer interested in the URI.



setRasterImageConsumerImage
void setRasterImageConsumerImage(String uri, RasterImage image)(Code)
Implementation helper.
Parameters:
  uri - the uri identifying the image resource.
Parameters:
  image - the RasterImage to send to the consumers.



Fields inherited from com.sun.perseus.model.DefaultImageLoader
protected Hashtable cache(Code)(Java Doc)
protected ImageLoaderUtil loaderUtil(Code)(Java Doc)
protected static RunnableQueue loadingQueue(Code)(Java Doc)

Methods inherited from com.sun.perseus.model.DefaultImageLoader
public void addRasterImageConsumer(String absoluteURI, RasterImageConsumer imageNode)(Code)(Java Doc)
public boolean allowsRelativeURI()(Code)(Java Doc)
public void documentLoaded(DocumentNode doc)(Code)(Java Doc)
public RasterImage getBrokenImage()(Code)(Java Doc)
public RasterImage getImageAndWait(String uri)(Code)(Java Doc)
public void getImageLater(String uri, RasterImageConsumer imageNode)(Code)(Java Doc)
public RasterImage getLoadingImage()(Code)(Java Doc)
public void needsURI(String absoluteURI)(Code)(Java Doc)
public void removeRasterImageConsumer(String absoluteURI, RasterImageConsumer imageNode)(Code)(Java Doc)
public String resolveURI(String uri, String baseURI)(Code)(Java Doc)
public void waitForAll() throws InterruptedException(Code)(Java Doc)

Methods inherited from java.lang.Object
public boolean equals(Object obj)(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.