Class MoveTo

java.lang.Object
com.datalogics.PDFL.Segment
com.datalogics.PDFL.MoveTo

public class MoveTo extends Segment
An operator that creates a path by moving to a new current position. A LineTo operator creates an addition to a path element by moving to the (x,y) coordinates specified in the MoveTo statement. The MoveTo coordinates serve as the new current position, and from here a new path element can start.

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 Summary

    Constructors
    Constructor
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    The new current point.
    void
    setPoint(Point value)
    The new current point.
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MoveTo

      public 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.
    • MoveTo

      public 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.
  • Method Details

    • delete

      public void delete()
      Overrides:
      delete in class Segment
    • toString

      public String toString()
      Overrides:
      toString in class Segment
    • setPoint

      public void setPoint(Point value)
      The new current point.
    • getPoint

      public Point getPoint()
      The new current point.