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:
| 参数 | 类型 | 描述 |
|---|---|---|
| dx | double | dx 的值。 |
| dy | double | dy 的值。 |
transform(TransformationMatrix matrix)
public abstract void transform(TransformationMatrix matrix)
使用变换矩阵转换坐标。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| matrix | TransformationMatrix | 变换矩阵。 |