Light Theme Dark Theme GitHub Samples Maven Trial Download

com.datalogics.PDFL.CurveTo Class Reference

Public Member Functions

 CurveTo (double x1, double y1, double x2, double y2, double x3, double y3)
 
 CurveTo (Point point1, Point point2, Point point3)
 
synchronized void delete ()
 
Point getPoint1 ()
 
Point getPoint2 ()
 
Point getPoint3 ()
 
void setPoint1 (Point value)
 
void setPoint2 (Point value)
 
void setPoint3 (Point value)
 
String toString ()
 

Protected Member Functions

 CurveTo (long cPtr, boolean cMemoryOwn)
 
synchronized void delete (Boolean disposing)
 
void finalize ()
 

Static Protected Member Functions

static long getCPtr (CurveTo obj)
 
static long getCPtr (Segment obj)
 

Detailed Description

The curveto operator is used to draw a Bezier curve. The curved segment is appended to a path.

The curveto operator calculates the curve between two endpoints, the current (beginning) point and the final (end) point, and in relation to two matching control points.

The control points define the nature of the curve between the two endpoints. These values are represented by a series of x and y coordinates.

Constructor & Destructor Documentation

◆ CurveTo() [1/3]

com.datalogics.PDFL.CurveTo.CurveTo ( long  cPtr,
boolean  cMemoryOwn 
)
protected

◆ CurveTo() [2/3]

com.datalogics.PDFL.CurveTo.CurveTo ( Point  point1,
Point  point2,
Point  point3 
)

Append a cubic Bézier curve to the current path.The curve extends from the current point to point3, using point1 and point2 as the Bézier control points.The new current point is point3.

Parameters
point1the first control point.
point2the second control point.
point3the new current point.

◆ CurveTo() [3/3]

com.datalogics.PDFL.CurveTo.CurveTo ( double  x1,
double  y1,
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 (x1, y1) and (x2, y2) as the Bézier control points.The new current point is (x3 , y3).

Parameters
x1The x-coordinate of the first control point.
y1The y-coordinate of the first control point.
x2The x-coordinate of the second control point.
y2The y-coordinate of the second control point.
x3The x-coordinate of the new current point.
y3The y-coordinate of the new current point.

Member Function Documentation

◆ delete() [1/2]

synchronized void com.datalogics.PDFL.CurveTo.delete ( )

Reimplemented from com.datalogics.PDFL.Segment.

◆ delete() [2/2]

synchronized void com.datalogics.PDFL.CurveTo.delete ( Boolean  disposing)
protected

Reimplemented from com.datalogics.PDFL.Segment.

◆ finalize()

void com.datalogics.PDFL.CurveTo.finalize ( )
protected

Reimplemented from com.datalogics.PDFL.Segment.

◆ getCPtr() [1/2]

static long com.datalogics.PDFL.CurveTo.getCPtr ( CurveTo  obj)
staticprotected

◆ getCPtr() [2/2]

static long com.datalogics.PDFL.Segment.getCPtr ( Segment  obj)
staticprotectedinherited

◆ getPoint1()

Point com.datalogics.PDFL.CurveTo.getPoint1 ( )

The first control point.

◆ getPoint2()

Point com.datalogics.PDFL.CurveTo.getPoint2 ( )

The second control point.

◆ getPoint3()

Point com.datalogics.PDFL.CurveTo.getPoint3 ( )

The new current point.

◆ setPoint1()

void com.datalogics.PDFL.CurveTo.setPoint1 ( Point  value)

The first control point.

◆ setPoint2()

void com.datalogics.PDFL.CurveTo.setPoint2 ( Point  value)

The second control point.

◆ setPoint3()

void com.datalogics.PDFL.CurveTo.setPoint3 ( Point  value)

The new current point.

◆ toString()

String com.datalogics.PDFL.CurveTo.toString ( )

Reimplemented from com.datalogics.PDFL.Segment.