Java Doc for TextureLoader.java in  » 6.0-JDK-Modules » java-3d » com » sun » j3d » utils » image » 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 » com.sun.j3d.utils.image 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.j3d.utils.image.TextureLoader

All known Subclasses:   com.db.utils.NewTextureLoader,
TextureLoader
public class TextureLoader extends Object (Code)
This class is used for loading a texture from an Image or BufferedImage. The Image I/O API is used to load the images. (If the JAI IIO Tools package is available, a larger set of formats can be loaded, including TIFF, JPEG2000, and so on.) Methods are provided to retrieve the Texture object and the associated ImageComponent object or a scaled version of the ImageComponent object. Default format is RGBA. Other legal formats are: RGBA, RGBA4, RGB5_A1, RGB, RGB4, RGB5, R3_G3_B2, LUM8_ALPHA8, LUM4_ALPHA4, LUMINANCE and ALPHA


Field Summary
final public static  intALLOW_NON_POWER_OF_TWO
     Optional flag - specifies that the ImageComponent2D is allowed to have dimensions that are not a power of two.
final public static  intBY_REFERENCE
    
final public static  intGENERATE_MIPMAP
    
final public static  intY_UP
    

Constructor Summary
public  TextureLoader(BufferedImage bImage)
    
public  TextureLoader(BufferedImage bImage, String format)
    
public  TextureLoader(BufferedImage bImage, int flags)
    
public  TextureLoader(BufferedImage bImage, String format, int flags)
    
public  TextureLoader(Image image, Component observer)
    
public  TextureLoader(Image image, String format, Component observer)
    
public  TextureLoader(Image image, int flags, Component observer)
    
public  TextureLoader(Image image, String format, int flags, Component observer)
    
public  TextureLoader(String fname, Component observer)
    
public  TextureLoader(String fname, String format, Component observer)
    
public  TextureLoader(String fname, int flags, Component observer)
    
public  TextureLoader(String fname, String format, int flags, Component observer)
    
public  TextureLoader(URL url, Component observer)
    
public  TextureLoader(URL url, String format, Component observer)
    
public  TextureLoader(URL url, int flags, Component observer)
    
public  TextureLoader(URL url, String format, int flags, Component observer)
    

Method Summary
public  ImageComponent2DgetImage()
    
public  ImageComponent2DgetScaledImage(float xScale, float yScale)
    
public  ImageComponent2DgetScaledImage(int width, int height)
    
public  TexturegetTexture()
     Returns the associated Texture object.

Field Detail
ALLOW_NON_POWER_OF_TWO
final public static int ALLOW_NON_POWER_OF_TWO(Code)
Optional flag - specifies that the ImageComponent2D is allowed to have dimensions that are not a power of two. If this flag is set, TextureLoader will not perform any scaling of images. If this flag is not set, images will be scaled to the nearest power of two. This is the default mode.

Note that non-power-of-two textures may not be supported by all graphics cards. Applications should check whether a particular Canvas3D supports non-power-of-two textures by calling the Canvas3D.queryProperties method, and checking whether the textureNonPowerOfTwoAvailable property is set to true.
since:
   Java 3D 1.5




BY_REFERENCE
final public static int BY_REFERENCE(Code)
Optional flag - specifies that the ImageComponent2D will access the image data by reference
since:
   Java 3D 1.2



GENERATE_MIPMAP
final public static int GENERATE_MIPMAP(Code)
Optional flag - specifies that mipmaps are generated for all levels



Y_UP
final public static int Y_UP(Code)
Optional flag - specifies that the ImageComponent2D will have a y-orientation of y up, meaning the origin of the image is the lower left
since:
   Java 3D 1.2




Constructor Detail
TextureLoader
public TextureLoader(BufferedImage bImage)(Code)
Contructs a TextureLoader object using the specified BufferedImage and default format RGBA
Parameters:
  bImage - The BufferedImage used for loading the texture
exception:
  NullPointerException - if bImage is null



TextureLoader
public TextureLoader(BufferedImage bImage, String format)(Code)
Contructs a TextureLoader object using the specified BufferedImage and format
Parameters:
  bImage - The BufferedImage used for loading the texture
Parameters:
  format - The format specifies which channels to use
exception:
  NullPointerException - if bImage is null



TextureLoader
public TextureLoader(BufferedImage bImage, int flags)(Code)
Contructs a TextureLoader object using the specified BufferedImage, option flags and default format RGBA
Parameters:
  bImage - The BufferedImage used for loading the texture
Parameters:
  flags - The flags specify what options to use in texture loading (generate mipmap etc)
exception:
  NullPointerException - if bImage is null



TextureLoader
public TextureLoader(BufferedImage bImage, String format, int flags)(Code)
Contructs a TextureLoader object using the specified BufferedImage, format and option flags
Parameters:
  bImage - The BufferedImage used for loading the texture
Parameters:
  format - The format specifies which channels to use
Parameters:
  flags - The flags specify what options to use in texture loading (generate mipmap etc)
exception:
  NullPointerException - if bImage is null



TextureLoader
public TextureLoader(Image image, Component observer)(Code)
Contructs a TextureLoader object using the specified Image and default format RGBA
Parameters:
  image - The Image used for loading the texture
Parameters:
  observer - The associated image observer
exception:
  NullPointerException - if image is null
exception:
  ImageException - if there is a problem loading the image



TextureLoader
public TextureLoader(Image image, String format, Component observer)(Code)
Contructs a TextureLoader object using the specified Image and format
Parameters:
  image - The Image used for loading the texture
Parameters:
  format - The format specifies which channels to use
Parameters:
  observer - The associated image observer
exception:
  NullPointerException - if image is null
exception:
  ImageException - if there is a problem loading the image



TextureLoader
public TextureLoader(Image image, int flags, Component observer)(Code)
Contructs a TextureLoader object using the specified Image flags and default format RGBA
Parameters:
  image - The Image used for loading the texture
Parameters:
  flags - The flags specify what options to use in texture loading (generate mipmap etc)
Parameters:
  observer - The associated image observer
exception:
  NullPointerException - if image is null
exception:
  ImageException - if there is a problem loading the image



TextureLoader
public TextureLoader(Image image, String format, int flags, Component observer)(Code)
Contructs a TextureLoader object using the specified Image format and option flags
Parameters:
  image - The Image used for loading the texture
Parameters:
  format - The format specifies which channels to use
Parameters:
  flags - The flags specify what options to use in texture loading (generate mipmap etc)
Parameters:
  observer - The associated image observer
exception:
  NullPointerException - if image is null
exception:
  ImageException - if there is a problem loading the image



TextureLoader
public TextureLoader(String fname, Component observer)(Code)
Contructs a TextureLoader object using the specified file and default format RGBA
Parameters:
  fname - The file that specifies an Image to load the texture with
Parameters:
  observer - The associated image observer
exception:
  ImageException - if there is a problem reading the image



TextureLoader
public TextureLoader(String fname, String format, Component observer)(Code)
Contructs a TextureLoader object using the specified file, and format
Parameters:
  fname - The file that specifies an Image to load the texture with
Parameters:
  format - The format specifies which channels to use
Parameters:
  observer - The associated image observer
exception:
  ImageException - if there is a problem reading the image



TextureLoader
public TextureLoader(String fname, int flags, Component observer)(Code)
Contructs a TextureLoader object using the specified file, option flags and default format RGBA
Parameters:
  fname - The file that specifies an Image to load the texture with
Parameters:
  flags - The flags specify what options to use in texture loading (generate mipmap etc)
Parameters:
  observer - The associated image observer
exception:
  ImageException - if there is a problem reading the image



TextureLoader
public TextureLoader(String fname, String format, int flags, Component observer)(Code)
Contructs a TextureLoader object using the specified file, format and option flags
Parameters:
  fname - The file that specifies an Image to load the texture with
Parameters:
  format - The format specifies which channels to use
Parameters:
  flags - The flags specify what options to use in texture loading (generate mipmap etc)
Parameters:
  observer - The associated image observer
exception:
  ImageException - if there is a problem reading the image



TextureLoader
public TextureLoader(URL url, Component observer)(Code)
Contructs a TextureLoader object using the specified URL and default format RGBA
Parameters:
  url - The URL that specifies an Image to load the texture with
Parameters:
  observer - The associated image observer
exception:
  ImageException - if there is a problem reading the image



TextureLoader
public TextureLoader(URL url, String format, Component observer)(Code)
Contructs a TextureLoader object using the specified URL, and format
Parameters:
  url - The URL that specifies an Image to load the texture with
Parameters:
  format - The format specifies which channels to use
Parameters:
  observer - The associated image observer
exception:
  ImageException - if there is a problem reading the image



TextureLoader
public TextureLoader(URL url, int flags, Component observer)(Code)
Contructs a TextureLoader object using the specified URL, option flags and default format RGBA
Parameters:
  url - The URL that specifies an Image to load the texture with
Parameters:
  flags - The flags specify what options to use in texture loading (generate mipmap etc)
Parameters:
  observer - The associated image observer
exception:
  ImageException - if there is a problem reading the image



TextureLoader
public TextureLoader(URL url, String format, int flags, Component observer)(Code)
Contructs a TextureLoader object using the specified URL, format and option flags
Parameters:
  url - The url that specifies an Image to load the texture with
Parameters:
  format - The format specifies which channels to use
Parameters:
  flags - The flags specify what options to use in texture loading (generate mipmap etc)
Parameters:
  observer - The associated image observer
exception:
  ImageException - if there is a problem reading the image




Method Detail
getImage
public ImageComponent2D getImage()(Code)
Returns the associated ImageComponent2D object The associated ImageComponent2D object



getScaledImage
public ImageComponent2D getScaledImage(float xScale, float yScale)(Code)
Returns the scaled ImageComponent2D object
Parameters:
  xScale - The X scaling factor
Parameters:
  yScale - The Y scaling factor The scaled ImageComponent2D object



getScaledImage
public ImageComponent2D getScaledImage(int width, int height)(Code)
Returns the scaled ImageComponent2D object
Parameters:
  width - The desired width
Parameters:
  height - The desired height The scaled ImageComponent2D object



getTexture
public Texture getTexture()(Code)
Returns the associated Texture object. The associated Texture object



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.