IPathSegment

All Implemented Interfaces: java.lang.Cloneable

public interface IPathSegment extends Cloneable

Represents interface of any path segment.

Methods

MethodDescription
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.

copy()

public abstract IPathSegment copy()

Creates copy of the segment object.

Returns: IPathSegment - Copy of the segment object.

shift(double dx, double dy)

public abstract void shift(double dx, double dy)

Performs shift by x and y coordinates.

Parameters:

ParameterTypeDescription
dxdoubleValue dx.
dydoubleValue dy.

transform(TransformationMatrix matrix)

public abstract void transform(TransformationMatrix matrix)

Transforms coordinates with the transformation matrix.

Parameters:

ParameterTypeDescription
matrixTransformationMatrixTransformation matrix.