ShapeConnectionSite Class
A shape connection site that is a point on a shape to which connectors can be attached.
Declaration
public final class ShapeConnectionSite extends Struct<ShapeConnectionSite> implements IEquatable<ShapeConnectionSite>
Implements
Inherited Members
Inheritance
Constructors
ShapeConnectionSite() Constructor
Initializes a new instance of the ShapeConnectionSite class.
Declaration
public ShapeConnectionSite()
ShapeConnectionSite(AdjustCoordinate x, AdjustCoordinate y, AdjustAngle rotationAngle) Constructor
Initializes a new instance of the ShapeConnectionSite class with specified settings.
Declaration
public ShapeConnectionSite(AdjustCoordinate x, AdjustCoordinate y, AdjustAngle rotationAngle)
Parameters
| Name | Type | Description |
|---|---|---|
| x | AdjustCoordinate | The X-coordinate. |
| y | AdjustCoordinate | The Y-coordinate. |
| rotationAngle | AdjustAngle | The rotation angle. |
Methods
equals(Object obj) Method
Determines whether the specified object is equal to the current ShapeConnectionSite object.
Declaration
public boolean equals(Object obj)
Parameters
| Name | Type | Description |
|---|---|---|
| obj | Object | The object to compare with the current |
Returns
| Type | Description |
|---|---|
| boolean |
|
equals(ShapeConnectionSite other) Method
Determines whether the specified object is equal to the current ShapeConnectionSite object.
Declaration
public boolean equals(ShapeConnectionSite other)
Parameters
| Name | Type | Description |
|---|---|---|
| other | ShapeConnectionSite |
The other parameter. |
Returns
| Type | Description |
|---|---|
| boolean |
|
getRotationAngle() Method
Returns the rotation angle of the shape connection site.
Declaration
public AdjustAngle getRotationAngle()
Returns
| Type | Description |
|---|---|
| AdjustAngle | The rotation angle of the shape connection site. |
getX() Method
Returns the X-coordinate of the shape connection site.
Declaration
public AdjustCoordinate getX()
Returns
| Type | Description |
|---|---|
| AdjustCoordinate | The X-coordinate of the shape connection site. |
getY() Method
Returns the Y-coordinate of the shape connection site.
Declaration
public AdjustCoordinate getY()
Returns
| Type | Description |
|---|---|
| AdjustCoordinate | The Y-coordinate of the shape connection site. |
hashCode() Method
Returns a hash code for this ShapeConnectionSite object.
Declaration
public int hashCode()
Returns
| Type | Description |
|---|---|
| int | The identification number. |