ShapeUtil

Inheritance: java.lang.Object

public class ShapeUtil

Offer methods which helps to process shapes objects.

Constructors

ConstructorDescription
ShapeUtil()

Methods

MethodDescription
graphicsPathToGeometryPath(Path graphicsPath)Converts a android.graphics.Path to the IGeometryPath
geometryPathToGraphicsPath(IGeometryPath geometryPath)Converts IGeometryPath to android.graphics.Path.

ShapeUtil()

public ShapeUtil()

graphicsPathToGeometryPath(Path graphicsPath)

public static IGeometryPath graphicsPathToGeometryPath(Path graphicsPath)

Converts a android.graphics.Path to the IGeometryPath

Parameters:

ParameterTypeDescription
graphicsPathandroid.graphics.PathGraphics path

Return value of the method call can be used to change the geometry of a IGeometryShape object with IGeometryShape.SetGeometryPaths method. |

Returns: IGeometryPath - Geometry path

geometryPathToGraphicsPath(IGeometryPath geometryPath)

public static Path geometryPathToGraphicsPath(IGeometryPath geometryPath)

Converts IGeometryPath to android.graphics.Path. GraphicsPath can be transformed in a different ways using its convenient methods and then transformed back into the IGeometryPath to use in GeometryShape via #graphicsPathToGeometryPath(android.graphics.Path).graphicsPathToGeometryPath(android.graphics.Path) method.

Parameters:

ParameterTypeDescription
geometryPathIGeometryPath——————–

Returns: android.graphics.Path - Shape path