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


java.lang.Object
   javax.media.jai.RenderableImageAdapter

RenderableImageAdapter
final public class RenderableImageAdapter implements RenderableImage,WritablePropertySource(Code)
An adapter class for externally-generated RenderableImages. All methods are simply forwarded to the image being adapted. The purpose of this class is simply to ensure that the PropertySource interface is available for all JAI RenderableImages.

The set of properties available on the image will be a combination of those defined locally via setProperty() and those defined on the source image with the local properties taking precedence. No PropertySourceChangeEvent will be generated as a result of changes to the property set of the source image.




Constructor Summary
public  RenderableImageAdapter(RenderableImage im)
     Constructs a RenderableImageAdapter from a RenderableImage.

Method Summary
public  voidaddPropertyChangeListener(PropertyChangeListener listener)
     Add a PropertyChangeListener to the listener list.
public  voidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener)
     Add a PropertyChangeListener for a specific property.
final public  RenderedImagecreateDefaultRendering()
     Gets a RenderedImage instance of this image with a default width and height in pixels.
final public  RenderedImagecreateRendering(RenderContext renderContext)
     Gets a RenderedImage instance of this image from a RenderContext.
final public  RenderedImagecreateScaledRendering(int w, int h, RenderingHints hints)
     Gets a RenderedImage instance of this image with width w, and height h in pixels.
final public  floatgetHeight()
     Gets the height in user coordinate space.
final public  floatgetMinX()
     Gets the minimum X coordinate of the rendering-independent image.
final public  floatgetMinY()
     Gets the minimum Y coordinate of the rendering-independent image.
final public  ObjectgetProperty(String name)
     Gets a property from the property set of this image. If the property name is not recognized, java.awt.Image.UndefinedProperty will be returned.
Parameters:
  name - the name of the property to get, as a String.
throws:
  IllegalArgumentException - if name isnull.
public  ClassgetPropertyClass(String name)
     Returns the class expected to be returned by a request for the property with the specified name.
final public  String[]getPropertyNames()
     Returns a list of the properties recognized by this image.
public  String[]getPropertyNames(String prefix)
     Returns an array of Strings recognized as names by this property source that begin with the supplied prefix.
final public  VectorgetSources()
    
final public  floatgetWidth()
     Gets the width in user coordinate space.
final public  RenderableImagegetWrappedImage()
     Returns the reference to the external RenderableImage originally supplied to the constructor.
final public  booleanisDynamic()
     Returns true if successive renderings (that is, calls to createRendering() or createScaledRendering()) with the same arguments may produce different results.
public  voidremoveProperty(String name)
     Removes the named property from the RenderableImageAdapter.
public  voidremovePropertyChangeListener(PropertyChangeListener listener)
     Remove a PropertyChangeListener from the listener list.
public  voidremovePropertyChangeListener(String propertyName, PropertyChangeListener listener)
     Remove a PropertyChangeListener for a specific property.
public  voidsetProperty(String name, Object value)
     Sets a property on a RenderableImageAdapter.
public static  RenderableImageAdapterwrapRenderableImage(RenderableImage im)
     Adapts a RenderableImage into a RenderableImageAdapter. If the image is already an instance of RenderableImageAdapter, it is returned unchanged.
Parameters:
  im - a RenderableImage.


Constructor Detail
RenderableImageAdapter
public RenderableImageAdapter(RenderableImage im)(Code)
Constructs a RenderableImageAdapter from a RenderableImage.
throws:
  IllegalArgumentException - if im is null.




Method Detail
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)(Code)
Add a PropertyChangeListener to the listener list. The listener is registered for all properties.
since:
   JAI 1.1



addPropertyChangeListener
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)
Add a PropertyChangeListener for a specific property. The case of the name is ignored.
since:
   JAI 1.1



createDefaultRendering
final public RenderedImage createDefaultRendering()(Code)
Gets a RenderedImage instance of this image with a default width and height in pixels. The RenderContext is built automatically with an appropriate usr2dev transform and an area of interest of the full image. All the rendering hints come from hints passed in. Implementors of this interface must be sure that there is a defined default width and height. a RenderedImage containing the rendered data.



createRendering
final public RenderedImage createRendering(RenderContext renderContext)(Code)
Gets a RenderedImage instance of this image from a RenderContext. This is the most general way to obtain a rendering of a RenderableImage.
Parameters:
  renderContext - the RenderContext to use to produce the rendering. a RenderedImage containing the rendered data.



createScaledRendering
final public RenderedImage createScaledRendering(int w, int h, RenderingHints hints)(Code)
Gets a RenderedImage instance of this image with width w, and height h in pixels. The RenderContext is built automatically with an appropriate usr2dev transform and an area of interest of the full image. All the rendering hints come from hints passed in.
Parameters:
  w - the width of rendered image in pixels.
Parameters:
  h - the height of rendered image in pixels.
Parameters:
  hints - a RenderingHints object containing rendering hints. a RenderedImage containing the rendered data.



getHeight
final public float getHeight()(Code)
Gets the height in user coordinate space. By convention, the usual height of a RenderedImage is equal to 1.0F. the height of the image in user coordinates.



getMinX
final public float getMinX()(Code)
Gets the minimum X coordinate of the rendering-independent image.



getMinY
final public float getMinY()(Code)
Gets the minimum Y coordinate of the rendering-independent image.



getProperty
final public Object getProperty(String name)(Code)
Gets a property from the property set of this image. If the property name is not recognized, java.awt.Image.UndefinedProperty will be returned.
Parameters:
  name - the name of the property to get, as a String.
throws:
  IllegalArgumentException - if name isnull. a reference to the property Object, or the valuejava.awt.Image.UndefinedProperty.



getPropertyClass
public Class getPropertyClass(String name)(Code)
Returns the class expected to be returned by a request for the property with the specified name. If this information is unavailable, null will be returned. The Class expected to be return by arequest for the value of this property or null.
throws:
  IllegalArgumentException - if name isnull.
since:
   JAI 1.1



getPropertyNames
final public String[] getPropertyNames()(Code)
Returns a list of the properties recognized by this image. If no properties are available, null will be returned. an array of Strings representing validproperty names.



getPropertyNames
public String[] getPropertyNames(String prefix)(Code)
Returns an array of Strings recognized as names by this property source that begin with the supplied prefix. If no property names match, null will be returned. The comparison is done in a case-independent manner.
throws:
  IllegalArgumentException - if prefix isnull. an array of Strings giving the validproperty names.



getSources
final public Vector getSources()(Code)



getWidth
final public float getWidth()(Code)
Gets the width in user coordinate space. By convention, the usual width of a RenderableImage is equal to the image's aspect ratio (width divided by height). the width of the image in user coordinates.



getWrappedImage
final public RenderableImage getWrappedImage()(Code)
Returns the reference to the external RenderableImage originally supplied to the constructor.
since:
   JAI 1.1.2



isDynamic
final public boolean isDynamic()(Code)
Returns true if successive renderings (that is, calls to createRendering() or createScaledRendering()) with the same arguments may produce different results. This method may be used to determine whether an existing rendering may be cached and reused.



removeProperty
public void removeProperty(String name)(Code)
Removes the named property from the RenderableImageAdapter.
throws:
  IllegalArgumentException - if name isnull.
since:
   JAI 1.1



removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)(Code)
Remove a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.
since:
   JAI 1.1



removePropertyChangeListener
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)
Remove a PropertyChangeListener for a specific property. The case of the name is ignored.
since:
   JAI 1.1



setProperty
public void setProperty(String name, Object value)(Code)
Sets a property on a RenderableImageAdapter.
Parameters:
  name - a String containing the property's name.
Parameters:
  value - the property, as a general Object.
throws:
  IllegalArgumentException - If name or value is null.
since:
   JAI 1.1



wrapRenderableImage
public static RenderableImageAdapter wrapRenderableImage(RenderableImage im)(Code)
Adapts a RenderableImage into a RenderableImageAdapter. If the image is already an instance of RenderableImageAdapter, it is returned unchanged.
Parameters:
  im - a RenderableImage. a RenderableImageAdapter.
throws:
  IllegalArgumentException - if im is null.



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.