IOrderedShape
public interface IOrderedShape
Represents an ordered shape. An ordered shape is a continuous set of points having a start point and end point. The continuous set of points connected using a specific rule.
Methods
| Method | Description |
|---|---|
| getEndPoint() | Gets the ending shape point. |
| getStartPoint() | Gets the starting shape point. |
| isClosed() | Gets a value indicating whether ordered shape is closed. |
| reverse() | Reverses the order of points for this shape. |
| setClosed(boolean value) | Sets a value indicating whether ordered shape is closed. |
getEndPoint()
public abstract PointF getEndPoint()
Gets the ending shape point.
Returns: PointF - The ending shape point.
getStartPoint()
public abstract PointF getStartPoint()
Gets the starting shape point.
Returns: PointF - The starting shape point.
isClosed()
public abstract boolean isClosed()
Gets a value indicating whether ordered shape is closed. When processing closed ordered shape the starting and ending points have no meaning.
Returns: boolean - true if this ordered shape is closed; otherwise, false .
reverse()
public abstract void reverse()
Reverses the order of points for this shape.
setClosed(boolean value)
public abstract void setClosed(boolean value)
Sets a value indicating whether ordered shape is closed. When processing closed ordered shape the starting and ending points have no meaning.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean | true if this ordered shape is closed; otherwise, false . |