Java Doc for SVGImageImpl.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
   javax.microedition.m2g.ScalableImage
      javax.microedition.m2g.SVGImage
         com.sun.perseus.model.SVGImageImpl

SVGImageImpl
public class SVGImageImpl extends SVGImage (Code)


Field Summary
final public static  intDEFAULT_HEIGHT
    
final static  intDEFAULT_IMAGE_READ_BUFFER_LENGTH
     Size of the byte buffer used to read image input streams handed by ExternalResourceHandler implementations.
final public static  intDEFAULT_WIDTH
    
 DocumentNodedocumentNode
    
 booleanisBrokenImage
     Received null resourceData in requestCompleted().
 SVGElementlastElement
    
 SVGImageLoadersvgImageLoader
    
 StringwaitURI
     URI requested by SVGImageLoader's getImageAndWait().


Method Summary
public  voidactivate()
    
public static  SVGImagecreateEmptyImage(ExternalResourceHandler handler)
    
public static  ScalableImagecreateImage(InputStream stream, ExternalResourceHandler handler)
    
public static  ScalableImagecreateImage(String URL, ExternalResourceHandler handler)
    
public  voiddispatchMouseEvent(String type, int x, int y)
     This method is used to dispatch a mouse event of the specified type to the document.
public  voidfocusOn(SVGElement element)
    
public  DocumentgetDocument()
     Returns the associated Document.
public  intgetViewportHeight()
    
public  intgetViewportWidth()
    
public  voidincrementTime(float seconds)
    
public  voidrequestCompleted(String uri, InputStream resourceData)
    
public  voidsetViewportHeight(int height)
    
public  voidsetViewportWidth(int width)
     An area where the ScalableImage is rendered is called viewport. If a part of the viewport lays outside of the target clipping rectangle it is clipped.
synchronized  RasterImagewaitOnRequestCompleted(String uri)
    

Field Detail
DEFAULT_HEIGHT
final public static int DEFAULT_HEIGHT(Code)
The default height for an empty SVG image



DEFAULT_IMAGE_READ_BUFFER_LENGTH
final static int DEFAULT_IMAGE_READ_BUFFER_LENGTH(Code)
Size of the byte buffer used to read image input streams handed by ExternalResourceHandler implementations.



DEFAULT_WIDTH
final public static int DEFAULT_WIDTH(Code)
The default width for an empty SVG image



documentNode
DocumentNode documentNode(Code)
The image document



isBrokenImage
boolean isBrokenImage(Code)
Received null resourceData in requestCompleted(). Used in getImageAndWait() case.



lastElement
SVGElement lastElement(Code)
The current SVGElement with the focus



svgImageLoader
SVGImageLoader svgImageLoader(Code)
The SVGImageLoader



waitURI
String waitURI(Code)
URI requested by SVGImageLoader's getImageAndWait().





Method Detail
activate
public void activate()(Code)



createEmptyImage
public static SVGImage createEmptyImage(ExternalResourceHandler handler)(Code)



createImage
public static ScalableImage createImage(InputStream stream, ExternalResourceHandler handler) throws IOException(Code)



createImage
public static ScalableImage createImage(String URL, ExternalResourceHandler handler) throws IOException, SecurityException(Code)



dispatchMouseEvent
public void dispatchMouseEvent(String type, int x, int y) throws NullPointerException, IllegalArgumentException, DOMException(Code)
This method is used to dispatch a mouse event of the specified type to the document. The mouse position is given as screen coordinates x, y. The only mouse event type supported is "click". Note that when a "click" event is dispatched, a "DOMActivate" is automatically dispatched by the underlying implementation. If a different type is specified, a DOMException with error code NOT_SUPPORTED_ERR is thrown. In the case, where x, y values are outside the viewport area or no target is available for the x, y coordinates, the event is not dispatched.
Parameters:
  type - the type of mouse event.
Parameters:
  x - the x location of the mouse/pointer in viewport coordinatesystem.
Parameters:
  y - the y location of the mouse/pointer in viewport coordinatesystem.
throws:
  DOMException - with error code NOT_SUPPORTED_ERR: if the event type is not supported.
throws:
  NullPointerException - if type is null.
throws:
  IllegalArgumentException - if the x or y values are negative.



focusOn
public void focusOn(SVGElement element) throws DOMException(Code)



getDocument
public Document getDocument()(Code)
Returns the associated Document. the associated Document.



getViewportHeight
public int getViewportHeight()(Code)



getViewportWidth
public int getViewportWidth()(Code)



incrementTime
public void incrementTime(float seconds)(Code)



requestCompleted
public void requestCompleted(String uri, InputStream resourceData) throws IOException(Code)



setViewportHeight
public void setViewportHeight(int height)(Code)



setViewportWidth
public void setViewportWidth(int width)(Code)
An area where the ScalableImage is rendered is called viewport. If a part of the viewport lays outside of the target clipping rectangle it is clipped. The viewport coordinates are given relative to the target rendering surface.



waitOnRequestCompleted
synchronized RasterImage waitOnRequestCompleted(String uri)(Code)



Methods inherited from javax.microedition.m2g.SVGImage
public void activate()(Code)(Java Doc)
public static SVGImage createEmptyImage(ExternalResourceHandler handler)(Code)(Java Doc)
public static ScalableImage createImage(java.io.InputStream stream, ExternalResourceHandler handler) throws IOException(Code)(Java Doc)
public static ScalableImage createImage(String URL, ExternalResourceHandler handler) throws IOException(Code)(Java Doc)
public void dispatchMouseEvent(String type, int x, int y) throws DOMException(Code)(Java Doc)
public void focusOn(SVGElement element) throws DOMException(Code)(Java Doc)
public Document getDocument()(Code)(Java Doc)
public int getViewportHeight()(Code)(Java Doc)
public int getViewportWidth()(Code)(Java Doc)
public void incrementTime(float seconds)(Code)(Java Doc)
public void requestCompleted(String URI, java.io.InputStream resourceData) throws IOException(Code)(Java Doc)
public void setViewportHeight(int height)(Code)(Java Doc)
public void setViewportWidth(int width)(Code)(Java Doc)

Methods inherited from javax.microedition.m2g.ScalableImage
public static ScalableImage createImage(java.io.InputStream stream, ExternalResourceHandler handler) throws IOException(Code)(Java Doc)
public static ScalableImage createImage(String URL, ExternalResourceHandler handler) throws IOException(Code)(Java Doc)
abstract public int getViewportHeight()(Code)(Java Doc)
abstract public int getViewportWidth()(Code)(Java Doc)
abstract public void requestCompleted(String URI, java.io.InputStream resourceData) throws IOException(Code)(Java Doc)
abstract public void setViewportHeight(int height)(Code)(Java Doc)
abstract public void setViewportWidth(int width)(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.