Package | Description |
---|---|
com.itextpdf.kernel.colors.gradients | |
com.itextpdf.kernel.geom | |
com.itextpdf.kernel.pdf.canvas.parser.clipper | |
com.itextpdf.kernel.pdf.canvas.wmf |
Modifier and Type | Method and Description |
---|---|
protected static Point[] |
AbstractLinearGradientBuilder.createCoordinatesForNewDomain(double[] newDomain,
Point[] baseVector)
Expand the base vector to cover the new domain
|
Point[] |
LinearGradientBuilder.getGradientVector(Rectangle targetBoundingBox,
AffineTransform contextTransform) |
protected abstract Point[] |
AbstractLinearGradientBuilder.getGradientVector(Rectangle targetBoundingBox,
AffineTransform contextTransform)
Returns the base gradient vector in gradient vector space.
|
protected Point[] |
StrategyBasedLinearGradientBuilder.getGradientVector(Rectangle targetBoundingBox,
AffineTransform contextTransform) |
Modifier and Type | Method and Description |
---|---|
protected static Point[] |
AbstractLinearGradientBuilder.createCoordinatesForNewDomain(double[] newDomain,
Point[] baseVector)
Expand the base vector to cover the new domain
|
protected static double[] |
AbstractLinearGradientBuilder.evaluateCoveringDomain(Point[] coords,
Rectangle toCover)
Evaluates the minimal domain that covers the box with vector normals.
|
Modifier and Type | Method and Description |
---|---|
Point |
AffineTransform.deltaTransform(Point src,
Point dst) |
Point |
Path.getCurrentPoint()
The current point is the trailing endpoint of the segment most recently added to the current path.
|
Point |
Subpath.getLastPoint() |
Point |
Point.getLocation() |
Point |
Subpath.getStartPoint() |
Point |
AffineTransform.inverseTransform(Point src,
Point dst) |
Point[] |
Rectangle.toPointsArray()
Convert rectangle to an array of points
|
Point |
AffineTransform.transform(Point src,
Point dst) |
Modifier and Type | Method and Description |
---|---|
List<Point> |
BezierCurve.getBasePoints()
Treat base points as the points which are enough to construct a shape.
|
List<Point> |
Line.getBasePoints() |
List<Point> |
IShape.getBasePoints()
Treat base points as the points which are enough to construct a shape.
|
List<Point> |
BezierCurve.getPiecewiseLinearApproximation()
You can adjust precision of the approximation by varying the following
parameters:
BezierCurve.curveCollinearityEpsilon , BezierCurve.distanceToleranceSquare ,
BezierCurve.distanceToleranceManhattan . |
List<Point> |
Subpath.getPiecewiseLinearApproximation() |
Modifier and Type | Method and Description |
---|---|
Point |
AffineTransform.deltaTransform(Point src,
Point dst) |
double |
Point.distance(Point p) |
double |
Point.distanceSq(Point p) |
Point |
AffineTransform.inverseTransform(Point src,
Point dst) |
void |
Point.setLocation(Point p) |
void |
Subpath.setStartPoint(Point startPoint)
Sets the start point of the subpath.
|
void |
AffineTransform.transform(Point[] src,
int srcOff,
Point[] dst,
int dstOff,
int length) |
void |
AffineTransform.transform(Point[] src,
int srcOff,
Point[] dst,
int dstOff,
int length) |
Point |
AffineTransform.transform(Point src,
Point dst) |
Modifier and Type | Method and Description |
---|---|
static Rectangle |
Rectangle.calculateBBox(List<Point> points)
Calculates the bounding box of passed points.
|
Constructor and Description |
---|
Line(Point p1,
Point p2)
Constructs a new line based on the given coordinates.
|
Point(Point p) |
Subpath(Point startPoint)
Constructs a new subpath starting at the given point.
|
Constructor and Description |
---|
BezierCurve(List<Point> controlPoints)
Constructs new bezier curve.
|
Modifier and Type | Method and Description |
---|---|
static List<Point> |
ClipperBridge.convertToFloatPoints(List<Point.LongPoint> points)
Converts list of
Point.LongPoint objects into list of
Point objects. |
Modifier and Type | Method and Description |
---|---|
static boolean |
ClipperBridge.addPolygonToClipper(IClipper clipper,
Point[] polyVertices,
IClipper.PolyType polyType)
Adds polygon path based on array of
Point (internally converting
them by ClipperBridge.convertToLongPoints(java.util.List<com.itextpdf.kernel.geom.Point>) ) and adds this path to IClipper instance, treating the path as
a closed polygon. |
static boolean |
ClipperBridge.addPolylineSubjectToClipper(IClipper clipper,
Point[] lineVertices)
Adds polyline path based on array of
Point (internally converting
them by ClipperBridge.convertToLongPoints(java.util.List<com.itextpdf.kernel.geom.Point>) ) and adds this path to IClipper instance, treating the path as
a polyline (an open path in terms of clipper library). |
Modifier and Type | Method and Description |
---|---|
static List<Point.LongPoint> |
ClipperBridge.convertToLongPoints(List<Point> points)
Converts list of
Point objects into list of
Point.LongPoint objects. |
Modifier and Type | Field and Description |
---|---|
Point |
MetaState.currentPoint
Current Point.
|
Modifier and Type | Method and Description |
---|---|
Point |
MetaState.getCurrentPoint()
Returns the current Point.
|
Modifier and Type | Method and Description |
---|---|
void |
MetaState.setCurrentPoint(Point p)
Sets the current Point to the specified Point.
|
Copyright © 1998–2023 Apryse Group NV. All rights reserved.