Java Doc for SimpleRenderedImage.java in  » 6.0-JDK-Modules » Java-Advanced-Imaging » com » sun » media » imageioimpl » common » 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 » com.sun.media.imageioimpl.common 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.media.imageioimpl.common.SimpleRenderedImage

All known Subclasses:   com.sun.media.imageioimpl.plugins.jpeg2000.J2KRenderedImage,  com.sun.media.imageioimpl.plugins.jpeg2000.J2KRenderedImageCodecLib,  com.sun.media.imageioimpl.common.SingleTileRenderedImage,  com.sun.media.imageioimpl.plugins.raw.RawRenderedImage,
SimpleRenderedImage
abstract public class SimpleRenderedImage implements RenderedImage(Code)


Field Summary
protected  ColorModelcolorModel
     The image's ColorModel.
protected  intheight
     The image's height in pixels.
protected  intminX
     The X coordinate of the image's upper-left pixel.
protected  intminY
     The Y coordinate of the image's upper-left pixel.
protected  Hashtableproperties
     A Hashtable containing the image properties.
protected  SampleModelsampleModel
     The image's SampleModel.
protected  Vectorsources
     The image's sources, stored in a Vector.
protected  inttileGridXOffset
     The X coordinate of the upper-left pixel of tile (0, 0).
protected  inttileGridYOffset
     The Y coordinate of the upper-left pixel of tile (0, 0).
protected  inttileHeight
     The height of a tile.
protected  inttileWidth
     The width of a tile.
protected  intwidth
     The image's width in pixels.


Method Summary
public static  intXToTileX(int x, int tileGridXOffset, int tileWidth)
     Converts a pixel's X coordinate into a horizontal tile index relative to a given tile grid layout specified by its X offset and tile width.
public  intXToTileX(int x)
     Converts a pixel's X coordinate into a horizontal tile index. This is a convenience method.
public static  intYToTileY(int y, int tileGridYOffset, int tileHeight)
     Converts a pixel's Y coordinate into a vertical tile index relative to a given tile grid layout specified by its Y offset and tile height.
public  intYToTileY(int y)
     Converts a pixel's Y coordinate into a vertical tile index. This is a convenience method.
public  WritableRastercopyData(WritableRaster dest)
     Copies an arbitrary rectangular region of the RenderedImage into a caller-supplied WritableRaster.
public  RectanglegetBounds()
     Returns a Rectangle indicating the image bounds.
public  ColorModelgetColorModel()
     Returns the ColorModel of the image.
public  RastergetData()
     Returns the entire image in a single Raster.
public  RastergetData(Rectangle bounds)
     Returns an arbitrary rectangular region of the RenderedImage in a Raster.
public  intgetHeight()
     Returns the height of the image.
public  intgetMaxTileX()
     Returns the horizontal index of the rightmost column of tiles.
public  intgetMaxTileY()
     Returns the vertical index of the bottom row of tiles.
final public  intgetMaxX()
     Returns the X coordinate of the column immediatetely to the right of the rightmost column of the image.
final public  intgetMaxY()
     Returns the Y coordinate of the row immediately below the bottom row of the image.
public  intgetMinTileX()
     Returns the horizontal index of the leftmost column of tiles.
public  intgetMinTileY()
     Returns the vertical index of the uppermost row of tiles.
public  intgetMinX()
     Returns the X coordinate of the leftmost column of the image.
public  intgetMinY()
     Returns the X coordinate of the uppermost row of the image.
public  intgetNumXTiles()
     Returns the number of tiles along the tile grid in the horizontal direction.
public  intgetNumYTiles()
     Returns the number of tiles along the tile grid in the vertical direction.
public  ObjectgetProperty(String name)
     Gets a property from the property set of this image.
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  SampleModelgetSampleModel()
     Returns the SampleModel of the image.
public  VectorgetSources()
    
public  intgetTileGridXOffset()
     Returns the X coordinate of the upper-left pixel of tile (0, 0).
public  intgetTileGridYOffset()
     Returns the Y coordinate of the upper-left pixel of tile (0, 0).
public  intgetTileHeight()
     Returns the height of a tile.
public  intgetTileWidth()
     Returns the width of a tile.
public  intgetWidth()
     Returns the width of the image.
public static  inttileXToX(int tx, int tileGridXOffset, int tileWidth)
     Converts a horizontal tile index into the X coordinate of its upper left pixel relative to a given tile grid layout specified by its X offset and tile width.
public  inttileXToX(int tx)
     Converts a horizontal tile index into the X coordinate of its upper left pixel.
public static  inttileYToY(int ty, int tileGridYOffset, int tileHeight)
     Converts a vertical tile index into the Y coordinate of its upper left pixel relative to a given tile grid layout specified by its Y offset and tile height.
public  inttileYToY(int ty)
     Converts a vertical tile index into the Y coordinate of its upper left pixel.

Field Detail
colorModel
protected ColorModel colorModel(Code)
The image's ColorModel.



height
protected int height(Code)
The image's height in pixels.



minX
protected int minX(Code)
The X coordinate of the image's upper-left pixel.



minY
protected int minY(Code)
The Y coordinate of the image's upper-left pixel.



properties
protected Hashtable properties(Code)
A Hashtable containing the image properties.



sampleModel
protected SampleModel sampleModel(Code)
The image's SampleModel.



sources
protected Vector sources(Code)
The image's sources, stored in a Vector.



tileGridXOffset
protected int tileGridXOffset(Code)
The X coordinate of the upper-left pixel of tile (0, 0).



tileGridYOffset
protected int tileGridYOffset(Code)
The Y coordinate of the upper-left pixel of tile (0, 0).



tileHeight
protected int tileHeight(Code)
The height of a tile.



tileWidth
protected int tileWidth(Code)
The width of a tile.



width
protected int width(Code)
The image's width in pixels.





Method Detail
XToTileX
public static int XToTileX(int x, int tileGridXOffset, int tileWidth)(Code)
Converts a pixel's X coordinate into a horizontal tile index relative to a given tile grid layout specified by its X offset and tile width.



XToTileX
public int XToTileX(int x)(Code)
Converts a pixel's X coordinate into a horizontal tile index. This is a convenience method. No attempt is made to detect out-of-range coordinates.
Parameters:
  x - the X coordinate of a pixel. the X index of the tile containing the pixel.



YToTileY
public static int YToTileY(int y, int tileGridYOffset, int tileHeight)(Code)
Converts a pixel's Y coordinate into a vertical tile index relative to a given tile grid layout specified by its Y offset and tile height.



YToTileY
public int YToTileY(int y)(Code)
Converts a pixel's Y coordinate into a vertical tile index. This is a convenience method. No attempt is made to detect out-of-range coordinates.
Parameters:
  y - the Y coordinate of a pixel. the Y index of the tile containing the pixel.



copyData
public WritableRaster copyData(WritableRaster dest)(Code)
Copies an arbitrary rectangular region of the RenderedImage into a caller-supplied WritableRaster. The region to be computed is determined by clipping the bounds of the supplied WritableRaster against the bounds of the image. The supplied WritableRaster must have a SampleModel that is compatible with that of the image.

If the raster argument is null, the entire image will be copied into a newly-created WritableRaster with a SampleModel that is compatible with that of the image.
Parameters:
  dest - a WritableRaster to hold the returned portion ofthe image. a reference to the supplied WritableRaster, or to anew WritableRaster if the supplied one was null.




getBounds
public Rectangle getBounds()(Code)
Returns a Rectangle indicating the image bounds.



getColorModel
public ColorModel getColorModel()(Code)
Returns the ColorModel of the image.



getData
public Raster getData()(Code)
Returns the entire image in a single Raster. For images with multiple tiles this will require making a copy.

The returned Raster is semantically a copy. This means that updates to the source image will not be reflected in the returned Raster. For non-writable (immutable) source images, the returned value may be a reference to the image's internal data. The returned Raster should be considered non-writable; any attempt to alter its pixel data (such as by casting it to WritableRaster or obtaining and modifying its DataBuffer) may result in undefined behavior. The copyData method should be used if the returned Raster is to be modified. a Raster containing a copy of this image's data.




getData
public Raster getData(Rectangle bounds)(Code)
Returns an arbitrary rectangular region of the RenderedImage in a Raster. The rectangle of interest will be clipped against the image bounds.

The returned Raster is semantically a copy. This means that updates to the source image will not be reflected in the returned Raster. For non-writable (immutable) source images, the returned value may be a reference to the image's internal data. The returned Raster should be considered non-writable; any attempt to alter its pixel data (such as by casting it to WritableRaster or obtaining and modifying its DataBuffer) may result in undefined behavior. The copyData method should be used if the returned Raster is to be modified.
Parameters:
  bounds - the region of the RenderedImage to be returned.




getHeight
public int getHeight()(Code)
Returns the height of the image.



getMaxTileX
public int getMaxTileX()(Code)
Returns the horizontal index of the rightmost column of tiles. getMaxTileX() is implemented in terms of getMaxX() and so does not need to be implemented by subclasses.



getMaxTileY
public int getMaxTileY()(Code)
Returns the vertical index of the bottom row of tiles. getMaxTileY() is implemented in terms of getMaxY() and so does not need to be implemented by subclasses.



getMaxX
final public int getMaxX()(Code)
Returns the X coordinate of the column immediatetely to the right of the rightmost column of the image. getMaxX() is implemented in terms of getMinX() and getWidth() and so does not need to be implemented by subclasses.



getMaxY
final public int getMaxY()(Code)
Returns the Y coordinate of the row immediately below the bottom row of the image. getMaxY() is implemented in terms of getMinY() and getHeight() and so does not need to be implemented by subclasses.



getMinTileX
public int getMinTileX()(Code)
Returns the horizontal index of the leftmost column of tiles. getMinTileX() is implemented in terms of getMinX() and so does not need to be implemented by subclasses.



getMinTileY
public int getMinTileY()(Code)
Returns the vertical index of the uppermost row of tiles. getMinTileY() is implemented in terms of getMinY() and so does not need to be implemented by subclasses.



getMinX
public int getMinX()(Code)
Returns the X coordinate of the leftmost column of the image.



getMinY
public int getMinY()(Code)
Returns the X coordinate of the uppermost row of the image.



getNumXTiles
public int getNumXTiles()(Code)
Returns the number of tiles along the tile grid in the horizontal direction. getNumXTiles() is implemented in terms of getMinTileX() and getMaxTileX() and so does not need to be implemented by subclasses.



getNumYTiles
public int getNumYTiles()(Code)
Returns the number of tiles along the tile grid in the vertical direction. getNumYTiles() is implemented in terms of getMinTileY() and getMaxTileY() and so does not need to be implemented by subclasses.



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.
Parameters:
  name - the name of the property to get, as aString. @return a reference to the propertyObject, or the valuejava.awt.Image.UndefinedProperty.



getPropertyNames
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.

The default implementation calls getPropertyNames() and searches the list of names for matches. an array of Strings giving the validproperty names.




getSampleModel
public SampleModel getSampleModel()(Code)
Returns the SampleModel of the image.



getSources
public Vector getSources()(Code)



getTileGridXOffset
public int getTileGridXOffset()(Code)
Returns the X coordinate of the upper-left pixel of tile (0, 0).



getTileGridYOffset
public int getTileGridYOffset()(Code)
Returns the Y coordinate of the upper-left pixel of tile (0, 0).



getTileHeight
public int getTileHeight()(Code)
Returns the height of a tile.



getTileWidth
public int getTileWidth()(Code)
Returns the width of a tile.



getWidth
public int getWidth()(Code)
Returns the width of the image.



tileXToX
public static int tileXToX(int tx, int tileGridXOffset, int tileWidth)(Code)
Converts a horizontal tile index into the X coordinate of its upper left pixel relative to a given tile grid layout specified by its X offset and tile width.



tileXToX
public int tileXToX(int tx)(Code)
Converts a horizontal tile index into the X coordinate of its upper left pixel. This is a convenience method. No attempt is made to detect out-of-range indices.
Parameters:
  tx - the horizontal index of a tile. the X coordinate of the tile's upper left pixel.



tileYToY
public static int tileYToY(int ty, int tileGridYOffset, int tileHeight)(Code)
Converts a vertical tile index into the Y coordinate of its upper left pixel relative to a given tile grid layout specified by its Y offset and tile height.



tileYToY
public int tileYToY(int ty)(Code)
Converts a vertical tile index into the Y coordinate of its upper left pixel. This is a convenience method. No attempt is made to detect out-of-range indices.
Parameters:
  ty - the vertical index of a tile. the Y coordinate of the tile's upper left pixel.



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.