CurveTo

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.font.IPathSegment

public class CurveTo implements IPathSegment

Represents CurveTo operation.

Methods

MethodDescription
getX1()Gets coordinate x1.
getY1()Gets coordinate y1.
getX2()Gets coordinate x2.
getY2()Gets coordinate y2.
getX3()Gets coordinate x3.
getY3()Gets coordinate y3.
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.

getX1()

public double getX1()

Gets coordinate x1.

Returns: double - Coordinate x1.

getY1()

public double getY1()

Gets coordinate y1.

Returns: double - Coordinate y1.

getX2()

public double getX2()

Gets coordinate x2.

Returns: double - Coordinate x2.

getY2()

public double getY2()

Gets coordinate y2.

Returns: double - Coordinate y2.

getX3()

public double getX3()

Gets coordinate x3.

Returns: double - Coordinate x3.

getY3()

public double getY3()

Gets coordinate y3.

Returns: double - Coordinate y3.

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.