Package system.windows
Class Rect
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.ValueType
-
- system.windows.Rect
-
- All Implemented Interfaces:
IJCOBridgeReflected
,IFormattable
public class Rect extends ValueType implements IFormattable
The base .NET class managing System.Windows.Rect, WindowsBase, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Rect
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: WindowsBase, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.String
assemblyShortName
Assembly name: WindowsBasestatic java.lang.String
className
Qualified class name: System.Windows.Rectstatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Rect
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoRect
, 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 namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typedouble
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)
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.IFormattable
ToString
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: WindowsBase, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: WindowsBase- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Windows.Rect- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Rect
public Rect(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
Rect
public Rect() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Rect
public Rect(double x, double y, double width, double height) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
Rect
public Rect(Point point1, Point point2) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
NotSupportedException
PlatformNotSupportedException
-
Rect
public Rect(Point point, Vector vector) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
NotSupportedException
PlatformNotSupportedException
-
Rect
public Rect(Size size) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIFormattable
- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classValueType
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIFormattable
- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classValueType
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIFormattable
- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classValueType
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIFormattable
- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classValueType
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classValueType
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIFormattable
- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classValueType
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static Rect cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoRect
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Rect
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Contains
public boolean Contains(double x, double y) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Contains
public boolean Contains(Point point) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Contains
public boolean Contains(Rect rect) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Equals
public static boolean Equals(Rect rect1, Rect rect2) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Equals
public boolean Equals(Rect value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
IntersectsWith
public boolean IntersectsWith(Rect rect) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ToString
public java.lang.String ToString(IFormatProvider provider) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, OutOfMemoryException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, FormatException
-
Inflate
public static Rect Inflate(Rect rect, double width, double height) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException
-
Inflate
public static Rect Inflate(Rect rect, Size size) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException
-
Intersect
public static Rect Intersect(Rect rect1, Rect rect2) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
NotSupportedException
PlatformNotSupportedException
-
Offset
public static Rect Offset(Rect rect, double offsetX, double offsetY) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException
-
Offset
public static Rect Offset(Rect rect, Vector offsetVector) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException
-
Parse
public static Rect Parse(java.lang.String source) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, ObjectDisposedException, InvalidOperationException, FormatException
-
Transform
public static Rect Transform(Rect rect, Matrix matrix) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
NotSupportedException
PlatformNotSupportedException
-
Union
public static Rect Union(Rect rect, Point point) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
NotSupportedException
PlatformNotSupportedException
-
Union
public static Rect Union(Rect rect1, Rect rect2) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
NotSupportedException
PlatformNotSupportedException
-
Inflate
public void Inflate(double width, double height) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
Inflate
public void Inflate(Size size) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException
-
Intersect
public void Intersect(Rect rect) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
NotSupportedException
PlatformNotSupportedException
-
Offset
public void Offset(double offsetX, double offsetY) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
Offset
public void Offset(Vector offsetVector) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
Scale
public void Scale(double scaleX, double scaleY) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Transform
public void Transform(Matrix matrix) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
NotSupportedException
PlatformNotSupportedException
-
Union
public void Union(Point point) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
NotSupportedException
PlatformNotSupportedException
-
Union
public void Union(Rect rect) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
NotSupportedException
PlatformNotSupportedException
-
getIsEmpty
public boolean getIsEmpty() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getBottom
public double getBottom() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getHeight
public double getHeight() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setHeight
public void setHeight(double Height) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getLeft
public double getLeft() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getRight
public double getRight() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getTop
public double getTop() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getWidth
public double getWidth() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setWidth
public void setWidth(double Width) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getX
public double getX() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setX
public void setX(double X) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getY
public double getY() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setY
public void setY(double Y) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getBottomLeft
public Point getBottomLeft() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getBottomRight
public Point getBottomRight() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getLocation
public Point getLocation() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setLocation
public void setLocation(Point Location) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getTopLeft
public Point getTopLeft() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getTopRight
public Point getTopRight() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getEmpty
public static Rect getEmpty() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSize
public Size getSize() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException
-
setSize
public void setSize(Size Size) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
-