Java Doc for MultiResolutionRenderableImage.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.MultiResolutionRenderableImage

MultiResolutionRenderableImage
public class MultiResolutionRenderableImage implements WritablePropertySource,RenderableImage,Serializable(Code)
A RenderableImage that produces renderings based on a set of supplied RenderedImages at various resolutions.


Field Summary
protected  floataspect
     The aspect ratio, derived from the highest-resolution source.
protected  PropertyChangeSupportJAIeventManager
     A helper object to manage firing events.
protected  floatheight
     The height in Renderable coordinates.
protected  floatminX
     The min X coordinate in Renderable coordinates.
protected  floatminY
     The min Y coordinate in Renderable coordinates.
protected  WritablePropertySourceImplproperties
     A helper object to manage the image properties.
protected transient  RenderedImage[]renderedSource
     An array of RenderedImage sources.
protected  floatwidth
     The width in Renderable coordinates.

Constructor Summary
public  MultiResolutionRenderableImage(Vector renderedSources, float minX, float minY, float height)
     Constructs a MultiResolutionRenderableImage with given dimensions from a Vector of progressively lower resolution versions of a RenderedImage.

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.
public  RenderedImagecreateDefaultRendering()
     Returns the full resolution source RenderedImage with no rendering hints.
public  RenderedImagecreateRendering(RenderContext renderContext)
     Returns a rendering based on a RenderContext.

If a JAI rendering hint named JAI.KEY_INTERPOLATION is provided, its corresponding Interpolation object is used as an argument to the JAI operator used to transform the image.

public  RenderedImagecreateScaledRendering(int width, int height, RenderingHints hints)
     Returns a rendering with a given width, height, and rendering hints.

If a JAI rendering hint named JAI.KEY_INTERPOLATION is provided, its corresponding Interpolation object is used as an argument to the JAI operator used to scale the image.

public  floatgetHeight()
     Returns the floating-point height of the RenderableImage.
public  floatgetMaxX()
     Returns the floating-point max X coordinate of the RenderableImage.
public  floatgetMaxY()
     Returns the floating-point max Y coordinate of the RenderableImage.
public  floatgetMinX()
     Returns the floating-point min X coordinate of the RenderableImage.
public  floatgetMinY()
     Returns the floating-point min Y coordinate of the RenderableImage.
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.
public  ClassgetPropertyClass(String name)
     Returns the class expected to be returned by a request for the property with the specified name.
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.
public  VectorgetSources()
     Returns an empty Vector, indicating that this RenderableImage has no Renderable sources.
public  floatgetWidth()
     Returns the floating-point width of the RenderableImage.
public  booleanisDynamic()
     Returns false since successive renderings (that is, calls to createRendering() or createScaledRendering()) with the same arguments will never produce different results.
public  voidremoveProperty(String name)
     Removes the named property from the MultiResolutionRenderableImage.
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 MultiResolutionRenderableImage.

Field Detail
aspect
protected float aspect(Code)
The aspect ratio, derived from the highest-resolution source.



eventManager
protected PropertyChangeSupportJAI eventManager(Code)
A helper object to manage firing events.
since:
   JAI 1.1



height
protected float height(Code)
The height in Renderable coordinates.



minX
protected float minX(Code)
The min X coordinate in Renderable coordinates.



minY
protected float minY(Code)
The min Y coordinate in Renderable coordinates.



properties
protected WritablePropertySourceImpl properties(Code)
A helper object to manage the image properties.
since:
   JAI 1.1



renderedSource
protected transient RenderedImage[] renderedSource(Code)
An array of RenderedImage sources.



width
protected float width(Code)
The width in Renderable coordinates.




Constructor Detail
MultiResolutionRenderableImage
public MultiResolutionRenderableImage(Vector renderedSources, float minX, float minY, float height)(Code)
Constructs a MultiResolutionRenderableImage with given dimensions from a Vector of progressively lower resolution versions of a RenderedImage.
Parameters:
  renderedSources - a Vector of RenderedImages.
Parameters:
  minX - the minimum X coordinate of the Renderable,as a float.
Parameters:
  minY - the minimum Y coordinate of the Renderable,as a float.
Parameters:
  height - the height of the Renderable, as a float.
throws:
  IllegalArgumentException - if the supplied height isnon-positive.




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 listener will be invoked only when a call on firePropertyChange names that specific property. The case of the name is ignored.
since:
   JAI 1.1



createDefaultRendering
public RenderedImage createDefaultRendering()(Code)
Returns the full resolution source RenderedImage with no rendering hints.



createRendering
public RenderedImage createRendering(RenderContext renderContext)(Code)
Returns a rendering based on a RenderContext.

If a JAI rendering hint named JAI.KEY_INTERPOLATION is provided, its corresponding Interpolation object is used as an argument to the JAI operator used to transform the image. If no such hint is present, an instance of InterpolationNearest is used.

The RenderContext may contain a Shape that represents the area-of-interest (aoi). If the aoi is specifed, it is still legal to return an image that's larger than this aoi. Therefore, by default, the aoi, if specified, is ignored at the rendering.
Parameters:
  renderContext - a RenderContext describing the transformrendering hints.
throws:
  IllegalArgumentException - if renderContext is null.




createScaledRendering
public RenderedImage createScaledRendering(int width, int height, RenderingHints hints)(Code)
Returns a rendering with a given width, height, and rendering hints.

If a JAI rendering hint named JAI.KEY_INTERPOLATION is provided, its corresponding Interpolation object is used as an argument to the JAI operator used to scale the image. If no such hint is present, an instance of InterpolationNearest is used.
Parameters:
  width - the width of the rendering in pixels.
Parameters:
  height - the height of the rendering in pixels.
Parameters:
  hints - a Hashtable of rendering hints.
throws:
  IllegalArgumentException - if width or height are non-positive.




getHeight
public float getHeight()(Code)
Returns the floating-point height of the RenderableImage.



getMaxX
public float getMaxX()(Code)
Returns the floating-point max X coordinate of the RenderableImage.



getMaxY
public float getMaxY()(Code)
Returns the floating-point max Y coordinate of the RenderableImage.



getMinX
public float getMinX()(Code)
Returns the floating-point min X coordinate of the RenderableImage.



getMinY
public float getMinY()(Code)
Returns the floating-point min Y coordinate of the RenderableImage.



getProperty
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. The default implementation returns java.awt.Image.UndefinedProperty.
Parameters:
  name - the name of the property to get, as a String. a reference to the property Object, or the valuejava.awt.Image.UndefinedProperty.
exception:
  IllegalArgumentException - if nameis null.



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.
exception:
  IllegalArgumentException - if nameis null.
since:
   JAI 1.1



getPropertyNames
public String[] getPropertyNames()(Code)
Returns a list of the properties recognized by this image. If no properties are recognized by this image, null will be returned. The default implementation returns null, i.e., no property names are recognized. an array of Strings representing valid property names.
since:
   JAI 1.1



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 are recognized, or no property names match, null will be returned. The comparison is done in a case-independent manner. An array of Strings giving the validproperty names.
Parameters:
  prefix - the supplied prefix for the property source.
throws:
  IllegalArgumentException - if prefix isnull.



getSources
public Vector getSources()(Code)
Returns an empty Vector, indicating that this RenderableImage has no Renderable sources. an empty Vector.



getWidth
public float getWidth()(Code)
Returns the floating-point width of the RenderableImage.



isDynamic
public boolean isDynamic()(Code)
Returns false since successive renderings (that is, calls to createRendering() or createScaledRendering()) with the same arguments will never produce different results.



removeProperty
public void removeProperty(String name)(Code)
Removes the named property from the MultiResolutionRenderableImage. The value of the property removed orjava.awt.Image.UndefinedProperty if it wasnot present in the property set.
exception:
  IllegalArgumentException - if nameis null.
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 MultiResolutionRenderableImage.
Parameters:
  name - a String containing the property's name.
Parameters:
  value - the property, as a general Object.
throws:
  IllegalArgumentException - If name orvalue is null.
since:
   JAI 1.1



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.