public class CgmRectangle extends com.aspose.ms.lang.Struct<CgmRectangle> implements Cloneable
| Modifier and Type | Field and Description |
|---|---|
static CgmRectangle |
EMPTY
Represents an instance of the CGMRectangle class with its members uninitialized.
|
| Constructor and Description |
|---|
CgmRectangle() |
CgmRectangle(double x,
double y,
double width,
double height) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
CgmRectangle |
Clone() |
void |
CloneTo(CgmRectangle that) |
boolean |
contains(CgmPoint point)
Determines if the specified point is contained within this rectangle.
|
boolean |
contains(CgmPoint point,
double maxDistance)
Determines if the specified point is contained within this rectangle.
|
boolean |
contains(double x,
double y)
Determines if the specified point is contained within this rectangle.
|
boolean |
contains(double x,
double y,
double maxDistance)
Determines if the specified point is contained within this rectangle.
|
boolean |
equals(Object obj) |
static CgmRectangle |
fromPoints(CgmPoint leftUpperCorner,
CgmPoint rightUpperCorner,
CgmPoint leftLowerCorner,
CgmPoint rightLowerCorner)
Create a rectangle from the rectangle points.
|
double |
getHeight() |
double |
getWidth() |
double |
getX() |
double |
getY() |
int |
hashCode() |
boolean |
isEmpty()
Tests whether the
CgmRectangle.Width(CgmRectangle.getWidth()/CgmRectangle.setWidth(double)) or CgmRectangle.Height(CgmRectangle.getHeight()/CgmRectangle.setHeight(double)) property of this CgmRectangle has a value of zero. |
static boolean |
isEquals(CgmRectangle obj1,
CgmRectangle obj2) |
public static final CgmRectangle EMPTY
Represents an instance of the CGMRectangle class with its members uninitialized.
public CgmRectangle()
public CgmRectangle(double x,
double y,
double width,
double height)
public final double getX()
public final double getY()
public final double getHeight()
public final double getWidth()
public final boolean isEmpty()
Tests whether the CgmRectangle.Width(CgmRectangle.getWidth()/CgmRectangle.setWidth(double)) or CgmRectangle.Height(CgmRectangle.getHeight()/CgmRectangle.setHeight(double)) property of this CgmRectangle has a value of zero.
CgmRectangle.Width(CgmRectangle.getWidth()/CgmRectangle.setWidth(double)) or CgmRectangle.Height(CgmRectangle.getHeight()/CgmRectangle.setHeight(double)) property of this CgmRectangle has a value of zero; otherwise, false.public final boolean contains(CgmPoint point)
Determines if the specified point is contained within this rectangle.
point - The point to test.x and y is contained within this rectangle; otherwise false.public final boolean contains(double x,
double y)
Determines if the specified point is contained within this rectangle.
x - The x-coordinate of the point to test.y - The y-coordinate of the point to test.x and y is contained within this rectangle; otherwise false.public final boolean contains(CgmPoint point, double maxDistance)
Determines if the specified point is contained within this rectangle.
point - The point to test.maxDistance - The maximum distance to the rectangle border.x and y is contained within this rectangle; otherwise false.public final boolean contains(double x,
double y,
double maxDistance)
Determines if the specified point is contained within this rectangle.
x - The x-coordinate of the point to test.y - The y-coordinate of the point to test.maxDistance - The maximum distance to the rectangle border.x and y is contained within this rectangle; otherwise false.public static CgmRectangle fromPoints(CgmPoint leftUpperCorner, CgmPoint rightUpperCorner, CgmPoint leftLowerCorner, CgmPoint rightLowerCorner)
Create a rectangle from the rectangle points.
leftUpperCorner - The left upper corner.rightUpperCorner - The right upper corner.leftLowerCorner - The left lower corner.rightLowerCorner - The right lower corner.com.aspose.ms.System.NotImplementedExceptionpublic void CloneTo(CgmRectangle that)
CloneTo in class com.aspose.ms.System.ValueType<CgmRectangle>public CgmRectangle Clone()
Clone in class com.aspose.ms.System.ValueType<CgmRectangle>public static boolean isEquals(CgmRectangle obj1, CgmRectangle obj2)
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.