Java Doc for ImageComponent2DURL.java in  » 6.0-JDK-Modules » java-3d » org » jdesktop » j3d » utils » scenegraph » 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 3d » org.jdesktop.j3d.utils.scenegraph 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.media.j3d.ImageComponent2D
   org.jdesktop.j3d.utils.scenegraph.ImageComponent2DURL

ImageComponent2DURL
public class ImageComponent2DURL extends javax.media.j3d.ImageComponent2D implements SceneGraphStateProvider(Code)
A subclass of ImageComponent2D that includes a base URL and image name. There is also an associated state class for SceneGraphIO so when this node is saved only the baseURL and imageName are written, not the image itself. A simple AssetManager is provided which will load the images from the combined URL and imageName. Users can replace the asset manager with to provide more advanced handling if required.

The imageName may contain both the filename and a directory hierarchy ie

baseURL http://server.com/textures imageName material/stone/flagstone.jpg
author:
   paulby


Inner Class :public interface AssetManager
Inner Class :static class SimpleAssetManager implements AssetManager


Constructor Summary
public  ImageComponent2DURL(ImageComponent2D ic, java.net.URL baseURL, String imageName)
     Special constructor that creates a new ImageComponent2DURL from the provided ImageComponent2D.
public  ImageComponent2DURL(int format, int width, int height, boolean byReference, boolean yUp, java.net.URL baseURL, String imageName)
     Constructs a 2D image component object using the specified format, width, height, byReference flag, and yUp flag. Default values are used for all other parameters.
Parameters:
  format - the image component format, one of: FORMAT_RGB,FORMAT_RGBA, etc.
Parameters:
  width - the number of columns of pixels in this image componentobject
Parameters:
  height - the number of rows of pixels in this image componentobject
Parameters:
  byReference - a flag that indicates whether the data is copiedinto this image component object or is accessed by reference.
Parameters:
  yUp - a flag that indicates the y-orientation of this imagecomponent.
public  ImageComponent2DURL(int format, int width, int height, boolean byReference, boolean yUp, java.net.URL baseURL, String imageName, boolean dontUseAssetManager)
     Constructs a 2D image component object using the specified format, width, height, byReference flag, and yUp flag. Default values are used for all other parameters. If dontUseAssetManager is true then the constructor will not use the asset manager to load the image.
Parameters:
  format - the image component format, one of: FORMAT_RGB,FORMAT_RGBA, etc.
Parameters:
  width - the number of columns of pixels in this image componentobject
Parameters:
  height - the number of rows of pixels in this image componentobject
Parameters:
  byReference - a flag that indicates whether the data is copiedinto this image component object or is accessed by reference.
Parameters:
  yUp - a flag that indicates the y-orientation of this imagecomponent.

Method Summary
public static  AssetManagergetAssetManager()
     Get the current asset manager.
public  java.net.URLgetBaseURL()
    
public  StringgetImageName()
    
public  Class<? extends SceneGraphObjectState>getStateClass()
    
public static  voidsetAssetManager(AssetManager manager)
     Set the asset manager to handle all ImageComponent2DURL objects.
public  voidsetBaseURL(java.net.URL url)
    
public  voidsetImageName(String imageName)
    


Constructor Detail
ImageComponent2DURL
public ImageComponent2DURL(ImageComponent2D ic, java.net.URL baseURL, String imageName)(Code)
Special constructor that creates a new ImageComponent2DURL from the provided ImageComponent2D. This constructor will not call the AssetManager to load the image, instead taking the image from the provide ImageComponent2D.



ImageComponent2DURL
public ImageComponent2DURL(int format, int width, int height, boolean byReference, boolean yUp, java.net.URL baseURL, String imageName)(Code)
Constructs a 2D image component object using the specified format, width, height, byReference flag, and yUp flag. Default values are used for all other parameters.
Parameters:
  format - the image component format, one of: FORMAT_RGB,FORMAT_RGBA, etc.
Parameters:
  width - the number of columns of pixels in this image componentobject
Parameters:
  height - the number of rows of pixels in this image componentobject
Parameters:
  byReference - a flag that indicates whether the data is copiedinto this image component object or is accessed by reference.
Parameters:
  yUp - a flag that indicates the y-orientation of this imagecomponent. If yUp is set to true, the origin of the image isthe lower left; otherwise, the origin of the image is the upperleft.
Parameters:
  baseURL - The base URL for the image location
Parameters:
  imageName - The path and name of the image
exception:
  IllegalArgumentException - if format is invalid, or ifwidth or height are not positive.



ImageComponent2DURL
public ImageComponent2DURL(int format, int width, int height, boolean byReference, boolean yUp, java.net.URL baseURL, String imageName, boolean dontUseAssetManager)(Code)
Constructs a 2D image component object using the specified format, width, height, byReference flag, and yUp flag. Default values are used for all other parameters. If dontUseAssetManager is true then the constructor will not use the asset manager to load the image.
Parameters:
  format - the image component format, one of: FORMAT_RGB,FORMAT_RGBA, etc.
Parameters:
  width - the number of columns of pixels in this image componentobject
Parameters:
  height - the number of rows of pixels in this image componentobject
Parameters:
  byReference - a flag that indicates whether the data is copiedinto this image component object or is accessed by reference.
Parameters:
  yUp - a flag that indicates the y-orientation of this imagecomponent. If yUp is set to true, the origin of the image isthe lower left; otherwise, the origin of the image is the upperleft.
Parameters:
  baseURL - The base URL for the image location
Parameters:
  imageName - The path and name of the image
exception:
  IllegalArgumentException - if format is invalid, or ifwidth or height are not positive.




Method Detail
getAssetManager
public static AssetManager getAssetManager()(Code)
Get the current asset manager.



getBaseURL
public java.net.URL getBaseURL()(Code)
Get the Base URL for this image component TheURL for this image component



getImageName
public String getImageName()(Code)
Get the name of the image The baseURL prepended to the name will give the full URL of the image



getStateClass
public Class<? extends SceneGraphObjectState> getStateClass()(Code)
Return the State Class used by SceneGraphIO



setAssetManager
public static void setAssetManager(AssetManager manager)(Code)
Set the asset manager to handle all ImageComponent2DURL objects.



setBaseURL
public void setBaseURL(java.net.URL url)(Code)
Set the Base URL for this image component
Parameters:
  url - The URL for the image component



setImageName
public void setImageName(String imageName)(Code)
Set the name of the image The baseURL prepended to the name will give the full URL of the image



Methods inherited from javax.media.j3d.ImageComponent2D
public NodeComponent cloneNodeComponent()(Code)(Java Doc)
public BufferedImage getImage()(Code)(Java Doc)
public NioImageBuffer getNioImage()(Code)(Java Doc)
public RenderedImage getRenderedImage()(Code)(Java Doc)
public void set(BufferedImage image)(Code)(Java Doc)
public void set(RenderedImage image)(Code)(Java Doc)
public void set(NioImageBuffer image)(Code)(Java Doc)
public void setSubImage(RenderedImage image, int width, int height, int srcX, int srcY, int dstX, int dstY)(Code)(Java Doc)
public void updateData(Updater updater, int x, int y, int width, int height)(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.