Class LineTo

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

public class LineTo extends Segment
A lineto operator, which draws a straight line. A lineto operator creates a line path element. It draws a straight line from the current position (MoveTo) to a new position-a new set of (x,y) coordinates: MoveTo{x:0 y:50} LineTo{x:100 y:100}
  • Constructor Summary

    Constructors
    Constructor
    Description
    LineTo(double x, double y)
    Move to a new current point. Append a straight line segment from the current point to the point (x, y). The new current point is the point the line is drawn to.
    LineTo(Point lineToPoint)
    Create a line to a new point. Append a straight line segment from the current point to the lineToPoint. The new current point is the point the line is drawn to.
  • 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

    • LineTo

      public LineTo(Point lineToPoint)
      Create a line to a new point. Append a straight line segment from the current point to the lineToPoint. The new current point is the point the line is drawn to.
    • LineTo

      public LineTo(double x, double y)
      Move to a new current point. Append a straight line segment from the current point to the point (x, y). The new current point is the point the line is drawn to.
  • 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.