Class CurveToY

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

public class CurveToY extends Segment
A curveto operator where the second control point matches the end point. Here the new current point is the end point in the curve.

The name CurveToY is drawn from the "Y" path construction operator.

  • Constructor Summary

    Constructors
    Constructor
    Description
    CurveToY(double x1, double y1, double x3, double y3)
    Append a cubic Bézier curve to the current path. The curve extends from the current point to the point (x3, y3), using (x1, y1) and (x3, y3) as the Bézier control points. The new current point is (x3 ,y3).
    CurveToY(Point point1, Point point3)
    Append a cubic Bézier curve to the current path. The curve extends from the current point to point3, using point1 and point3 as the Bézier control points. The new current point is point3.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    The first control point.
    The new current point.
    void
    The first control point.
    void
    The new current point.
     

    Methods inherited from class java.lang.Object

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

    • CurveToY

      public CurveToY(Point point1, Point point3)
      Append a cubic Bézier curve to the current path. The curve extends from the current point to point3, using point1 and point3 as the Bézier control points. The new current point is point3.
      Parameters:
      point1 - the first control point.
      point3 - the new current point.
    • CurveToY

      public CurveToY(double x1, double y1, double x3, double y3)
      Append a cubic Bézier curve to the current path. The curve extends from the current point to the point (x3, y3), using (x1, y1) and (x3, y3) as the Bézier control points. The new current point is (x3 ,y3).
      Parameters:
      x1 - The x-coordinate of the first control point.
      y1 - The y-coordinate of the first control point.
      x3 - The x-coordinate of the new current point.
      y3 - The y-coordinate of the new current point.
  • Method Details

    • delete

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

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

      public void setPoint1(Point value)
      The first control point.
    • getPoint1

      public Point getPoint1()
      The first control point.
    • setPoint3

      public void setPoint3(Point value)
      The new current point.
    • getPoint3

      public Point getPoint3()
      The new current point.