DXRegion Class
A region.
Declaration
public class DXRegion extends JavaObject implements IDisposable
Implements
Inherited Members
Inheritance
Constructors
DXRegion() Constructor
Initializes a new instance of the DXRegion class.
Declaration
public DXRegion()
DXRegion(DXGraphicsPath path) Constructor
Initializes a new instance of the DXRegion class with specified settings.
Declaration
public DXRegion(DXGraphicsPath path)
Parameters
| Name | Type | Description |
|---|---|---|
| path | DXGraphicsPath | The path. |
DXRegion(RectangleF rectangle) Constructor
Initializes a new instance of the DXRegion class with specified settings.
Declaration
public DXRegion(RectangleF rectangle)
Parameters
| Name | Type | Description |
|---|---|---|
| rectangle | RectangleF | The rectangle. |
Methods
clone() Method
Creates a copy of this region.
Declaration
public DXRegion clone()
Returns
| Type | Description |
|---|---|
DXRegion |
The cloned |
close() Method
Closes this region.
Declaration
public void close()
complement(DXGraphicsPath path) Method
Complements this region with the specified path.
Declaration
public void complement(DXGraphicsPath path)
Parameters
| Name | Type | Description |
|---|---|---|
| path | DXGraphicsPath | The path. |
complement(DXRegion right) Method
Complements this region with the specified region.
Declaration
public void complement(DXRegion right)
Parameters
| Name | Type | Description |
|---|---|---|
| right | DXRegion |
The region. |
complement(RectangleF rect) Method
Complements this region with the specified rectangle.
Declaration
public void complement(RectangleF rect)
Parameters
| Name | Type | Description |
|---|---|---|
| rect | RectangleF | The rectangle. |
exclude(DXGraphicsPath path) Method
Excludes the specified path from this region.
Declaration
public void exclude(DXGraphicsPath path)
Parameters
| Name | Type | Description |
|---|---|---|
| path | DXGraphicsPath | The path. |
exclude(DXRegion right) Method
Excludes the specified region from this region.
Declaration
public void exclude(DXRegion right)
Parameters
| Name | Type | Description |
|---|---|---|
| right | DXRegion |
The region. |
exclude(RectangleF rect) Method
Excludes the specified rectangle from this region.
Declaration
public void exclude(RectangleF rect)
Parameters
| Name | Type | Description |
|---|---|---|
| rect | RectangleF | The rectangle. |
getBounds() Method
Returns the bounds.
Declaration
public RectangleF getBounds()
Returns
| Type | Description |
|---|---|
| RectangleF | The region bounds. |
intersect(DXGraphicsPath path) Method
Intersects this region with the specified path.
Declaration
public void intersect(DXGraphicsPath path)
Parameters
| Name | Type | Description |
|---|---|---|
| path | DXGraphicsPath | The path. |
intersect(DXRegion right) Method
Intersects this region with the specified region.
Declaration
public void intersect(DXRegion right)
Parameters
| Name | Type | Description |
|---|---|---|
| right | DXRegion |
The region. |
intersect(RectangleF rect) Method
Intersects this region with the specified rectangle.
Declaration
public void intersect(RectangleF rect)
Parameters
| Name | Type | Description |
|---|---|---|
| rect | RectangleF | The rectangle. |
isVisible(PointF point) Method
Checks whether this region contains the specified point.
Declaration
public boolean isVisible(PointF point)
Parameters
| Name | Type | Description |
|---|---|---|
| point | com.devexpress.system.drawing.PointF | The point. |
Returns
| Type | Description |
|---|---|
| boolean |
|
isVisible(Rectangle rect) Method
Checks whether this region contains the specified rectangle.
Declaration
public boolean isVisible(Rectangle rect)
Parameters
| Name | Type | Description |
|---|---|---|
| rect | Rectangle | The rectangle. |
Returns
| Type | Description |
|---|---|
| boolean |
|
makeEmpty() Method
Makes this region empty.
Declaration
public void makeEmpty()
makeInfinite() Method
Makes this region infinite.
Declaration
public void makeInfinite()
transform(DXMatrix transform) Method
Transforms this region.
Declaration
public void transform(DXMatrix transform)
Parameters
| Name | Type | Description |
|---|---|---|
| transform | DXMatrix | The transformation matrix. |
union(DXGraphicsPath path) Method
Unites this region with the specified path.
Declaration
public void union(DXGraphicsPath path)
Parameters
| Name | Type | Description |
|---|---|---|
| path | DXGraphicsPath | The path. |
union(DXRegion right) Method
Unites this region with the specified region.
Declaration
public void union(DXRegion right)
Parameters
| Name | Type | Description |
|---|---|---|
| right | DXRegion |
The region. |
union(RectangleF rect) Method
Unites this region with the specified rectangle.
Declaration
public void union(RectangleF rect)
Parameters
| Name | Type | Description |
|---|---|---|
| rect | RectangleF | The rectangle. |
xor(DXGraphicsPath path) Method
Applies an exclusive-or operation to this region and the specified path.
Declaration
public void xor(DXGraphicsPath path)
Parameters
| Name | Type | Description |
|---|---|---|
| path | DXGraphicsPath | The path. |
xor(DXRegion right) Method
Applies an exclusive-or operation to this region and the specified region.
Declaration
public void xor(DXRegion right)
Parameters
| Name | Type | Description |
|---|---|---|
| right | DXRegion |
The region. |
xor(RectangleF rect) Method
Applies an exclusive-or operation to this region and the specified rectangle.
Declaration
public void xor(RectangleF rect)
Parameters
| Name | Type | Description |
|---|---|---|
| rect | RectangleF | The rectangle. |