public abstract class AbstractPathShape extends Object implements IPathShape
Modifier and Type | Field and Description |
---|---|
protected String[] |
coordinates |
protected IOperatorConverter |
copier |
protected Map<String,String> |
properties
The properties of this shape.
|
protected boolean |
relative
Whether this is a relative operator or not.
|
Constructor and Description |
---|
AbstractPathShape() |
AbstractPathShape(boolean relative) |
AbstractPathShape(boolean relative, IOperatorConverter copier) |
Modifier and Type | Method and Description |
---|---|
protected Point |
createPoint(String coordX, String coordY) |
Point |
getEndingPoint()
Gets the ending point on the canvas after the path shape has been drawn via the IPathShape.draw(PdfCanvas) method, in SVG space coordinates.
|
Rectangle |
getPathShapeRectangle(Point lastPoint)
Get bounding rectangle of the current path shape.
|
boolean |
isRelative()
Returns true when this shape is a relative operator.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
draw, setCoordinates
protected boolean relative
protected final IOperatorConverter copier
protected String[] coordinates
public AbstractPathShape()
public AbstractPathShape(boolean relative)
public AbstractPathShape(boolean relative, IOperatorConverter copier)
public boolean isRelative()
IPathShape
isRelative
in interface IPathShape
public Point getEndingPoint()
IPathShape
IPathShape.draw(PdfCanvas)
method, in SVG space coordinates.
getEndingPoint
in interface IPathShape
Point
representing the final point in the drawn path. If the point does not exist or does not change null
may be returned.
Copyright © 1998–2021 iText Group NV. All rights reserved.