MoveTo

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.font.IPathSegment

public class MoveTo implements IPathSegment

Represents MoveTo operation.

Methods

MethodDescription
getX()Gets coordinate x.
getY()Gets coordinate y.
copy()Creates copy of the segment object.
shift(double dx, double dy)Performs shift by x and y coordinates.
transform(TransformationMatrix matrix)Transforms coordinates with the transformation matrix.
clone()Creates a new object that is a copy of the current instance.

getX()

public double getX()

Gets coordinate x.

Returns: double - Coordinate x.

getY()

public double getY()

Gets coordinate y.

Returns: double - Coordinate y.

copy()

public IPathSegment copy()

Creates copy of the segment object.

Returns: IPathSegment - Copy of the segment object.

shift(double dx, double dy)

public void shift(double dx, double dy)

Performs shift by x and y coordinates.

Parameters:

ParameterTypeDescription
dxdoubleValue dx.
dydoubleValue dy.

transform(TransformationMatrix matrix)

public void transform(TransformationMatrix matrix)

Transforms coordinates with the transformation matrix.

Parameters:

ParameterTypeDescription
matrixTransformationMatrixTransformation matrix.

clone()

public Object clone()

Creates a new object that is a copy of the current instance.

Returns: java.lang.Object - A new object that is a copy of this instance.