Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
MemStruct
org.gnu.gdk.Region
public class Region
extends MemStruct
Constructor Summary | |
| |
Method Summary | |
boolean |
|
OverlapType |
|
Rectangle |
|
Rectangle[] |
|
void | |
boolean |
|
boolean | |
void |
|
void |
|
void | |
void | |
void |
|
void |
public 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.
public Region(Rectangle 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.
Create a new Region containing the area of the Rectangle.
- Parameters:
rectangle
-
public Region(Region 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 that is a copy of the provided Region
- Parameters:
regionToCopy
-
public Region(points[] , FillRule 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 using the poligon defined by a number of points.
- Parameters:
rule
-
public boolean containsPoint(int x, int 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.
Returns true if the provided point is in the Region.
- Parameters:
x
-y
-
public OverlapType containsRectangle(Rectangle 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.
Tests whether a Rectangle is within the Region.
- Parameters:
rect
-
public Rectangle getClipbox()
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.
public Rectangle[] getRectangles()
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.
public void intersect(Region 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 intersection of areas for this Region and the provided Region.
- Parameters:
region
-
public boolean isEmpty()
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.
public boolean isEqual(Region 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.
Returns true if the provided Region is the same as this one.
- Parameters:
other
-
public void offset(int x, int 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.
Move the specified distance.
- Parameters:
x
-y
-
public void shrink(int x, int 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
-
public void subtract(Region 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.
Subtracts the area of the provided Region from this Region.
- Parameters:
region
-
public void union(Region 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
-
public void unionWithRect(Rectangle 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 to the union of this Region and the provided Rectangle.
- Parameters:
rect
-
public void xor(Region 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 of this Region to the exclusive-OR of the areas of this Region and the provided Region.
- Parameters:
region
-