public class MoveTo extends Object implements IPathSegment
Represents MoveTo operation.
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a new object that is a copy of the current instance.
|
IPathSegment |
copy()
Creates copy of the segment object.
|
double |
getX()
Gets coordinate x.
|
double |
getY()
Gets coordinate y.
|
void |
shift(double dx,
double dy)
Performs shift by x and y coordinates.
|
void |
transform(TransformationMatrix matrix)
Transforms coordinates with the transformation matrix.
|
public double getX()
Gets coordinate x.
public double getY()
Gets coordinate y.
public IPathSegment copy()
Creates copy of the segment object.
copy
in interface IPathSegment
public void shift(double dx, double dy)
Performs shift by x and y coordinates.
shift
in interface IPathSegment
dx
- Value dx.dy
- Value dy.public void transform(TransformationMatrix matrix)
Transforms coordinates with the transformation matrix.
transform
in interface IPathSegment
matrix
- Transformation matrix.