org.gnu.gdk
public class Region extends MemStruct
Deprecated: This class is part of the java-gnome 2.x family of libraries,
which, due to their inefficiency and complexity, are no longer
being maintained and have been abandoned by the java-gnome
project. This class may exist in java-gnome 4.0; look out for
org.gnome.gdk.Region
.
Constructor Summary | |
---|---|
Region()
Create a new empty Region. | |
Region(Point[] points, FillRule rule)
Create a new Region using the poligon defined by a number of points.
| |
Region(Region regionToCopy)
Create a new Region that is a copy of the provided Region
| |
Region(Rectangle rectangle)
Create a new Region containing the area of the Rectangle.
|
Method Summary | |
---|---|
boolean | containsPoint(int x, int y)
Returns true if the provided point is in the Region.
|
OverlapType | containsRectangle(Rectangle rect)
Tests whether a Rectangle is within the Region.
|
Rectangle | getClipbox()
Return the smallest rectangle which includes the entire Region. |
Rectangle[] | getRectangles()
Obtain the area covered by this Region as a list of Rectangles. |
void | intersect(Region region)
Sets the area to the intersection of areas for this Region and the
provided Region.
|
boolean | isEmpty()
Returns true if the Region is empty. |
boolean | isEqual(Region other)
Returns true if the provided Region is the same as this one.
|
void | offset(int x, int y)
Move the specified distance.
|
void | shrink(int x, int y)
Resizes this Regions by the specified amount. |
void | subtract(Region region)
Subtracts the area of the provided Region from this Region.
|
void | union(Region region)
Sets the area to the union of areas for this Region and the provided
Region.
|
void | unionWithRect(Rectangle rect)
Sets the area to the union of this Region and the provided Rectangle.
|
void | xor(Region region)
Sets the area of this Region to the exclusive-OR of the areas of this
Region and the provided Region.
|
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Create a new empty Region.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Create a new Region using the poligon defined by a number of points.Parameters: points rule
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Create a new Region that is a copy of the provided RegionParameters: regionToCopy
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Create a new Region containing the area of the Rectangle.Parameters: rectangle
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Returns true if the provided point is in the Region.Parameters: x y
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Tests whether a Rectangle is within the Region.Parameters: rect
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Return the smallest rectangle which includes the entire Region.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Obtain the area covered by this Region as a list of Rectangles.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Sets the area to the intersection of areas for this Region and the provided Region.Parameters: region
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Returns true if the Region is empty.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Returns true if the provided Region is the same as this one.Parameters: other
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Move the specified distance.Parameters: x y
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Resizes this Regions by the specified amount. Positive values shrink the Region. Negative numbers expand it.Parameters: x y
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Subtracts the area of the provided Region from this Region.Parameters: region
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Sets the area to the union of areas for this Region and the provided Region.Parameters: region
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Sets the area to the union of this Region and the provided Rectangle.Parameters: rect
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Sets the area of this Region to the exclusive-OR of the areas of this Region and the provided Region.Parameters: region