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


java.lang.Object
   org.geotools.coverage.grid.GeneralGridRange

GeneralGridRange
public class GeneralGridRange implements GridRange,Serializable(Code)
Defines a range of grid coverage coordinates.
since:
   2.1
version:
   $Id: GeneralGridRange.java 24925 2007-03-27 20:12:08Z jgarnett $
author:
   Martin Desruisseaux



Constructor Summary
public  GeneralGridRange(int lower, int upper)
     Constructs one-dimensional grid range.
public  GeneralGridRange(int[] lower, int[] upper)
     Constructs a new grid range.
Parameters:
  lower - The valid minimum inclusive grid coordinate.The array contains a minimum value for eachdimension of the grid coverage.
public  GeneralGridRange(Rectangle rect)
     Constructs two-dimensional range defined by a Rectangle .
public  GeneralGridRange(Raster raster)
     Constructs two-dimensional range defined by a Raster .
public  GeneralGridRange(RenderedImage image)
     Constructs two-dimensional range defined by a RenderedImage .
 GeneralGridRange(RenderedImage image, int dimension)
     Constructs multi-dimensional range defined by a RenderedImage .
public  GeneralGridRange(Envelope envelope)
     Cast the specified envelope into a grid range.

Method Summary
public  booleanequals(Object object)
     Compares the specified object with this grid range for equality.
public  intgetDimension()
     Returns the number of dimensions.
public  intgetLength(int dimension)
     Returns the number of integer grid coordinates along the specified dimension.
public  intgetLower(int dimension)
     Returns the valid minimum inclusive grid coordinate along the specified dimension.
public  GridCoordinatesgetLower()
     Returns the valid minimum inclusive grid coordinate.
public  int[]getLowers()
     Returns the valid minimum inclusive grid coordinates along all dimensions.
public  GeneralGridRangegetSubGridRange(int lower, int upper)
     Returns a new grid range that encompass only some dimensions of this grid range. This method copy this grid range's index into a new grid range, beginning at dimension lower and extending to dimension upper-1 . Thus the dimension of the subgrid range is upper-lower .
Parameters:
  lower - The first dimension to copy, inclusive.
Parameters:
  upper - The last dimension to copy, exclusive.
public  intgetUpper(int dimension)
     Returns the valid maximum exclusive grid coordinate along the specified dimension.
public  GridCoordinatesgetUpper()
     Returns the valid maximum exclusive grid coordinate.
public  int[]getUppers()
     Returns the valid maximum exclusive grid coordinates along all dimensions.
public  inthashCode()
     Returns a hash value for this grid range.
public  RectangletoRectangle()
     Returns a Rectangle with the same bounds as this GeneralGridRange .
public  StringtoString()
     Returns a string représentation of this grid range.


Constructor Detail
GeneralGridRange
public GeneralGridRange(int lower, int upper)(Code)
Constructs one-dimensional grid range.
Parameters:
  lower - The minimal inclusive value.
Parameters:
  upper - The maximal exclusive value.



GeneralGridRange
public GeneralGridRange(int[] lower, int[] upper)(Code)
Constructs a new grid range.
Parameters:
  lower - The valid minimum inclusive grid coordinate.The array contains a minimum value for eachdimension of the grid coverage. The lowestvalid grid coordinate is zero.
Parameters:
  upper - The valid maximum exclusive grid coordinate.The array contains a maximum value for eachdimension of the grid coverage.
See Also:   GeneralGridRange.getLowers
See Also:   GeneralGridRange.getUppers



GeneralGridRange
public GeneralGridRange(Rectangle rect)(Code)
Constructs two-dimensional range defined by a Rectangle .



GeneralGridRange
public GeneralGridRange(Raster raster)(Code)
Constructs two-dimensional range defined by a Raster .



GeneralGridRange
public GeneralGridRange(RenderedImage image)(Code)
Constructs two-dimensional range defined by a RenderedImage .



GeneralGridRange
GeneralGridRange(RenderedImage image, int dimension)(Code)
Constructs multi-dimensional range defined by a RenderedImage .
Parameters:
  image - The image.
Parameters:
  dimension - Number of dimensions for this grid range.Dimensions over 2 will be set to the [0..1] range.



GeneralGridRange
public GeneralGridRange(Envelope envelope)(Code)
Cast the specified envelope into a grid range. This is sometime useful after an envelope has been transformed from "real world" coordinates to grid coordinates using the " " transform. The floating point values are rounded toward the nearest integers.

Note about rounding mode:
It would have been possible to round the toward and the toward in order to make sure that the grid range encompass all the envelope (something similar to what Java2D does when casting Rectangle2D to Rectangle ). But this approach has an undesirable side effect: it may changes the image or . For example the range [-0.25 ... 99.75] would be casted to [-1 ... 100] , which leads to unexpected result when using grid range with image operations like " javax.media.jai.operator.AffineDescriptor Affine ". For avoiding such changes in size, it is necessary to use the same rounding mode for both minimal and maximal values. The selected rounding mode is in this implementation.
since:
   2.2





Method Detail
equals
public boolean equals(Object object)(Code)
Compares the specified object with this grid range for equality.



getDimension
public int getDimension()(Code)
Returns the number of dimensions.



getLength
public int getLength(int dimension)(Code)
Returns the number of integer grid coordinates along the specified dimension. This is equals to getUpper(dimension)-getLower(dimension) .



getLower
public int getLower(int dimension)(Code)
Returns the valid minimum inclusive grid coordinate along the specified dimension.
See Also:   GeneralGridRange.getLowers



getLower
public GridCoordinates getLower()(Code)
Returns the valid minimum inclusive grid coordinate. The sequence contains a minimum value for each dimension of the grid coverage.
since:
   2.4



getLowers
public int[] getLowers()(Code)
Returns the valid minimum inclusive grid coordinates along all dimensions. GeneralGridRange.getLower



getSubGridRange
public GeneralGridRange getSubGridRange(int lower, int upper)(Code)
Returns a new grid range that encompass only some dimensions of this grid range. This method copy this grid range's index into a new grid range, beginning at dimension lower and extending to dimension upper-1 . Thus the dimension of the subgrid range is upper-lower .
Parameters:
  lower - The first dimension to copy, inclusive.
Parameters:
  upper - The last dimension to copy, exclusive. The subgrid range.
throws:
  IndexOutOfBoundsException - if an index is out of bounds.



getUpper
public int getUpper(int dimension)(Code)
Returns the valid maximum exclusive grid coordinate along the specified dimension.
See Also:   GeneralGridRange.getUppers



getUpper
public GridCoordinates getUpper()(Code)
Returns the valid maximum exclusive grid coordinate. The sequence contains a maximum value for each dimension of the grid coverage.
since:
   2.4



getUppers
public int[] getUppers()(Code)
Returns the valid maximum exclusive grid coordinates along all dimensions. GeneralGridRange.getUpper



hashCode
public int hashCode()(Code)
Returns a hash value for this grid range. This value need not remain consistent between different implementations of the same class.



toRectangle
public Rectangle toRectangle() throws IllegalStateException(Code)
Returns a Rectangle with the same bounds as this GeneralGridRange . This is a convenience method for interoperability with Java2D.
throws:
  IllegalStateException - if this grid range is not two-dimensional.



toString
public String toString()(Code)
Returns a string représentation of this grid range. The returned string is implementation dependent. It is usually provided for debugging purposes.



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.