IPathSegment

All Implemented Interfaces: java.lang.Cloneable

public interface IPathSegment extends Cloneable

表示任意路径段的接口。

方法

方法描述
copy()创建段对象的副本。
shift(double dx, double dy)通过 x 和 y 坐标执行平移。
transform(TransformationMatrix matrix)使用变换矩阵转换坐标。

copy()

public abstract IPathSegment copy()

创建段对象的副本。

Returns: IPathSegment - Copy of the segment object.

shift(double dx, double dy)

public abstract void shift(double dx, double dy)

通过 x 和 y 坐标执行平移。

Parameters:

参数类型描述
dxdoubledx 的值。
dydoubledy 的值。

transform(TransformationMatrix matrix)

public abstract void transform(TransformationMatrix matrix)

使用变换矩阵转换坐标。

Parameters:

参数类型描述
matrixTransformationMatrix变换矩阵。