Summary: Ctors | Methods | Inherited Methods | [Expand All]
public class

# CubicCurveBuilder

extends Object
implements AutoCloseable

java.lang.Object
↳ | com.pdftron.pdf.CubicCurveBuilder

## Class Overview

The class CubicCurveBuilder. Creates Cubic Curves from linear points DocumentConversion instances are created through methods belonging to the Convert class. See Convert.WordToPDFConversion for an example.

## Summary

Public Constructors
| CubicCurveBuilder(long impl_ptr)

Public Methods
long | __GetHandle()
void | addSourcePoint(double x, double y) Add a source xy point.
void | close() Frees the native memory of the object.
void | destroy() Frees the native memory of the object.
double | getCubicXCoord(int index) Get the cubic X coordinate.
double | getCubicYCoord(int index) Get the cubic Y coordinate.
int | numCubicPoints() Number of generated cubic points.
int | numSourcePoints() Number of source points.

[Expand] Inherited Methods
From class java.lang.Object
boolean | equals(Object arg0)
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()
From interface java.lang.AutoCloseable
abstract void | close()

## Public Constructors

#### public CubicCurveBuilder (long impl_ptr)

## Public Methods

#### public long __GetHandle ()

#### public void addSourcePoint (double x, double y)

Add a source xy point.

##### Parameters

x | -- the x coordinate.
y | -- the y coordinate.

##### Throws

PDFNetException |

#### public void close ()

Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.

##### Throws

PDFNetException |

#### public void destroy ()

Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.

##### Throws

PDFNetException |

#### public double getCubicXCoord (int index)

Get the cubic X coordinate.

##### Parameters

index | -- the index of the coordinate. Must be less than NumCubicPoints().

##### Returns

- X coordinate of the indicated point on the cubic curve.

##### Throws

PDFNetException |

#### public double getCubicYCoord (int index)

Get the cubic Y coordinate.

##### Parameters

index | -- the index of the coordinate. Must be less than NumCubicPoints().

##### Returns

- Y coordinate of the indicated point on the cubic curve.

##### Throws

PDFNetException |

#### public int numCubicPoints ()

Number of generated cubic points.

##### Returns

- Indicates that the conversion succeeded, failed, or was cancelled.

##### Throws

PDFNetException |

#### public int numSourcePoints ()

Number of source points.

##### Returns

- Indicates that the conversion succeeded, failed, or was cancelled.

##### Throws

PDFNetException |