public class PathData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
e_closepath
The Constant e_closepath.
|
static int |
e_conicto
The Constant e_conicto.
|
static int |
e_cubicto
The Constant e_cubicto.
|
static int |
e_lineto
The Constant e_lineto.
|
static int |
e_moveto
The Constant e_moveto.
|
static int |
e_rect
The Constant e_rect.
|
Constructor and Description |
---|
PathData(boolean defined,
byte[] operators,
double[] data_points) |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final int e_moveto
public static final int e_lineto
public static final int e_cubicto
public static final int e_conicto
public static final int e_rect
public static final int e_closepath
public PathData(boolean defined, byte[] operators, double[] data_points)
public void setOperators(byte[] operators)
operators
- The new operators to use.public void setPoints(double[] points)
points
- The new data points to use.public byte[] getOperators()
public double[] getPoints()
public boolean isDefined()
Note: See Font.getGlyphPath for more information regarding what an 'undefined character code' means.