Class CurveToV

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

public class CurveToV extends Segment
A curveto operator where the first control point matches the beginning. The current point is the beginning point in the curve.

The name CurveToV is drawn from the "V" path construction operator.

  • Constructor Summary

    Constructors
    Constructor
    Description
    CurveToV(double x2, double y2, 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 the current point and (x2, y2) as the Bézier control points. The new current point is (x3 ,y3).
    CurveToV(Point point2, Point point3)
    Append a cubic Bézier curve to the current path. The curve extends from the current point to point3, using the current point and point2 as the Bézier control points. The new current point is point3.
  • Method Summary

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

    Methods inherited from class java.lang.Object

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

    • CurveToV

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

      public CurveToV(double x2, double y2, 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 the current point and (x2, y2) as the Bézier control points. The new current point is (x3 ,y3).
      Parameters:
      x2 - The x-coordinate of the second control point.
      y2 - The y-coordinate of the second 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
    • setPoint2

      public void setPoint2(Point value)
      The second control point.
    • getPoint2

      public Point getPoint2()
      The second control point.
    • setPoint3

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

      public Point getPoint3()
      The new current point.