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. |
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
.