public static class PDFPath.PDFPoint
extends java.lang.Object
PDFPoint
is an inner class defined for a PDF point object.Modifier and Type | Field and Description |
---|---|
static int |
TYPE_BEZIERTO
Point type of Bezier To.
|
static int |
TYPE_CLOSEFIGURE
Point type of Close Figure.
|
static int |
TYPE_LINETO
Point type of Line To.
|
static int |
TYPE_MOVETO
Point type of Move To.
|
Constructor and Description |
---|
PDFPath.PDFPoint() |
Modifier and Type | Method and Description |
---|---|
int |
getType()
Get the type of the
PDFPoint . |
java.awt.geom.Point2D.Float |
getValue()
Get the value of the point.
|
void |
setType(int type)
Set the specific type of the path point.
|
void |
setValue(java.awt.geom.Point2D.Float point)
Set the specific value of the point.
|
public static final int TYPE_CLOSEFIGURE
Specify that a figure is automatically closed after the corresponding
line or curve is drawn. The figure is closed by drawing a line from
the line or curve end point to the point corresponding to the last
.TYPE_MOVETO
public static final int TYPE_LINETO
Specify that a line is to be drawn from the current position to this point, which becomes a new current position.
public static final int TYPE_BEZIERTO
Specifies that this point is a control point or ending point for a Bezier spline.
public static final int TYPE_MOVETO
Specify that this point starts a figure. This point becomes a new current position.
public java.awt.geom.Point2D.Float getValue()
public int getType()
PDFPoint
.TYPE_LINETO
,
TYPE_BEZIERTO
and
TYPE_MOVETO
can not be combined.
Additionally, TYPE_MOVETO
and
TYPE_CLOSEFIGURE
can not be combined as
well.public void setValue(java.awt.geom.Point2D.Float point)
point
- The specific value of the point.It can be one or
combination of the followings:TYPE_LINETO
,
TYPE_BEZIERTO
and
TYPE_MOVETO
can not be combined.
Additionally, TYPE_MOVETO
and
TYPE_CLOSEFIGURE
can not be combined
as well.public void setType(int type)
type
- The specific type of the path point.