Java Doc for RawBinaryImageReadParam.java in  » GIS » GeoTools-2.4.1 » org » geotools » image » io » 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 » GIS » GeoTools 2.4.1 » org.geotools.image.io 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.imageio.ImageReadParam
   org.geotools.image.io.RawBinaryImageReadParam

RawBinaryImageReadParam
public class RawBinaryImageReadParam extends ImageReadParam (Code)
A class describing how a raw binary stream is to be decoded. In the context of RawBinaryImageReader , the stream may not contains enough information for an optimal decoding. For example the stream may not contains image's width and height. The RawBinaryImageReadParam gives a chance to specify those missing informations.
since:
   2.0
version:
   $Id: RawBinaryImageReadParam.java 26708 2007-08-27 19:42:59Z desruisseaux $
author:
   Martin Desruisseaux



Constructor Summary
public  RawBinaryImageReadParam()
     Constructs a new RawBinaryImageReadParam with default parameters.

Method Summary
final  ImageTypeSpecifiergetDestinationType(int numBands)
     Creates a destination type with the specified number of bands.
public  doublegetPadValue()
    
public  intgetStreamDataType()
     Returns the data type in input stream, or DataBuffer.TYPE_UNDEFINED if unknow.
public  DimensiongetStreamImageSize()
     Returns the image size in the input stream, or null if unknow.
public  SampleModelgetStreamSampleModel()
     Returns a sample model indicating the data layout in the input stream.
final  SampleModelgetStreamSampleModel(SampleModel defaultSampleModel)
     Returns a sample model indicating the data layout in the input stream. The SampleModel 's width and height should matches the image size in the input stream.
Parameters:
  defaultSampleModel - A default sample model, or null if there is no default.
public  voidsetDestinationType(int destType)
     Sets the desired image type for the destination image, using one of DataBuffer enumeration constant.
public  voidsetPadValue(double padValue)
     Set the pad value.
public  voidsetStreamDataType(int dataType)
     Specifies the data type in input stream.
public  voidsetStreamImageSize(Dimension size)
     Specifies the image size in the input stream.
public  voidsetStreamSampleModel(SampleModel model)
     Set a sample model indicating the data layout in the input stream. Indications comprise image size and data type, i.e.


Constructor Detail
RawBinaryImageReadParam
public RawBinaryImageReadParam()(Code)
Constructs a new RawBinaryImageReadParam with default parameters.




Method Detail
getDestinationType
final ImageTypeSpecifier getDestinationType(int numBands)(Code)
Creates a destination type with the specified number of bands. If no such destination type is available, returns null .



getPadValue
public double getPadValue()(Code)
Returns the pad value, or Double.NaN if there is none



getStreamDataType
public int getStreamDataType()(Code)
Returns the data type in input stream, or DataBuffer.TYPE_UNDEFINED if unknow. Data type is specified by the last call to RawBinaryImageReadParam.setStreamDataType or RawBinaryImageReadParam.setStreamSampleModel .



getStreamImageSize
public Dimension getStreamImageSize()(Code)
Returns the image size in the input stream, or null if unknow. Image size is specified by the last call to RawBinaryImageReadParam.setStreamImageSize or RawBinaryImageReadParam.setStreamSampleModel .



getStreamSampleModel
public SampleModel getStreamSampleModel()(Code)
Returns a sample model indicating the data layout in the input stream. The SampleModel 's width and height should matches the image size in the input stream. A sample model indicating the data layout in the input stream,or null if unknow.



getStreamSampleModel
final SampleModel getStreamSampleModel(SampleModel defaultSampleModel)(Code)
Returns a sample model indicating the data layout in the input stream. The SampleModel 's width and height should matches the image size in the input stream.
Parameters:
  defaultSampleModel - A default sample model, or null if there is no default. If this RawBinaryImageReadParam contains unspecified sample model, image size or data type, valuesfrom defaultSampleModel will be used. A sample model indicating the data layout in the input stream,or null if unknow.



setDestinationType
public void setDestinationType(int destType)(Code)
Sets the desired image type for the destination image, using one of DataBuffer enumeration constant. This setting will override any previous setting made with RawBinaryImageReadParam.setDestinationType(ImageTypeSpecifier) or this setDestinationType(int) method.
Parameters:
  destType - The data type. This should be a constant from DataBuffer.Common types are DataBuffer.TYPE_INT, DataBuffer.TYPE_FLOATand DataBuffer.TYPE_DOUBLE.



setPadValue
public void setPadValue(double padValue)(Code)
Set the pad value.
Parameters:
  padValue - The pad value, or Double.NaN if there is none.



setStreamDataType
public void setStreamDataType(int dataType)(Code)
Specifies the data type in input stream. Setting data type to DataBuffer.TYPE_UNDEFINED reset the default value, which is reader dependent.
Parameters:
  dataType - The data type, or DataBuffer.TYPE_UNDEFINED if unknow.Know data type should be a constant from DataBuffer. Commontypes are DataBuffer.TYPE_INT, DataBuffer.TYPE_FLOATand DataBuffer.TYPE_DOUBLE.



setStreamImageSize
public void setStreamImageSize(Dimension size)(Code)
Specifies the image size in the input stream. Setting the size to null reset the default size, which is reader dependent. Most readers will thrown an exception at reading time if the image size is unspecified.
Parameters:
  size - The expected image size, or null if unknow.



setStreamSampleModel
public void setStreamSampleModel(SampleModel model)(Code)
Set a sample model indicating the data layout in the input stream. Indications comprise image size and data type, i.e. calling this method with a non-null value is equivalent to calling also the following methods:
 setStreamImageSize(model.getWidth(), model.getHeight());
 setStreamDataType(model.getDataType());
 
Setting the sample model to null reset the default model, which is reader dependent.



Fields inherited from javax.imageio.ImageReadParam
protected boolean canSetSourceRenderSize(Code)(Java Doc)
protected BufferedImage destination(Code)(Java Doc)
protected int[] destinationBands(Code)(Java Doc)
protected int minProgressivePass(Code)(Java Doc)
protected int numProgressivePasses(Code)(Java Doc)
protected Dimension sourceRenderSize(Code)(Java Doc)

Methods inherited from javax.imageio.ImageReadParam
public boolean canSetSourceRenderSize()(Code)(Java Doc)
public BufferedImage getDestination()(Code)(Java Doc)
public int[] getDestinationBands()(Code)(Java Doc)
public int getSourceMaxProgressivePass()(Code)(Java Doc)
public int getSourceMinProgressivePass()(Code)(Java Doc)
public int getSourceNumProgressivePasses()(Code)(Java Doc)
public Dimension getSourceRenderSize()(Code)(Java Doc)
public void setDestination(BufferedImage destination)(Code)(Java Doc)
public void setDestinationBands(int[] destinationBands)(Code)(Java Doc)
public void setDestinationType(ImageTypeSpecifier destinationType)(Code)(Java Doc)
public void setSourceProgressivePasses(int minPass, int numPasses)(Code)(Java Doc)
public void setSourceRenderSize(Dimension size) throws UnsupportedOperationException(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.