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 SummaryFields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: WindowsBase, Version=9.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 SummaryAll 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.NetObjectEquals, Equals, GetHashCode, GetType, hashCode, toString, ToString
 - 
Methods inherited from interface system.IFormattableToString
 
- 
 
- 
- 
- 
Field Detail- 
assemblyFullNamepublic 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
 
 - 
assemblyShortNamepublic static final java.lang.String assemblyShortName Assembly name: WindowsBase- See Also:
- Constant Field Values
 
 - 
classNamepublic static final java.lang.String className Qualified class name: System.Windows.Rect- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
Rectpublic Rect(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
- java.lang.Throwable
 
 - 
Rectpublic Rect() throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
Rectpublic Rect(double x, double y, double width, double height) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
 - 
Rectpublic Rect(Point point1, Point point2) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException - Throws:
- java.lang.Throwable
- NotSupportedException
- PlatformNotSupportedException
 
 - 
Rectpublic Rect(Point point, Vector vector) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException - Throws:
- java.lang.Throwable
- NotSupportedException
- PlatformNotSupportedException
 
 - 
Rectpublic Rect(Size size) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 
- 
 - 
Method Detail- 
getJCOAssemblyNamepublic java.lang.String getJCOAssemblyName() Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
- getJCOAssemblyNamein interface- IFormattable
- Specified by:
- getJCOAssemblyNamein interface- IJCOBridgeReflected
- Overrides:
- getJCOAssemblyNamein class- ValueType
- Returns:
- A Stringrepresenting the Fullname of reflected Assembly
 
 - 
getJCOClassNamepublic java.lang.String getJCOClassName() Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
- getJCOClassNamein interface- IFormattable
- Specified by:
- getJCOClassNamein interface- IJCOBridgeReflected
- Overrides:
- getJCOClassNamein class- ValueType
- Returns:
- A Stringrepresenting the Fullname of reflected Class
 
 - 
getJCOObjectNamepublic java.lang.String getJCOObjectName() Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
- getJCOObjectNamein interface- IFormattable
- Specified by:
- getJCOObjectNamein interface- IJCOBridgeReflected
- Overrides:
- getJCOObjectNamein class- ValueType
- Returns:
- A Stringrepresenting the name used to allocated the object in CLR context
 
 - 
getJCOInstancepublic java.lang.Object getJCOInstance() Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
- getJCOInstancein interface- IFormattable
- Specified by:
- getJCOInstancein interface- IJCOBridgeReflected
- Overrides:
- getJCOInstancein class- ValueType
- Returns:
- An Objectrepresenting the CLR instance of the instantiated Class
 
 - 
setJCOInstancepublic void setJCOInstance(JCObject instance) - Overrides:
- setJCOInstancein class- ValueType
 
 - 
getJCOTypepublic JCType getJCOType() Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
- getJCOTypein interface- IFormattable
- Specified by:
- getJCOTypein interface- IJCOBridgeReflected
- Overrides:
- getJCOTypein class- ValueType
- Returns:
- A JCTyperepresenting the CLR Type of the instantiated Class
 
 - 
castpublic 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
 
 - 
Containspublic boolean Contains(double x, double y) throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
Containspublic boolean Contains(Point point) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
Containspublic boolean Contains(Rect rect) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
Equalspublic static boolean Equals(Rect rect1, Rect rect2) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
Equalspublic boolean Equals(Rect value) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
IntersectsWithpublic boolean IntersectsWith(Rect rect) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
ToStringpublic java.lang.String ToString(IFormatProvider provider) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, OutOfMemoryException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, FormatException 
 - 
Inflatepublic static Rect Inflate(Rect rect, double width, double height) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException 
 - 
Inflatepublic static Rect Inflate(Rect rect, Size size) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException 
 - 
Intersectpublic static Rect Intersect(Rect rect1, Rect rect2) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException - Throws:
- java.lang.Throwable
- NotSupportedException
- PlatformNotSupportedException
 
 - 
Offsetpublic static Rect Offset(Rect rect, double offsetX, double offsetY) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException 
 - 
Offsetpublic static Rect Offset(Rect rect, Vector offsetVector) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException 
 - 
Parsepublic static Rect Parse(java.lang.String source) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, ObjectDisposedException, InvalidOperationException, FormatException 
 - 
Transformpublic static Rect Transform(Rect rect, Matrix matrix) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException - Throws:
- java.lang.Throwable
- NotSupportedException
- PlatformNotSupportedException
 
 - 
Unionpublic static Rect Union(Rect rect, Point point) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException - Throws:
- java.lang.Throwable
- NotSupportedException
- PlatformNotSupportedException
 
 - 
Unionpublic static Rect Union(Rect rect1, Rect rect2) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException - Throws:
- java.lang.Throwable
- NotSupportedException
- PlatformNotSupportedException
 
 - 
Inflatepublic void Inflate(double width, double height) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
 - 
Inflatepublic void Inflate(Size size) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException 
 - 
Intersectpublic void Intersect(Rect rect) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException - Throws:
- java.lang.Throwable
- NotSupportedException
- PlatformNotSupportedException
 
 - 
Offsetpublic void Offset(double offsetX, double offsetY) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
 - 
Offsetpublic void Offset(Vector offsetVector) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException 
 - 
Scalepublic void Scale(double scaleX, double scaleY) throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
Transformpublic void Transform(Matrix matrix) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException - Throws:
- java.lang.Throwable
- NotSupportedException
- PlatformNotSupportedException
 
 - 
Unionpublic void Union(Point point) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException - Throws:
- java.lang.Throwable
- NotSupportedException
- PlatformNotSupportedException
 
 - 
Unionpublic void Union(Rect rect) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException - Throws:
- java.lang.Throwable
- NotSupportedException
- PlatformNotSupportedException
 
 - 
getIsEmptypublic boolean getIsEmpty() throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
getBottompublic double getBottom() throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
getHeightpublic double getHeight() throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
setHeightpublic void setHeight(double Height) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
 - 
getLeftpublic double getLeft() throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
getRightpublic double getRight() throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
getToppublic double getTop() throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
getWidthpublic double getWidth() throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
setWidthpublic void setWidth(double Width) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
 - 
getXpublic double getX() throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
setXpublic void setX(double X) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
 - 
getYpublic double getY() throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
setYpublic void setY(double Y) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
 - 
getBottomLeftpublic Point getBottomLeft() throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
getBottomRightpublic Point getBottomRight() throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
getLocationpublic Point getLocation() throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
setLocationpublic void setLocation(Point Location) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException 
 - 
getTopLeftpublic Point getTopLeft() throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
getTopRightpublic Point getTopRight() throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
getEmptypublic static Rect getEmpty() throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
getSizepublic Size getSize() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException 
 - 
setSizepublic void setSize(Size Size) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException 
 
- 
 
-