IPathSegment
All Implemented Interfaces: java.lang.Cloneable
public interface IPathSegment extends Cloneable
Represents interface of any path segment.
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
dx | double | Value dx. |
dy | double | Value dy. |
transform(TransformationMatrix matrix)
public abstract void transform(TransformationMatrix matrix)
Transforms coordinates with the transformation matrix.
Parameters:
Parameter | Type | Description |
---|---|---|
matrix | TransformationMatrix | Transformation matrix. |