public abstract class Shape extends ObjectWithBounds
The shape. A continuous set of points connected using a specific rule.
Constructor and Description |
---|
Shape() |
Modifier and Type | Method and Description |
---|---|
abstract PointF |
getCenter()
Gets the shape's center.
|
abstract ShapeSegment[] |
getSegments()
Gets the shape segments.
|
abstract boolean |
hasSegments()
Gets a value indicating whether shape has segments.
|
getBounds, getBounds, getBounds, transform
public abstract PointF getCenter()
Gets the shape's center.
public abstract ShapeSegment[] getSegments()
Gets the shape segments.
public abstract boolean hasSegments()
Gets a value indicating whether shape has segments.
True
if shape has segments; otherwise, false
.