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

MethodDescription
getStartPoint()Gets the starting shape point.
getEndPoint()Gets the ending shape point.
isClosed()Gets a value indicating whether ordered shape is closed.
setClosed(boolean value)Sets a value indicating whether ordered shape is closed.
reverse()Reverses the order of points for this shape.

getStartPoint()

public abstract PointF getStartPoint()

Gets the starting shape point.

Returns: PointF - The starting shape point.

getEndPoint()

public abstract PointF getEndPoint()

Gets the ending shape point.

Returns: PointF - The ending 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.

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:

ParameterTypeDescription
valuebooleantrue if this ordered shape is closed; otherwise, false.

reverse()

public abstract void reverse()

Reverses the order of points for this shape.