Shape
Contents
[
Hide
]Inheritance: java.lang.Object, com.aspose.imaging.ObjectWithBounds
public abstract class Shape extends ObjectWithBounds
The shape. A continuous set of points connected using a specific rule.
Constructors
Constructor | Description |
---|---|
Shape() |
Methods
Method | Description |
---|---|
getCenter() | Gets the shape’s center. |
getSegments() | Gets the shape segments. |
hasSegments() | Gets a value indicating whether shape has segments. |
equals(Object obj) | |
hashCode() |
Shape()
public Shape()
getCenter()
public abstract PointF getCenter()
Gets the shape’s center.
Returns: PointF - The shape’s center.
getSegments()
public abstract ShapeSegment[] getSegments()
Gets the shape segments.
Returns: com.aspose.imaging.ShapeSegment[] - The shape segments.
hasSegments()
public abstract boolean hasSegments()
Gets a value indicating whether shape has segments.
Returns:
boolean - True
if shape has segments; otherwise, false
.
equals(Object obj)
public abstract boolean equals(Object obj)
Check if objects are equal.
Parameters:
Parameter | Type | Description |
---|---|---|
obj | java.lang.Object |
Returns: boolean
hashCode()
public abstract int hashCode()
Returns: int