Interface IPathShape

    • Method Detail

      • setCoordinates

        void setCoordinates​(java.lang.String[] inputCoordinates,
                            Point startPoint)
        This method sets the coordinates for the path painting operator and does internal preprocessing, if necessary
        Parameters:
        inputCoordinates - an array containing point values for path coordinates
        startPoint - the ending point of the previous operator, or, in broader terms, the point that the coordinates should be absolutized against, for relative operators
      • getEndingPoint

        Point getEndingPoint()
        Gets the ending point on the canvas after the path shape has been drawn via the draw(PdfCanvas) method, in SVG space coordinates.
        Returns:
        The Point representing the final point in the drawn path. If the point does not exist or does not change null may be returned.
      • isRelative

        boolean isRelative()
        Returns true when this shape is a relative operator. False if it is an absolute operator.
        Returns:
        true if relative, false if absolute
      • getPathShapeRectangle

        Rectangle getPathShapeRectangle​(Point lastPoint)
        Get bounding rectangle of the current path shape.
        Parameters:
        lastPoint - start point for this shape
        Returns:
        calculated rectangle