Java Doc for Region.java in  » 6.0-JDK-Modules » j2me » sun » porting » graphicssystem » 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 » 6.0 JDK Modules » j2me » sun.porting.graphicssystem 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


sun.porting.graphicssystem.Region

All known Subclasses:   sun.porting.utils.RegionImpl,
Region
public interface Region extends java.awt.Shape(Code)
This is the interface for an object which represents rectilinear regions (e.g. window visibility and clip regions).
version:
   1.11, 08/19/02




Method Summary
 booleancontains(int x, int y)
    
 booleancontains(int x, int y, int w, int h)
    
 Regioncopy()
     Create an independent copy of the region.
 voiddefragment(boolean isClip)
     Defragment a region.
 booleanequals(Region r)
     Test for equality against the given region.
Parameters:
  r - The region against which to test.
 RectanglegetBounds()
     Get the bounding box of the region, i.e. the smallest rectangle which completely encloses the region's current contents.
 EnumerationgetRectangles()
     Return an Enumeration object which can be used to loop through the elements of this region.
 voidintersect(Region r)
     Do a destructive intersection operation with the given region.
 voidintersect(int x, int y, int w, int h)
     Do a destructive intersection operation with a region described by the rectangle (x,y,w,h).
 voidintersect(Rectangle r)
     Do a destructive intersection operation with a region described by the given Rectangle.
 booleanisEmpty()
    
 booleanisRectangle()
    
 booleanmayIntersect(Region r)
     A quick, bounding box overlap test to see whether this region occupies the same general space as the given region r. An overlap is possible only if the bounding box of this region overlaps the bounding box of r.
 booleanmayIntersect(int x, int y, int w, int h)
     A quick, bounding box overlap test to see whether this region occupies the same general space as a rectangle described by the given (x,y,w,h) tuple. An overlap is possible only if the bounding box of this region overlaps the area of the rectangle.
 booleanmayIntersect(Rectangle r)
     A quick, bounding box overlap test to see whether this region occupies the same general space as the given rectangle r. An overlap is possible only if the bounding box of this region overlaps the area of the rectangle.
 voidsetEmpty()
     Set the region to an empty region.
 voidsubtract(Region r)
     Do a destructive subtract operation with the given region.
 voidsubtract(int x, int y, int w, int h)
     Do a destructive subtraction, removing the rectangle (x,y,w,h) from the current region.
 voidsubtract(Rectangle r)
     Do a destructive subtraction, removing the given Rectangle.
 voidtranslate(int dx, int dy)
     Translate the entire region by the vector (dx, dy).
 voidunion(Region r)
     Do a destructive union operation with the given region.
 voidunion(int x, int y, int w, int h)
     Do a destructive union operation with the rectangle (x,y,w,h).
 voidunion(Rectangle r)
     Do a destructive union operation with the given Rectangle.



Method Detail
contains
boolean contains(int x, int y)(Code)
Does the region contain the given point?
Parameters:
  x - The x coordinate of the test point
Parameters:
  y - The y coordinate of the test point true if (x,y) is in the region, false otherwise.



contains
boolean contains(int x, int y, int w, int h)(Code)
Does the region contain the given rectangle (in its entirety)?
Parameters:
  x - The x coordinate of the test rectangle
Parameters:
  y - The y coordinate of the test rectangle
Parameters:
  w - The width of the test rectangle
Parameters:
  h - The height of the test rectangle true if (x,y,w,h) is entirely in the region, false otherwise.



copy
Region copy()(Code)
Create an independent copy of the region.



defragment
void defragment(boolean isClip)(Code)
Defragment a region. This call is a convenience for the Region implementation; it indicates that a number of successive operations have been done and now the region can be expected to stay static for a period of time.
Parameters:
  isClip - Indicates that the region is going to be used directlyas a clip region.



equals
boolean equals(Region r)(Code)
Test for equality against the given region.
Parameters:
  r - The region against which to test. true if this region is equal to r, false otherwise.



getBounds
Rectangle getBounds()(Code)
Get the bounding box of the region, i.e. the smallest rectangle which completely encloses the region's current contents. If the region is empty, returns the rectangle (0,0,0,0). A Rectangle describing the bounding box.



getRectangles
Enumeration getRectangles()(Code)
Return an Enumeration object which can be used to loop through the elements of this region. WARNING: the enumeration is not responsible for making sure that the region is not changed in the meantime. If there is any risk of this, you should do region.copy().getRectangles() An Enumeration object associated with this region.



intersect
void intersect(Region r)(Code)
Do a destructive intersection operation with the given region.
Parameters:
  r - The region with which this region should be intersected.



intersect
void intersect(int x, int y, int w, int h)(Code)
Do a destructive intersection operation with a region described by the rectangle (x,y,w,h).
Parameters:
  x - The x coordinate of the rectangle used for the intersection.
Parameters:
  y - The y coordinate of the rectangle used for the intersection.
Parameters:
  w - The width of the rectangle used for the intersection.
Parameters:
  h - The height of the rectangle used for the intersection.



intersect
void intersect(Rectangle r)(Code)
Do a destructive intersection operation with a region described by the given Rectangle.
Parameters:
  r - The rectangle with which this region should be intersected.



isEmpty
boolean isEmpty()(Code)
Is the region empty? true if this region contains no area, false otherwise.



isRectangle
boolean isRectangle()(Code)
Does the region represent a simple rectangle? true if this region contains only one rectangle, false otherwise.



mayIntersect
boolean mayIntersect(Region r)(Code)
A quick, bounding box overlap test to see whether this region occupies the same general space as the given region r. An overlap is possible only if the bounding box of this region overlaps the bounding box of r. The bounding box test quickly eliminates regions from consideration if they can't possibly intersect.
Parameters:
  r - The region which is to be tested for overlap. true if an overlap is possible, false otherwise.



mayIntersect
boolean mayIntersect(int x, int y, int w, int h)(Code)
A quick, bounding box overlap test to see whether this region occupies the same general space as a rectangle described by the given (x,y,w,h) tuple. An overlap is possible only if the bounding box of this region overlaps the area of the rectangle. The bounding box test quickly eliminates regions from consideration if they can't possibly intersect.
Parameters:
  x - The x coordinate of the test rectangle
Parameters:
  y - The y coordinate of the test rectangle
Parameters:
  w - The width of the test rectangle
Parameters:
  h - The height of the test rectangle true if an overlap is possible, false otherwise.



mayIntersect
boolean mayIntersect(Rectangle r)(Code)
A quick, bounding box overlap test to see whether this region occupies the same general space as the given rectangle r. An overlap is possible only if the bounding box of this region overlaps the area of the rectangle. The bounding box test quickly eliminates regions from consideration if they can't possibly intersect.
Parameters:
  r - The rectangle which is to be tested for overlap. true If an overlap is possible, false otherwise.



setEmpty
void setEmpty()(Code)
Set the region to an empty region.



subtract
void subtract(Region r)(Code)
Do a destructive subtract operation with the given region.
Parameters:
  r - The region which should be subtracted out.



subtract
void subtract(int x, int y, int w, int h)(Code)
Do a destructive subtraction, removing the rectangle (x,y,w,h) from the current region.
Parameters:
  x - The x coordinate of the rectangle to be subtracted.
Parameters:
  y - The y coordinate of the rectangle to be subtracted.
Parameters:
  w - The width of the rectangle to be subtracted.
Parameters:
  h - The height of the rectangle to be subtracted.



subtract
void subtract(Rectangle r)(Code)
Do a destructive subtraction, removing the given Rectangle.
Parameters:
  r - The rectangle to be subtracted out.



translate
void translate(int dx, int dy)(Code)
Translate the entire region by the vector (dx, dy).
Parameters:
  dx - The x component of the translation.
Parameters:
  dy - The y component of the translation.



union
void union(Region r)(Code)
Do a destructive union operation with the given region.
Parameters:
  r - The other Region with which this Region should be combined.



union
void union(int x, int y, int w, int h)(Code)
Do a destructive union operation with the rectangle (x,y,w,h).
Parameters:
  x - The x coordinate of the rectangle used for the union.
Parameters:
  y - The y coordinate of the rectangle used for the union.
Parameters:
  w - The width of the rectangle used for the union.
Parameters:
  h - The height of the rectangle used for the union.



union
void union(Rectangle r)(Code)
Do a destructive union operation with the given Rectangle.
Parameters:
  r - The rectangle which should be added to this region.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.