public class

PathData

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.PathData

Class Overview

Contains the information required to draw the path. Contains an array of PathSegmentType Operators and corresponding path data Points. A point may be on or off (off points are control points). The meaning of a point depends on associated id (or segment type) in the path segment type array.

Summary

Constants
int e_closepath The Constant e_closepath.
int e_conicto The Constant e_conicto.
int e_cubicto The Constant e_cubicto.
int e_lineto The Constant e_lineto.
int e_moveto The Constant e_moveto.
int e_rect The Constant e_rect.
Public Constructors
PathData(boolean defined, byte[] operators, double[] data_points)
Public Methods
byte[] getOperators()
Get the current operators.
double[] getPoints()
Get the current data points.
boolean isDefined()
If PathData was acquired from Font.getGlyphPath then is method will indicate if this is an 'undefined character code'.
void setOperators(byte[] operators)
Overwrite the existing operators.
void setPoints(double[] points)
Overwrite the existing data points.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int e_closepath

The Constant e_closepath.

Constant Value: 6 (0x00000006)

public static final int e_conicto

The Constant e_conicto.

Constant Value: 4 (0x00000004)

public static final int e_cubicto

The Constant e_cubicto.

Constant Value: 3 (0x00000003)

public static final int e_lineto

The Constant e_lineto.

Constant Value: 2 (0x00000002)

public static final int e_moveto

The Constant e_moveto.

Constant Value: 1 (0x00000001)

public static final int e_rect

The Constant e_rect.

Constant Value: 5 (0x00000005)

Public Constructors

public PathData (boolean defined, byte[] operators, double[] data_points)

Public Methods

public byte[] getOperators ()

Get the current operators.

Returns
  • The existing PathSegmentType operators.

public double[] getPoints ()

Get the current data points.

Returns
  • The existing data points.

public boolean isDefined ()

If PathData was acquired from Font.getGlyphPath then is method will indicate if this is an 'undefined character code'.

Note: See Font.getGlyphPath for more information regarding what an 'undefined character code' means.

Returns
  • True if this is defined, otherwise false.

public void setOperators (byte[] operators)

Overwrite the existing operators.

Parameters
operators The new operators to use.

public void setPoints (double[] points)

Overwrite the existing data points.

Parameters
points The new data points to use.