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


java.awt.geom.Rectangle2D
   org.geotools.resources.geometry.InfiniteRectangle2D

InfiniteRectangle2D
final class InfiniteRectangle2D extends Rectangle2D implements Serializable(Code)
An immutable subclass of a Rectangle2D with bounds extending toward infinities. The InfiniteRectangle2D.getMinX and InfiniteRectangle2D.getMinY methods return always java.lang.Double.NEGATIVE_INFINITY , while the InfiniteRectangle2D.getMaxX and InfiniteRectangle2D.getMaxY methods return always java.lang.Double.POSITIVE_INFINITY . This rectangle can be used as argument in the XRectangle2D constructor for initializing a new XRectangle2D to infinite bounds.
version:
   $Id: InfiniteRectangle2D.java 22482 2006-10-31 02:58:00Z desruisseaux $
author:
   Martin Desruisseaux


Field Summary
final public static  Rectangle2DINFINITY
     A singleton instance of InfiniteRectangle2D .


Method Summary
public  voidadd(Rectangle2D rect)
     Do nothing, since we can't extends an infinite rectangle.
public  voidadd(Point2D point)
     Do nothing, since we can't extends an infinite rectangle.
public  voidadd(double x, double y)
     Do nothing, since we can't extends an infinite rectangle.
public  booleancontains(Point2D point)
     Returns true since this rectangle contains all points.
public  booleancontains(Rectangle2D rect)
     Returns true since this rectangle contains all points.
public  booleancontains(double x, double y)
     Returns true since this rectangle contains all points.
public  booleancontains(double x, double y, double w, double h)
     Returns true since this rectangle contains all points.
public  Rectangle2DcreateIntersection(Rectangle2D rect)
     Returns a clone of the specified rectangle.
public  Rectangle2DcreateUnion(Rectangle2D rect)
     Returns this , since this rectangle can't be extended.
public  Rectangle2DgetBounds2D()
     Returns this .
public  doublegetCenterX()
     Returns the center, which is NaN since we can't compute a center from infinite bounds.
public  doublegetCenterY()
     Returns the center, which is NaN since we can't compute a center from infinite bounds.
public  Rectangle2DgetFrame()
     Returns this .
public  doublegetHeight()
     Returns the height, which is positive infinity.
public  doublegetMaxX()
     Returns the maximum value, which is positive infinity.
public  doublegetMaxY()
     Returns the maximum value, which is positive infinity.
public  doublegetMinX()
     Returns the minimum value, which is negative infinity.
public  doublegetMinY()
     Returns the minimum value, which is negative infinity.
public  doublegetWidth()
     Returns the width, which is positive infinity.
public  doublegetX()
     Returns the minimum value, which is negative infinity.
public  doublegetY()
     Returns the minimum value, which is negative infinity.
public  booleanintersects(Rectangle2D rect)
     Returns true since this rectangle contains all points.
public  booleanintersects(double x, double y, double w, double h)
     Returns true since this rectangle contains all points.
public  booleanintersectsLine(double x, double y, double u, double v)
     Returns true since this rectangle contains all points.
public  booleanintersectsLine(Line2D line)
     Returns true since this rectangle contains all points.
public  booleanisEmpty()
     Returns false since an infinite rectangle is far from empty.
public  intoutcode(double x, double y)
     Returns 0, since the specified point can't be outside this rectangle.
public  intoutcode(Point2D point)
     Returns 0, since the specified point can't be outside this rectangle.
public  voidsetRect(double x, double y, double w, double h)
     Always throws an exception, since this rectangle is immutable.

Field Detail
INFINITY
final public static Rectangle2D INFINITY(Code)
A singleton instance of InfiniteRectangle2D .





Method Detail
add
public void add(Rectangle2D rect)(Code)
Do nothing, since we can't extends an infinite rectangle.



add
public void add(Point2D point)(Code)
Do nothing, since we can't extends an infinite rectangle.



add
public void add(double x, double y)(Code)
Do nothing, since we can't extends an infinite rectangle.



contains
public boolean contains(Point2D point)(Code)
Returns true since this rectangle contains all points.



contains
public boolean contains(Rectangle2D rect)(Code)
Returns true since this rectangle contains all points.



contains
public boolean contains(double x, double y)(Code)
Returns true since this rectangle contains all points.



contains
public boolean contains(double x, double y, double w, double h)(Code)
Returns true since this rectangle contains all points.



createIntersection
public Rectangle2D createIntersection(Rectangle2D rect)(Code)
Returns a clone of the specified rectangle.



createUnion
public Rectangle2D createUnion(Rectangle2D rect)(Code)
Returns this , since this rectangle can't be extended. No need to returns a clone, since this rectangle is immutable.



getBounds2D
public Rectangle2D getBounds2D()(Code)
Returns this . No need to returns a clone, since this rectangle is immutable.



getCenterX
public double getCenterX()(Code)
Returns the center, which is NaN since we can't compute a center from infinite bounds.



getCenterY
public double getCenterY()(Code)
Returns the center, which is NaN since we can't compute a center from infinite bounds.



getFrame
public Rectangle2D getFrame()(Code)
Returns this . No need to returns a clone, since this rectangle is immutable.



getHeight
public double getHeight()(Code)
Returns the height, which is positive infinity.



getMaxX
public double getMaxX()(Code)
Returns the maximum value, which is positive infinity.



getMaxY
public double getMaxY()(Code)
Returns the maximum value, which is positive infinity.



getMinX
public double getMinX()(Code)
Returns the minimum value, which is negative infinity.



getMinY
public double getMinY()(Code)
Returns the minimum value, which is negative infinity.



getWidth
public double getWidth()(Code)
Returns the width, which is positive infinity.



getX
public double getX()(Code)
Returns the minimum value, which is negative infinity.



getY
public double getY()(Code)
Returns the minimum value, which is negative infinity.



intersects
public boolean intersects(Rectangle2D rect)(Code)
Returns true since this rectangle contains all points.



intersects
public boolean intersects(double x, double y, double w, double h)(Code)
Returns true since this rectangle contains all points.



intersectsLine
public boolean intersectsLine(double x, double y, double u, double v)(Code)
Returns true since this rectangle contains all points.



intersectsLine
public boolean intersectsLine(Line2D line)(Code)
Returns true since this rectangle contains all points.



isEmpty
public boolean isEmpty()(Code)
Returns false since an infinite rectangle is far from empty.



outcode
public int outcode(double x, double y)(Code)
Returns 0, since the specified point can't be outside this rectangle.



outcode
public int outcode(Point2D point)(Code)
Returns 0, since the specified point can't be outside this rectangle.



setRect
public void setRect(double x, double y, double w, double h)(Code)
Always throws an exception, since this rectangle is immutable.



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.