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


java.awt.geom.Rectangle2D
   org.geotools.geometry.Envelope2D

Envelope2D
public class Envelope2D extends Rectangle2D.Double implements Envelope,Cloneable(Code)
A two-dimensional envelope on top of Rectangle2D . This implementation is provided for interoperability between Java2D and GeoAPI.

Note: This class inherits and fields. But despite their names, they don't need to be oriented toward and respectively. The (x,y) axis can have any orientation and should be understood as "ordinate 0" and "ordinate 1" values instead. This is not specific to this implementation; in Java2D too, the visual axis orientation depend on the .
since:
   2.1
version:
   $Id: Envelope2D.java 26137 2007-07-03 17:59:44Z desruisseaux $
author:
   Martin Desruisseaux
See Also:   GeneralEnvelope
See Also:   org.geotools.geometry.jts.ReferencedEnvelope
See Also:   org.opengis.metadata.extent.GeographicBoundingBox




Constructor Summary
public  Envelope2D(Envelope envelope)
     Constructs two-dimensional envelope defined by an other Envelope .
public  Envelope2D(CoordinateReferenceSystem crs, Rectangle2D rect)
     Constructs two-dimensional envelope defined by an other Rectangle2D .
public  Envelope2D(CoordinateReferenceSystem crs, double x, double y, double width, double height)
     Constructs two-dimensional envelope defined by the specified coordinates.
public  Envelope2D(DirectPosition2D minDP, DirectPosition2D maxDP)
     Constructs two-dimensional envelope defined by the specified coordinates.

Method Summary
public  booleanboundsEquals(Envelope that, int xDim, int yDim, double eps)
     Returns true if this envelope bounds is equals to that envelope bounds in two specified dimensions.
public  booleanequals(Object object)
     Compares the specified object with this envelope for equality.
final public  doublegetCenter(int dimension)
     Returns the center ordinate along the specified dimension.
final public  CoordinateReferenceSystemgetCoordinateReferenceSystem()
     Returns the coordinate reference system in which the coordinates are given.
final public  intgetDimension()
     Returns the number of dimensions.
final public  doublegetLength(int dimension)
     Returns the envelope length along the specified dimension.
public  DirectPositiongetLowerCorner()
     A coordinate position consisting of all the minimal ordinates for each dimension for all points within the Envelope .
final public  doublegetMaximum(int dimension)
     Returns the maximal ordinate along the specified dimension.
final public  doublegetMinimum(int dimension)
     Returns the minimal ordinate along the specified dimension.
public  DirectPositiongetUpperCorner()
     A coordinate position consisting of all the maximal ordinates for each dimension for all points within the Envelope .
public  inthashCode()
     Returns a hash value for this envelope.
public  voidsetCoordinateReferenceSystem(CoordinateReferenceSystem crs)
     Set the coordinate reference system in which the coordinate are given.
public  StringtoString()
     Returns a string representation of this envelope.


Constructor Detail
Envelope2D
public Envelope2D(Envelope envelope)(Code)
Constructs two-dimensional envelope defined by an other Envelope .



Envelope2D
public Envelope2D(CoordinateReferenceSystem crs, Rectangle2D rect)(Code)
Constructs two-dimensional envelope defined by an other Rectangle2D .



Envelope2D
public Envelope2D(CoordinateReferenceSystem crs, double x, double y, double width, double height)(Code)
Constructs two-dimensional envelope defined by the specified coordinates. Despite their name, the (x,y) coordinates don't need to be oriented toward ( , ). Those parameter names simply match the and fields. The actual axis orientations are determined by the specified CRS. See the for details.



Envelope2D
public Envelope2D(DirectPosition2D minDP, DirectPosition2D maxDP) throws MismatchedReferenceSystemException(Code)
Constructs two-dimensional envelope defined by the specified coordinates. Despite their name, the (x,y) coordinates don't need to be oriented toward ( , ). Those parameter names simply match the and fields. The actual axis orientations are determined by the specified CRS. See the for details.

The minDP and maxDP arguments usually contains the minimal and maximal ordinate values respectively, but this is not mandatory. The ordinates will be rearanged as needed.
Parameters:
  minDP - The fist position.
Parameters:
  maxDP - The second position.
throws:
  MismatchedReferenceSystemException - if the two positions don't use the same CRS.
since:
   2.4





Method Detail
boundsEquals
public boolean boundsEquals(Envelope that, int xDim, int yDim, double eps)(Code)
Returns true if this envelope bounds is equals to that envelope bounds in two specified dimensions. The coordinate reference system is not compared, since it doesn't need to have the same number of dimensions.
Parameters:
  that - The envelope to compare to.
Parameters:
  xDim - The dimension of that envelope to compare to the x dimensionof this envelope.
Parameters:
  yDim - The dimension of that envelope to compare to the y dimensionof this envelope.
Parameters:
  eps - A small tolerance number for floating point number comparaisons. This value willbe scaled according this envelope and. true if the envelope bounds are the same (up to the specified tolerancelevel) in the specified dimensions, or false otherwise.



equals
public boolean equals(Object object)(Code)
Compares the specified object with this envelope for equality.



getCenter
final public double getCenter(int dimension)(Code)
Returns the center ordinate along the specified dimension.



getCoordinateReferenceSystem
final public CoordinateReferenceSystem getCoordinateReferenceSystem()(Code)
Returns the coordinate reference system in which the coordinates are given. The coordinate reference system, or null .



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



getLength
final public double getLength(int dimension)(Code)
Returns the envelope length along the specified dimension. This length is equals to the maximum ordinate minus the minimal ordinate.



getLowerCorner
public DirectPosition getLowerCorner()(Code)
A coordinate position consisting of all the minimal ordinates for each dimension for all points within the Envelope . The lower corner.DirectPosition2D



getMaximum
final public double getMaximum(int dimension)(Code)
Returns the maximal ordinate along the specified dimension.



getMinimum
final public double getMinimum(int dimension)(Code)
Returns the minimal ordinate along the specified dimension.



getUpperCorner
public DirectPosition getUpperCorner()(Code)
A coordinate position consisting of all the maximal ordinates for each dimension for all points within the Envelope . The upper corner.DirectPosition2D



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



setCoordinateReferenceSystem
public void setCoordinateReferenceSystem(CoordinateReferenceSystem crs)(Code)
Set the coordinate reference system in which the coordinate are given.
Parameters:
  crs - The new coordinate reference system, or null .



toString
public String toString()(Code)
Returns a string representation of this envelope. The default implementation is okay for occasional formatting (for example for debugging purpose). But if there is a lot of envelopes to format, users will get more control by using their own instance of org.geotools.measure.CoordinateFormat .
since:
   2.4



Fields inherited from java.awt.geom.Rectangle2D
final public static int OUT_BOTTOM(Code)(Java Doc)
final public static int OUT_LEFT(Code)(Java Doc)
final public static int OUT_RIGHT(Code)(Java Doc)
final public static int OUT_TOP(Code)(Java Doc)

Methods inherited from java.awt.geom.Rectangle2D
public void add(double newx, double newy)(Code)(Java Doc)
public void add(Point2D pt)(Code)(Java Doc)
public void add(Rectangle2D r)(Code)(Java Doc)
public boolean contains(double x, double y)(Code)(Java Doc)
public boolean contains(double x, double y, double w, double h)(Code)(Java Doc)
abstract public Rectangle2D createIntersection(Rectangle2D r)(Code)(Java Doc)
abstract public Rectangle2D createUnion(Rectangle2D r)(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public Rectangle2D getBounds2D()(Code)(Java Doc)
public PathIterator getPathIterator(AffineTransform at)(Code)(Java Doc)
public PathIterator getPathIterator(AffineTransform at, double flatness)(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public static void intersect(Rectangle2D src1, Rectangle2D src2, Rectangle2D dest)(Code)(Java Doc)
public boolean intersects(double x, double y, double w, double h)(Code)(Java Doc)
public boolean intersectsLine(double x1, double y1, double x2, double y2)(Code)(Java Doc)
public boolean intersectsLine(Line2D l)(Code)(Java Doc)
abstract public int outcode(double x, double y)(Code)(Java Doc)
public int outcode(Point2D p)(Code)(Java Doc)
public void setFrame(double x, double y, double w, double h)(Code)(Java Doc)
abstract public void setRect(double x, double y, double w, double h)(Code)(Java Doc)
public void setRect(Rectangle2D r)(Code)(Java Doc)
public static void union(Rectangle2D src1, Rectangle2D src2, Rectangle2D dest)(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.