|
PDF Clown 0.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.stefanochizzolini.clown.documents.contents.objects.ContentObject
it.stefanochizzolini.clown.documents.contents.objects.Operation
it.stefanochizzolini.clown.documents.contents.objects.DrawCurve
public final class DrawCurve
'Append a cubic Bezier curve to the current path' operation [PDF:1.6:4.4.1].
Such curves are defined by four points: the two endpoints (the current point and the final point) and two control points (the first control point, associated to the current point, and the second control point, associated to the final point).
Field Summary | |
---|---|
static String |
FinalOperator
Specifies only the second control point (the first control point coincides with initial point of the curve). |
static String |
FullOperator
Specifies both control points explicitly. |
static String |
InitialOperator
Specifies only the first control point (the second control point coincides with final point of the curve). |
Fields inherited from class it.stefanochizzolini.clown.documents.contents.objects.Operation |
---|
operands, operator |
Constructor Summary | |
---|---|
DrawCurve(double pointX,
double pointY,
double control1X,
double control1Y,
double control2X,
double control2Y)
Creates a fully-explicit curve. |
|
DrawCurve(Point2D point,
Point2D control1,
Point2D control2)
Creates a fully-explicit curve. |
|
DrawCurve(Point2D point,
Point2D control,
String operator)
Creates a partially-explicit curve. |
|
DrawCurve(String operator,
List<PdfDirectObject> operands)
|
Method Summary | |
---|---|
Point2D |
getControl1()
Gets the first control point. |
Point2D |
getControl2()
Gets the second control point. |
Point2D |
getPoint()
Gets the final endpoint. |
void |
setControl1(Point2D value)
|
void |
setControl2(Point2D value)
|
void |
setPoint(Point2D value)
|
Methods inherited from class it.stefanochizzolini.clown.documents.contents.objects.Operation |
---|
get, getOperands, getOperator, toString, writeTo |
Methods inherited from class it.stefanochizzolini.clown.documents.contents.objects.ContentObject |
---|
applyTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String FinalOperator
public static final String FullOperator
public static final String InitialOperator
Constructor Detail |
---|
public DrawCurve(Point2D point, Point2D control1, Point2D control2)
point
- Final endpoint.control1
- First control point.control2
- Second control point.public DrawCurve(double pointX, double pointY, double control1X, double control1Y, double control2X, double control2Y)
public DrawCurve(Point2D point, Point2D control, String operator)
point
- Final endpoint.control
- Explicit control point.operator
- Operator (either InitialOperator
or FinalOperator
). It defines how to interpret the control
parameter.public DrawCurve(String operator, List<PdfDirectObject> operands)
Method Detail |
---|
public Point2D getControl1()
public Point2D getControl2()
public Point2D getPoint()
public void setControl1(Point2D value)
getControl1()
public void setControl2(Point2D value)
getControl2()
public void setPoint(Point2D value)
getPoint()
|
PDF Clown 0.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |