public class Region extends MarshalByRefObject implements java.lang.AutoCloseable
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Drawing.Region
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Drawing.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
|
static java.lang.String |
assemblyShortName
Assembly name: System.Drawing.Common
|
static java.lang.String |
className
Qualified class name: System.Drawing.Region
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Region() |
Region(GraphicsPath path) |
Region(java.lang.Object instance)
Internal constructor.
|
Region(Rectangle rect) |
Region(RectangleF rect) |
Region(RegionData rgnData) |
| Modifier and Type | Method and Description |
|---|---|
static Region |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Region, a cast assert is made to check if types are compatible. |
Region |
Clone() |
void |
close() |
void |
Complement(GraphicsPath path) |
void |
Complement(Rectangle rect) |
void |
Complement(RectangleF rect) |
void |
Complement(Region region) |
void |
Dispose() |
boolean |
Equals(Region region,
Graphics g) |
void |
Exclude(GraphicsPath path) |
void |
Exclude(Rectangle rect) |
void |
Exclude(RectangleF rect) |
void |
Exclude(Region region) |
RectangleF |
GetBounds(Graphics g) |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
RegionData |
GetRegionData() |
RectangleF[] |
GetRegionScans(Matrix matrix) |
void |
Intersect(GraphicsPath path) |
void |
Intersect(Rectangle rect) |
void |
Intersect(RectangleF rect) |
void |
Intersect(Region region) |
boolean |
IsEmpty(Graphics g) |
boolean |
IsInfinite(Graphics g) |
boolean |
IsVisible(int x,
int y,
Graphics g) |
boolean |
IsVisible(int x,
int y,
int width,
int height) |
boolean |
IsVisible(int x,
int y,
int width,
int height,
Graphics g) |
boolean |
IsVisible(Point point) |
boolean |
IsVisible(PointF point) |
boolean |
IsVisible(PointF point,
Graphics g) |
boolean |
IsVisible(Point point,
Graphics g) |
boolean |
IsVisible(Rectangle rect) |
boolean |
IsVisible(RectangleF rect) |
boolean |
IsVisible(RectangleF rect,
Graphics g) |
boolean |
IsVisible(Rectangle rect,
Graphics g) |
boolean |
IsVisible(Single x,
Single y) |
boolean |
IsVisible(Single x,
Single y,
Graphics g) |
boolean |
IsVisible(Single x,
Single y,
Single width,
Single height) |
boolean |
IsVisible(Single x,
Single y,
Single width,
Single height,
Graphics g) |
void |
MakeEmpty() |
void |
MakeInfinite() |
void |
setJCOInstance(JCObject instance) |
void |
Transform(Matrix matrix) |
void |
Translate(int dx,
int dy) |
void |
Translate(Single dx,
Single dy) |
void |
Union(GraphicsPath path) |
void |
Union(Rectangle rect) |
void |
Union(RectangleF rect) |
void |
Union(Region region) |
void |
Xor(GraphicsPath path) |
void |
Xor(Rectangle rect) |
void |
Xor(RectangleF rect) |
void |
Xor(Region region) |
GetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Region()
throws java.lang.Throwable,
ArgumentException,
ObjectDisposedException,
InvalidOperationException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
FormatException,
ArgumentNullException
public Region(GraphicsPath path) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
public Region(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic Region(Rectangle rect) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException, ArgumentNullException
public Region(RectangleF rect) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
public Region(RegionData rgnData) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
public static Region cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Region, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedRegion instancejava.lang.Throwable - in case of error during cast operationpublic Region Clone() throws java.lang.Throwable, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, ArgumentNullException
public void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void Complement(GraphicsPath path) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
public void Complement(Rectangle rect) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, FormatException
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionFormatExceptionpublic void Complement(RectangleF rect) throws java.lang.Throwable, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException
public void Complement(Region region) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
public void Dispose()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionpublic boolean Equals(Region region, Graphics g) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
public void Exclude(GraphicsPath path) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
public void Exclude(Rectangle rect) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, FormatException
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionFormatExceptionpublic void Exclude(RectangleF rect) throws java.lang.Throwable, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException
public void Exclude(Region region) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
public RectangleF GetBounds(Graphics g) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
public java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class MarshalByRefObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class MarshalByRefObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class MarshalByRefObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class MarshalByRefObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class MarshalByRefObjectJCType representing the CLR Type of the instantiated Classpublic RegionData GetRegionData() throws java.lang.Throwable, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException
public RectangleF[] GetRegionScans(Matrix matrix) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
public void Intersect(GraphicsPath path) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
public void Intersect(Rectangle rect) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, FormatException
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionFormatExceptionpublic void Intersect(RectangleF rect) throws java.lang.Throwable, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException
public void Intersect(Region region) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
public boolean IsEmpty(Graphics g) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
public boolean IsInfinite(Graphics g) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
public boolean IsVisible(int x,
int y,
Graphics g)
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentException,
FormatException,
InvalidOperationException
java.lang.ThrowablePlatformNotSupportedExceptionArgumentExceptionFormatExceptionInvalidOperationExceptionpublic boolean IsVisible(int x,
int y,
int width,
int height)
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentException,
FormatException,
InvalidOperationException
java.lang.ThrowablePlatformNotSupportedExceptionArgumentExceptionFormatExceptionInvalidOperationExceptionpublic boolean IsVisible(int x,
int y,
int width,
int height,
Graphics g)
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentException,
FormatException,
InvalidOperationException
java.lang.ThrowablePlatformNotSupportedExceptionArgumentExceptionFormatExceptionInvalidOperationExceptionpublic boolean IsVisible(Point point) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentException, FormatException, InvalidOperationException
java.lang.ThrowablePlatformNotSupportedExceptionArgumentExceptionFormatExceptionInvalidOperationExceptionpublic boolean IsVisible(PointF point) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, FormatException
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionFormatExceptionpublic boolean IsVisible(PointF point, Graphics g) throws java.lang.Throwable, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException
public boolean IsVisible(Point point, Graphics g) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, FormatException
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionFormatExceptionpublic boolean IsVisible(Rectangle rect) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentException, FormatException, InvalidOperationException
java.lang.ThrowablePlatformNotSupportedExceptionArgumentExceptionFormatExceptionInvalidOperationExceptionpublic boolean IsVisible(RectangleF rect) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, FormatException
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionFormatExceptionpublic boolean IsVisible(RectangleF rect, Graphics g) throws java.lang.Throwable, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException
public boolean IsVisible(Rectangle rect, Graphics g) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, FormatException
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionFormatExceptionpublic boolean IsVisible(Single x, Single y) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, FormatException
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionFormatExceptionpublic boolean IsVisible(Single x, Single y, Graphics g) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, FormatException
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionFormatExceptionpublic boolean IsVisible(Single x, Single y, Single width, Single height) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, FormatException
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionFormatExceptionpublic boolean IsVisible(Single x, Single y, Single width, Single height, Graphics g) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, FormatException
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionFormatExceptionpublic void MakeEmpty()
throws java.lang.Throwable,
ArgumentException,
ObjectDisposedException,
InvalidOperationException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
FormatException
public void MakeInfinite()
throws java.lang.Throwable,
ArgumentException,
ObjectDisposedException,
InvalidOperationException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
FormatException
public void setJCOInstance(JCObject instance)
setJCOInstance in class MarshalByRefObjectpublic void Transform(Matrix matrix) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
public void Translate(int dx,
int dy)
throws java.lang.Throwable,
ArgumentException,
InvalidOperationException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
FormatException
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionFormatExceptionpublic void Translate(Single dx, Single dy) throws java.lang.Throwable, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException
public void Union(GraphicsPath path) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
public void Union(Rectangle rect) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, FormatException
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionFormatExceptionpublic void Union(RectangleF rect) throws java.lang.Throwable, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException
public void Union(Region region) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
public void Xor(GraphicsPath path) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
public void Xor(Rectangle rect) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, FormatException
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionFormatExceptionpublic void Xor(RectangleF rect) throws java.lang.Throwable, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException
public void Xor(Region region) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException