public class Rectangle extends ValueType
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Drawing.Rectangle
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.Primitives, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Drawing.Primitives
|
static java.lang.String |
className
Qualified class name: System.Drawing.Rectangle
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Rectangle() |
Rectangle(int x,
int y,
int width,
int height)
Initializes a new instance by invoking the .NET constructor.
|
Rectangle(java.lang.Object instance)
Internal constructor.
|
Rectangle(Point location,
Size size)
Initializes a new instance by invoking the .NET constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Rectangle |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Rectangle, a cast assert is made to check if types are compatible. |
static Rectangle |
Ceiling(RectangleF value)
Invokes the .NET member Ceiling.
|
boolean |
Contains(int x,
int y)
Invokes the .NET member Contains.
|
boolean |
Contains(Point pt)
Invokes the .NET member Contains.
|
boolean |
Contains(Rectangle rect)
Invokes the .NET member Contains.
|
boolean |
Equals(Rectangle other)
Invokes the .NET member Equals.
|
static Rectangle |
FromLTRB(int left,
int top,
int right,
int bottom)
Invokes the .NET member FromLTRB.
|
int |
getBottom()
Gets the value of the .NET property Bottom.
|
int |
getHeight()
Gets the value of the .NET property Height.
|
boolean |
getIsEmpty()
Gets the value of the .NET property IsEmpty.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
int |
getLeft()
Gets the value of the .NET property Left.
|
Point |
getLocation()
Gets the value of the .NET property Location.
|
int |
getRight()
Gets the value of the .NET property Right.
|
Size |
getSize()
Gets the value of the .NET property Size.
|
int |
getTop()
Gets the value of the .NET property Top.
|
int |
getWidth()
Gets the value of the .NET property Width.
|
int |
getX()
Gets the value of the .NET property X.
|
int |
getY()
Gets the value of the .NET property Y.
|
void |
Inflate(int width,
int height)
Invokes the .NET member Inflate.
|
static Rectangle |
Inflate(Rectangle rect,
int x,
int y)
Invokes the .NET member Inflate.
|
void |
Inflate(Size size)
Invokes the .NET member Inflate.
|
void |
Intersect(Rectangle rect)
Invokes the .NET member Intersect.
|
static Rectangle |
Intersect(Rectangle a,
Rectangle b)
Invokes the .NET member Intersect.
|
boolean |
IntersectsWith(Rectangle rect)
Invokes the .NET member IntersectsWith.
|
void |
Offset(int x,
int y)
Invokes the .NET member Offset.
|
void |
Offset(Point pos)
Invokes the .NET member Offset.
|
static Rectangle |
Round(RectangleF value)
Invokes the .NET member Round.
|
void |
setHeight(int Height)
Sets the value of the .NET property Height.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setLocation(Point Location)
Sets the value of the .NET property Location.
|
void |
setSize(Size Size)
Sets the value of the .NET property Size.
|
void |
setWidth(int Width)
Sets the value of the .NET property Width.
|
void |
setX(int X)
Sets the value of the .NET property X.
|
void |
setY(int Y)
Sets the value of the .NET property Y.
|
static Rectangle |
Truncate(RectangleF value)
Invokes the .NET member Truncate.
|
static Rectangle |
Union(Rectangle a,
Rectangle b)
Invokes the .NET member Union.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Rectangle()
throws java.lang.Throwable
java.lang.Throwablepublic Rectangle(int x,
int y,
int width,
int height)
throws java.lang.Throwable
x - the argument of type inty - the argument of type intwidth - the argument of type intheight - the argument of type intjava.lang.Throwable - if the .NET constructor failspublic Rectangle(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic Rectangle(Point location, Size size) throws java.lang.Throwable
location - the argument of type Pointsize - the argument of type Sizejava.lang.Throwable - if the .NET constructor failspublic static Rectangle cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Rectangle, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedRectangle instancejava.lang.Throwable - in case of error during cast operationpublic static Rectangle Ceiling(RectangleF value) throws java.lang.Throwable
value - the argument of type RectangleFjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean Contains(int x,
int y)
throws java.lang.Throwable
x - the argument of type inty - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean Contains(Point pt) throws java.lang.Throwable
pt - the argument of type Pointjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean Contains(Rectangle rect) throws java.lang.Throwable
rect - the argument of type Rectanglejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean Equals(Rectangle other) throws java.lang.Throwable
other - the argument of type Rectanglejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static Rectangle FromLTRB(int left, int top, int right, int bottom) throws java.lang.Throwable
left - the argument of type inttop - the argument of type intright - the argument of type intbottom - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getBottom()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getHeight()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsEmpty()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class ValueTypepublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class ValueTypepublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class ValueTypenull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class ValueTypepublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class ValueTypepublic int getLeft()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Point getLocation() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getRight()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Size getSize() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getTop()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getWidth()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getX()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getY()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Inflate(int width,
int height)
throws java.lang.Throwable
width - the argument of type intheight - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static Rectangle Inflate(Rectangle rect, int x, int y) throws java.lang.Throwable
rect - the argument of type Rectanglex - the argument of type inty - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Inflate(Size size) throws java.lang.Throwable
size - the argument of type Sizejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Intersect(Rectangle rect) throws java.lang.Throwable
rect - the argument of type Rectanglejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static Rectangle Intersect(Rectangle a, Rectangle b) throws java.lang.Throwable
a - the argument of type Rectangleb - the argument of type Rectanglejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean IntersectsWith(Rectangle rect) throws java.lang.Throwable
rect - the argument of type Rectanglejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Offset(int x,
int y)
throws java.lang.Throwable
x - the argument of type inty - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Offset(Point pos) throws java.lang.Throwable
pos - the argument of type Pointjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static Rectangle Round(RectangleF value) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException
value - the argument of type RectangleFjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic void setHeight(int Height)
throws java.lang.Throwable
Height - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class ValueTypeinstance - the new underlying objectpublic void setLocation(Point Location) throws java.lang.Throwable
Location - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setSize(Size Size) throws java.lang.Throwable
Size - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setWidth(int Width)
throws java.lang.Throwable
Width - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setX(int X)
throws java.lang.Throwable
X - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setY(int Y)
throws java.lang.Throwable
Y - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static Rectangle Truncate(RectangleF value) throws java.lang.Throwable
value - the argument of type RectangleFjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static Rectangle Union(Rectangle a, Rectangle b) throws java.lang.Throwable
a - the argument of type Rectangleb - the argument of type Rectanglejava.lang.Throwable - if the call fails in the bridge or in the CLR