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=4.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.StringassemblyFullNameFully assembly qualified name: WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.StringassemblyShortNameAssembly name: WindowsBasestatic java.lang.StringclassNameQualified class name: System.Windows.Rectstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Rectcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoRect, a cast assert is made to check if types are compatible.booleanContains(double x, double y)booleanContains(Point point)booleanContains(Rect rect)booleanEquals(Rect value)static booleanEquals(Rect rect1, Rect rect2)doublegetBottom()PointgetBottomLeft()PointgetBottomRight()static RectgetEmpty()doublegetHeight()booleangetIsEmpty()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypedoublegetLeft()PointgetLocation()doublegetRight()SizegetSize()doublegetTop()PointgetTopLeft()PointgetTopRight()doublegetWidth()doublegetX()doublegetY()voidInflate(double width, double height)static RectInflate(Rect rect, double width, double height)static RectInflate(Rect rect, Size size)voidInflate(Size size)voidIntersect(Rect rect)static RectIntersect(Rect rect1, Rect rect2)booleanIntersectsWith(Rect rect)voidOffset(double offsetX, double offsetY)static RectOffset(Rect rect, double offsetX, double offsetY)static RectOffset(Rect rect, Vector offsetVector)voidOffset(Vector offsetVector)static RectParse(java.lang.String source)voidScale(double scaleX, double scaleY)voidsetHeight(double Height)voidsetJCOInstance(JCObject instance)voidsetLocation(Point Location)voidsetSize(Size Size)voidsetWidth(double Width)voidsetX(double X)voidsetY(double Y)java.lang.StringToString(IFormatProvider provider)voidTransform(Matrix matrix)static RectTransform(Rect rect, Matrix matrix)voidUnion(Point point)voidUnion(Rect rect)static RectUnion(Rect rect, Point point)static RectUnion(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=4.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.ThrowableInternal 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, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, AbandonedMutexException
-
Rect
public Rect(Point point1, Point point2) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Rect
public Rect(Point point, Vector vector) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
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:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIFormattable- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classValueType- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIFormattable- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classValueType- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIFormattable- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classValueType- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIFormattable- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classValueType- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classValueType
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIFormattable- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classValueType- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static Rect cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoRect, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
Rectinstance- 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 boolean Equals(Rect value) 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
-
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, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, FormatException
-
Inflate
public static Rect Inflate(Rect rect, double width, double height) throws java.lang.Throwable, ArgumentNullException, ArgumentException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException
-
Inflate
public static Rect Inflate(Rect rect, Size size) throws java.lang.Throwable, ArgumentNullException, ArgumentException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException
-
Intersect
public static Rect Intersect(Rect rect1, Rect rect2) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Offset
public static Rect Offset(Rect rect, double offsetX, double offsetY) throws java.lang.Throwable, ArgumentNullException, ArgumentException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException
-
Offset
public static Rect Offset(Rect rect, Vector offsetVector) throws java.lang.Throwable, ArgumentNullException, ArgumentException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException
-
Parse
public static Rect Parse(java.lang.String source) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, NullReferenceException, FormatException, OverflowException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionArgumentOutOfRangeExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionNullReferenceExceptionFormatExceptionOverflowException
-
Transform
public static Rect Transform(Rect rect, Matrix matrix) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Union
public static Rect Union(Rect rect, Point point) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Union
public static Rect Union(Rect rect1, Rect rect2) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Inflate
public void Inflate(double width, double height) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, AbandonedMutexException
-
Inflate
public void Inflate(Size size) throws java.lang.Throwable, ArgumentNullException, ArgumentException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException
-
Intersect
public void Intersect(Rect rect) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Offset
public void Offset(double offsetX, double offsetY) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, AbandonedMutexException
-
Offset
public void Offset(Vector offsetVector) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, AbandonedMutexException
-
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
- Throws:
java.lang.Throwable
-
Union
public void Union(Point point) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Union
public void Union(Rect rect) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
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, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, AbandonedMutexException
-
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, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, AbandonedMutexException
-
getX
public double getX() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setX
public void setX(double X) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, AbandonedMutexException
-
getY
public double getY() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setY
public void setY(double Y) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, AbandonedMutexException
-
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, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, AbandonedMutexException
-
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, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException
-
setSize
public void setSize(Size Size) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, AbandonedMutexException
-
-