public class MoveTo extends Segment
For example, the MoveTo coordinates can define the starting position for a LineTo operator. The LineTo operator draws a straight line from the current position (MoveTo) to a new position, the set of (x,y) coordinates defined with the LineTo operator: MoveTo{x:0 y:50} LineTo{x:100 y:100}
| Constructor and Description |
|---|
MoveTo(double x,
double y)
Move to a new current point. Begin a new subpath by moving the current point to coordinates x, y, omitting any connecting line segment. If the previous path segment in the current path was also a MoveTo, the new m overrides it; no vestige of the previous MoveTo operation remains in the path.
|
MoveTo(Point newCurrentPoint)
Move to a new current point. Begin a new subpath by moving the current point to a new point, omitting any connecting line segment. If the previous path segment in the current path was also a MoveTo, the new m overrides it; no vestige of the previous MoveTo operation remains in the path.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
Point |
getPoint()
The new current point.
|
void |
setPoint(Point value)
The new current point.
|
java.lang.String |
toString() |
public MoveTo(Point newCurrentPoint)
public MoveTo(double x,
double y)