Java Doc for AbstractRed.java in  » Graphic-Library » batik » org » apache » batik » ext » awt » image » rendered » 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 » Graphic Library » batik » org.apache.batik.ext.awt.image.rendered 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.batik.ext.awt.image.rendered.AbstractRed

All known Subclasses:   org.apache.batik.ext.awt.image.rendered.ComponentTransferRed,  org.apache.batik.ext.awt.image.rendered.FilterAsAlphaRed,  org.apache.batik.ext.awt.image.rendered.TranslateRed,  org.apache.batik.ext.awt.image.rendered.GaussianBlurRed8Bit,  org.apache.batik.ext.awt.image.rendered.Any2LsRGBRed,  org.apache.batik.ext.awt.image.rendered.TurbulencePatternRed,  org.apache.batik.ext.awt.image.rendered.AbstractTiledRed,  org.apache.batik.ext.awt.image.codec.png.PNGRed,  org.apache.batik.ext.awt.image.rendered.FloodRed,  org.apache.batik.ext.awt.image.rendered.Any2LumRed,  org.apache.batik.ext.awt.image.rendered.DiffuseLightingRed,  org.apache.batik.ext.awt.image.rendered.PadRed,  org.apache.batik.extension.svg.HistogramRed,  org.apache.batik.ext.awt.image.rendered.FormatRed,  org.apache.batik.ext.awt.image.rendered.ProfileRed,  org.apache.batik.ext.awt.image.rendered.DisplacementMapRed,  org.apache.batik.ext.awt.image.rendered.BufferedImageCachableRed,  org.apache.batik.ext.awt.image.rendered.MultiplyAlphaRed,  org.apache.batik.gvt.filter.GraphicsNodeRed8Bit,  org.apache.batik.ext.awt.image.rendered.AffineRed,  org.apache.batik.ext.awt.image.codec.tiff.TIFFImage,  org.apache.batik.ext.awt.image.rendered.TileRed,  org.apache.batik.ext.awt.image.rendered.CompositeRed,  org.apache.batik.ext.awt.image.rendered.ColorMatrixRed,  org.apache.batik.ext.awt.image.rendered.FilterAlphaRed,  org.apache.batik.ext.awt.image.rendered.Any2sRGBRed,
AbstractRed
abstract public class AbstractRed implements CachableRed(Code)
This is an abstract base class that takes care of most of the normal issues surrounding the implementation of the CachableRed (RenderedImage) interface. It tries to make no assumptions about the subclass implementation.
author:
   Thomas DeWeese
version:
   $Id: AbstractRed.java 489226 2006-12-21 00:05:36Z cam $


Field Summary
protected  Rectanglebounds
    
protected  ColorModelcm
    
protected  intminTileXminTileY
    
protected  intnumXTilesnumYTiles
    
protected  Mapprops
    
protected  SampleModelsm
    
protected  Vectorsrcs
    
protected  inttileGridXOfftileGridYOff
    
protected  inttileWidthtileHeight
    

Constructor Summary
protected  AbstractRed()
     void constructor.
protected  AbstractRed(Rectangle bounds, Map props)
     Construct an Abstract RenderedImage from a bounds rect and props (may be null).
protected  AbstractRed(CachableRed src, Map props)
     Construct an Abstract RenderedImage from a source image and props (may be null).
Parameters:
  src - will be the first (and only) member of the srcsVector.
protected  AbstractRed(CachableRed src, Rectangle bounds, Map props)
     Construct an Abstract RenderedImage from a source image, bounds rect and props (may be null).
Parameters:
  src - will be the first (and only) member of the srcsVector.
protected  AbstractRed(CachableRed src, Rectangle bounds, ColorModel cm, SampleModel sm, Map props)
     Construct an Abstract RenderedImage from a source image, bounds rect and props (may be null).
Parameters:
  src - if not null, will be the first (and only) memberof the srcs Vector.
protected  AbstractRed(CachableRed src, Rectangle bounds, ColorModel cm, SampleModel sm, int tileGridXOff, int tileGridYOff, Map props)
     Construct an Abstract Rable from a bounds rect and props (may be null).
protected  AbstractRed(List srcs, Rectangle bounds, Map props)
     Construct an Abstract Rable from a List of sources a bounds rect and props (may be null).
Parameters:
  srcs - This is used to initialize the srcs Vector.
protected  AbstractRed(List srcs, Rectangle bounds, ColorModel cm, SampleModel sm, Map props)
     Construct an Abstract RenderedImage from a bounds rect, ColorModel (may be null), SampleModel (may be null) and props (may be null).
protected  AbstractRed(List srcs, Rectangle bounds, ColorModel cm, SampleModel sm, int tileGridXOff, int tileGridYOff, Map props)
     Construct an Abstract RenderedImage from a bounds rect, ColorModel (may be null), SampleModel (may be null), tile grid offsets and props (may be null).

Method Summary
public static  voidcopyBand(Raster src, int srcBand, WritableRaster dst, int dstBand)
    
public  voidcopyToRaster(WritableRaster wr)
     Copies data from this images tile grid into wr.
public  RectanglegetBounds()
    
public  ColorModelgetColorModel()
    
public  RastergetData()
    
public  RastergetData(Rectangle rect)
    
public  ShapegetDependencyRegion(int srcIndex, Rectangle outputRgn)
    
public  ShapegetDirtyRegion(int srcIndex, Rectangle inputRgn)
    
public  intgetHeight()
    
public  intgetMinTileX()
    
public  intgetMinTileY()
    
public  intgetMinX()
    
public  intgetMinY()
    
public  intgetNumXTiles()
    
public  intgetNumYTiles()
    
public  ObjectgetProperty(String name)
    
public  String[]getPropertyNames()
    
public  SampleModelgetSampleModel()
    
public  VectorgetSources()
    
public  RastergetTile(int tileX, int tileY)
    
public  intgetTileGridXOffset()
    
public  intgetTileGridYOffset()
    
public  intgetTileHeight()
    
public  intgetTileWidth()
    
public  intgetWidth()
    
final public  intgetXTile(int xloc)
     Returns the x index of tile under xloc.
Parameters:
  xloc - the x location (in pixels) to get tile for.
final public  intgetYTile(int yloc)
     Returns the y index of tile under yloc.
Parameters:
  yloc - the y location (in pixels) to get tile for.
protected  voidinit(CachableRed src, Rectangle bounds, ColorModel cm, SampleModel sm, int tileGridXOff, int tileGridYOff, Map props)
     This is one of two basic init function (this is for single source rendereds). It is provided so subclasses can compute various values before initializing all the state in the base class. You really should call this method before returning from your subclass constructor.
Parameters:
  src - The source for the filter
Parameters:
  bounds - The bounds of the image
Parameters:
  cm - The ColorModel to use.
protected  voidinit(List srcs, Rectangle bounds, ColorModel cm, SampleModel sm, int tileGridXOff, int tileGridYOff, Map props)
     This is the basic init function. It is provided so subclasses can compute various values before initializing all the state in the base class. You really should call this method before returning from your subclass constructor.
Parameters:
  srcs - The list of sources
Parameters:
  bounds - The bounds of the image
Parameters:
  cm - The ColorModel to use.
public  WritableRastermakeTile(int tileX, int tileY)
     This is a helper function that will create the tile requested Including properly subsetting the bounds of the tile to the bounds of the current image.
protected  voidupdateTileGridInfo()
     This function computes all the basic information about the tile grid based on the data stored in sm, and tileGridX/YOff.

Field Detail
bounds
protected Rectangle bounds(Code)



cm
protected ColorModel cm(Code)



minTileXminTileY
protected int minTileXminTileY(Code)



numXTilesnumYTiles
protected int numXTilesnumYTiles(Code)



props
protected Map props(Code)



sm
protected SampleModel sm(Code)



srcs
protected Vector srcs(Code)



tileGridXOfftileGridYOff
protected int tileGridXOfftileGridYOff(Code)



tileWidthtileHeight
protected int tileWidthtileHeight(Code)




Constructor Detail
AbstractRed
protected AbstractRed()(Code)
void constructor. The subclass must call one of the flavors of init before the object becomes usable. This is useful when the proper parameters to the init method need to be computed in the subclasses constructor.



AbstractRed
protected AbstractRed(Rectangle bounds, Map props)(Code)
Construct an Abstract RenderedImage from a bounds rect and props (may be null). The srcs Vector will be empty.
Parameters:
  bounds - this defines the extent of the rable in theuser coordinate system.
Parameters:
  props - this initializes the props Map (may be null)



AbstractRed
protected AbstractRed(CachableRed src, Map props)(Code)
Construct an Abstract RenderedImage from a source image and props (may be null).
Parameters:
  src - will be the first (and only) member of the srcsVector. Src is also used to set the bounds, ColorModel,SampleModel, and tile grid offsets.
Parameters:
  props - this initializes the props Map.



AbstractRed
protected AbstractRed(CachableRed src, Rectangle bounds, Map props)(Code)
Construct an Abstract RenderedImage from a source image, bounds rect and props (may be null).
Parameters:
  src - will be the first (and only) member of the srcsVector. Src is also used to set the ColorModel, SampleModel,and tile grid offsets.
Parameters:
  bounds - The bounds of this image.
Parameters:
  props - this initializes the props Map.



AbstractRed
protected AbstractRed(CachableRed src, Rectangle bounds, ColorModel cm, SampleModel sm, Map props)(Code)
Construct an Abstract RenderedImage from a source image, bounds rect and props (may be null).
Parameters:
  src - if not null, will be the first (and only) memberof the srcs Vector. Also if it is not null it provides thetile grid offsets, otherwise they are zero.
Parameters:
  bounds - The bounds of this image.
Parameters:
  cm - The ColorModel to use. If null it will default toComponentColorModel.
Parameters:
  sm - The sample model to use. If null it will constructa sample model the matches the given/generated ColorModel and isthe size of bounds.
Parameters:
  props - this initializes the props Map.



AbstractRed
protected AbstractRed(CachableRed src, Rectangle bounds, ColorModel cm, SampleModel sm, int tileGridXOff, int tileGridYOff, Map props)(Code)
Construct an Abstract Rable from a bounds rect and props (may be null). The srcs Vector will be empty.
Parameters:
  src - will be the first (and only) member of the srcsVector. Src is also used to set the ColorModel, SampleModel,and tile grid offsets.
Parameters:
  bounds - this defines the extent of the rable in theuser coordinate system.
Parameters:
  cm - The ColorModel to use. If null it will default toComponentColorModel.
Parameters:
  sm - The sample model to use. If null it will constructa sample model the matches the given/generated ColorModel and isthe size of bounds.
Parameters:
  tileGridXOff - The x location of tile 0,0.
Parameters:
  tileGridYOff - The y location of tile 0,0.
Parameters:
  props - this initializes the props Map.



AbstractRed
protected AbstractRed(List srcs, Rectangle bounds, Map props)(Code)
Construct an Abstract Rable from a List of sources a bounds rect and props (may be null).
Parameters:
  srcs - This is used to initialize the srcs Vector. Allthe members of srcs must be CachableRed otherwise an errorwill be thrown.
Parameters:
  bounds - this defines the extent of the rendered in pixels
Parameters:
  props - this initializes the props Map.



AbstractRed
protected AbstractRed(List srcs, Rectangle bounds, ColorModel cm, SampleModel sm, Map props)(Code)
Construct an Abstract RenderedImage from a bounds rect, ColorModel (may be null), SampleModel (may be null) and props (may be null). The srcs Vector will be empty.
Parameters:
  srcs - This is used to initialize the srcs Vector. Allthe members of srcs must be CachableRed otherwise an errorwill be thrown.
Parameters:
  bounds - this defines the extent of the rendered in pixels
Parameters:
  cm - The ColorModel to use. If null it will default toComponentColorModel.
Parameters:
  sm - The sample model to use. If null it will constructa sample model the matches the given/generated ColorModel and isthe size of bounds.
Parameters:
  props - this initializes the props Map.



AbstractRed
protected AbstractRed(List srcs, Rectangle bounds, ColorModel cm, SampleModel sm, int tileGridXOff, int tileGridYOff, Map props)(Code)
Construct an Abstract RenderedImage from a bounds rect, ColorModel (may be null), SampleModel (may be null), tile grid offsets and props (may be null). The srcs Vector will be empty.
Parameters:
  srcs - This is used to initialize the srcs Vector. Allthe members of srcs must be CachableRed otherwise an errorwill be thrown.
Parameters:
  bounds - this defines the extent of the rable in theuser coordinate system.
Parameters:
  cm - The ColorModel to use. If null it will default toComponentColorModel.
Parameters:
  sm - The sample model to use. If null it will constructa sample model the matches the given/generated ColorModel and isthe size of bounds.
Parameters:
  tileGridXOff - The x location of tile 0,0.
Parameters:
  tileGridYOff - The y location of tile 0,0.
Parameters:
  props - this initializes the props Map.




Method Detail
copyBand
public static void copyBand(Raster src, int srcBand, WritableRaster dst, int dstBand)(Code)



copyToRaster
public void copyToRaster(WritableRaster wr)(Code)
Copies data from this images tile grid into wr. wr may extend outside the bounds of this image in which case the data in wr outside the bounds will not be touched.
Parameters:
  wr - Raster to fill with image data.



getBounds
public Rectangle getBounds()(Code)



getColorModel
public ColorModel getColorModel()(Code)



getData
public Raster getData()(Code)



getData
public Raster getData(Rectangle rect)(Code)



getDependencyRegion
public Shape getDependencyRegion(int srcIndex, Rectangle outputRgn)(Code)



getDirtyRegion
public Shape getDirtyRegion(int srcIndex, Rectangle inputRgn)(Code)



getHeight
public int getHeight()(Code)



getMinTileX
public int getMinTileX()(Code)



getMinTileY
public int getMinTileY()(Code)



getMinX
public int getMinX()(Code)



getMinY
public int getMinY()(Code)



getNumXTiles
public int getNumXTiles()(Code)



getNumYTiles
public int getNumYTiles()(Code)



getProperty
public Object getProperty(String name)(Code)



getPropertyNames
public String[] getPropertyNames()(Code)



getSampleModel
public SampleModel getSampleModel()(Code)



getSources
public Vector getSources()(Code)



getTile
public Raster getTile(int tileX, int tileY)(Code)



getTileGridXOffset
public int getTileGridXOffset()(Code)



getTileGridYOffset
public int getTileGridYOffset()(Code)



getTileHeight
public int getTileHeight()(Code)



getTileWidth
public int getTileWidth()(Code)



getWidth
public int getWidth()(Code)



getXTile
final public int getXTile(int xloc)(Code)
Returns the x index of tile under xloc.
Parameters:
  xloc - the x location (in pixels) to get tile for. The tile index under xloc (may be outside tile grid).



getYTile
final public int getYTile(int yloc)(Code)
Returns the y index of tile under yloc.
Parameters:
  yloc - the y location (in pixels) to get tile for. The tile index under yloc (may be outside tile grid).



init
protected void init(CachableRed src, Rectangle bounds, ColorModel cm, SampleModel sm, int tileGridXOff, int tileGridYOff, Map props)(Code)
This is one of two basic init function (this is for single source rendereds). It is provided so subclasses can compute various values before initializing all the state in the base class. You really should call this method before returning from your subclass constructor.
Parameters:
  src - The source for the filter
Parameters:
  bounds - The bounds of the image
Parameters:
  cm - The ColorModel to use. If null it defaults toComponentColorModel/ src's ColorModel.
Parameters:
  sm - The Sample modle to use. If this is null it willuse the src's sample model if that is null it willconstruct a sample model that matches the ColorModeland is the size of the whole image.
Parameters:
  tileGridXOff - The x location of tile 0,0.
Parameters:
  tileGridYOff - The y location of tile 0,0.
Parameters:
  props - Any properties you want to associate with the image.



init
protected void init(List srcs, Rectangle bounds, ColorModel cm, SampleModel sm, int tileGridXOff, int tileGridYOff, Map props)(Code)
This is the basic init function. It is provided so subclasses can compute various values before initializing all the state in the base class. You really should call this method before returning from your subclass constructor.
Parameters:
  srcs - The list of sources
Parameters:
  bounds - The bounds of the image
Parameters:
  cm - The ColorModel to use. If null it defaults toComponentColorModel.
Parameters:
  sm - The Sample modle to use. If this is null it willconstruct a sample model that matches the ColorModeland is the size of the whole image.
Parameters:
  tileGridXOff - The x location of tile 0,0.
Parameters:
  tileGridYOff - The y location of tile 0,0.
Parameters:
  props - Any properties you want to associate with the image.



makeTile
public WritableRaster makeTile(int tileX, int tileY)(Code)
This is a helper function that will create the tile requested Including properly subsetting the bounds of the tile to the bounds of the current image.
Parameters:
  tileX - The x index of the tile to be built
Parameters:
  tileY - The y index of the tile to be built The tile requested
exception:
  IndexOutOfBoundsException - if the requested tile indexfalles outside of the bounds of the tile grid for the image.



updateTileGridInfo
protected void updateTileGridInfo()(Code)
This function computes all the basic information about the tile grid based on the data stored in sm, and tileGridX/YOff. It is responsible for updating tileWidth, tileHeight, minTileX/Y, and numX/YTiles.



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)

w___ww._j_a_v__a___2_s___.co_m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.