public class Rect extends ValueType implements IFormattable
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Rect
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: WindowsBase, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
|
static java.lang.String |
assemblyShortName
Assembly name: WindowsBase
|
static java.lang.String |
className
Qualified class name: System.Windows.Rect
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Rect() |
Rect(double x,
double y,
double width,
double height) |
Rect(java.lang.Object instance)
Internal constructor.
|
Rect(Point point1,
Point point2) |
Rect(Point location,
Size size) |
Rect(Point point,
Vector vector) |
Rect(Size size) |
| Modifier and Type | Method and Description |
|---|---|
static Rect |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Rect, a cast assert is made to check if types are compatible. |
boolean |
Contains(double x,
double y) |
boolean |
Contains(Point point) |
boolean |
Contains(Rect rect) |
boolean |
Equals(Rect value) |
static boolean |
Equals(Rect rect1,
Rect rect2) |
double |
getBottom() |
Point |
getBottomLeft() |
Point |
getBottomRight() |
static Rect |
getEmpty() |
double |
getHeight() |
boolean |
getIsEmpty() |
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
|
double |
getLeft() |
Point |
getLocation() |
double |
getRight() |
Size |
getSize() |
double |
getTop() |
Point |
getTopLeft() |
Point |
getTopRight() |
double |
getWidth() |
double |
getX() |
double |
getY() |
void |
Inflate(double width,
double height) |
static Rect |
Inflate(Rect rect,
double width,
double height) |
static Rect |
Inflate(Rect rect,
Size size) |
void |
Inflate(Size size) |
void |
Intersect(Rect rect) |
static Rect |
Intersect(Rect rect1,
Rect rect2) |
boolean |
IntersectsWith(Rect rect) |
void |
Offset(double offsetX,
double offsetY) |
static Rect |
Offset(Rect rect,
double offsetX,
double offsetY) |
static Rect |
Offset(Rect rect,
Vector offsetVector) |
void |
Offset(Vector offsetVector) |
static Rect |
Parse(java.lang.String source) |
void |
Scale(double scaleX,
double scaleY) |
void |
setHeight(double Height) |
void |
setJCOInstance(JCObject instance) |
void |
setLocation(Point Location) |
void |
setSize(Size Size) |
void |
setWidth(double Width) |
void |
setX(double X) |
void |
setY(double Y) |
java.lang.String |
ToString(IFormatProvider provider) |
void |
Transform(Matrix matrix) |
static Rect |
Transform(Rect rect,
Matrix matrix) |
void |
Union(Point point) |
void |
Union(Rect rect) |
static Rect |
Union(Rect rect,
Point point) |
static Rect |
Union(Rect rect1,
Rect rect2) |
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToStringToIFormattable, ToStringpublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Rect()
throws java.lang.Throwable
java.lang.Throwablepublic Rect(double x,
double y,
double width,
double height)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public Rect(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic Rect(Point point1, Point point2) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionpublic Rect(Point point, Vector vector) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionpublic Rect(Size size) throws java.lang.Throwable
java.lang.Throwablepublic static Rect cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Rect, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedRect instancejava.lang.Throwable - in case of error during cast operationpublic boolean Contains(double x,
double y)
throws java.lang.Throwable
java.lang.Throwablepublic boolean Contains(Point point) throws java.lang.Throwable
java.lang.Throwablepublic boolean Contains(Rect rect) throws java.lang.Throwable
java.lang.Throwablepublic boolean Equals(Rect value) throws java.lang.Throwable
java.lang.Throwablepublic static boolean Equals(Rect rect1, Rect rect2) throws java.lang.Throwable
java.lang.Throwablepublic double getBottom()
throws java.lang.Throwable
java.lang.Throwablepublic Point getBottomLeft() throws java.lang.Throwable
java.lang.Throwablepublic Point getBottomRight() throws java.lang.Throwable
java.lang.Throwablepublic static Rect getEmpty() throws java.lang.Throwable
java.lang.Throwablepublic double getHeight()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getIsEmpty()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in interface IFormattablegetJCOAssemblyName in class ValueTypeString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in interface IFormattablegetJCOClassName in class ValueTypeString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in interface IFormattablegetJCOInstance in class ValueTypeObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in interface IFormattablegetJCOObjectName in class ValueTypeString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in interface IFormattablegetJCOType in class ValueTypeJCType representing the CLR Type of the instantiated Classpublic double getLeft()
throws java.lang.Throwable
java.lang.Throwablepublic Point getLocation() throws java.lang.Throwable
java.lang.Throwablepublic double getRight()
throws java.lang.Throwable
java.lang.Throwablepublic Size getSize() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException
public double getTop()
throws java.lang.Throwable
java.lang.Throwablepublic Point getTopLeft() throws java.lang.Throwable
java.lang.Throwablepublic Point getTopRight() throws java.lang.Throwable
java.lang.Throwablepublic double getWidth()
throws java.lang.Throwable
java.lang.Throwablepublic double getX()
throws java.lang.Throwable
java.lang.Throwablepublic double getY()
throws java.lang.Throwable
java.lang.Throwablepublic void Inflate(double width,
double height)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public static Rect Inflate(Rect rect, double width, double height) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException
public static Rect Inflate(Rect rect, Size size) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException
public void Inflate(Size size) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException
public void Intersect(Rect rect) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionpublic static Rect Intersect(Rect rect1, Rect rect2) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionpublic boolean IntersectsWith(Rect rect) throws java.lang.Throwable
java.lang.Throwablepublic void Offset(double offsetX,
double offsetY)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public static Rect Offset(Rect rect, double offsetX, double offsetY) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException
public static Rect Offset(Rect rect, Vector offsetVector) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException
public void Offset(Vector offsetVector) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
public static Rect Parse(java.lang.String source) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, ObjectDisposedException, InvalidOperationException, FormatException
public void Scale(double scaleX,
double scaleY)
throws java.lang.Throwable
java.lang.Throwablepublic void setHeight(double Height)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public void setJCOInstance(JCObject instance)
setJCOInstance in class ValueTypepublic void setLocation(Point Location) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
public void setSize(Size Size) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
public void setWidth(double Width)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public void setX(double X)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public void setY(double Y)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public java.lang.String ToString(IFormatProvider provider) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, OutOfMemoryException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, FormatException
public void Transform(Matrix matrix) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionpublic static Rect Transform(Rect rect, Matrix matrix) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionpublic void Union(Point point) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionpublic void Union(Rect rect) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionpublic static Rect Union(Rect rect, Point point) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionpublic static Rect Union(Rect rect1, Rect rect2) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedException