Package com.evopdf

Class PathElement


public class PathElement extends PageGraphicElement
Represents a graphic path element to be rendered in a PDF document
  • Constructor Details

    • PathElement

      public PathElement(PointFloat startPoint)
      Creates a graphic path element
      Parameters:
      startPoint - the path start point
  • Method Details

    • closePath

      public boolean closePath()
      Gets the flag indicating if the path should be automatically closed
      Returns:
      the flag value
    • setClosePath

      public void setClosePath(boolean closePath)
      Sets the flag indicating if the path should be automatically closed. By default this property is false and the path is not closed
      Parameters:
      closePath - the flag value to set
    • addBezierCurveSegment

      public void addBezierCurveSegment(PointFloat startPoint, PointFloat directionPoint, PointFloat endPoint)
      Adds a Bezier curve to path
      Parameters:
      startPoint - the Bezier curve segment start point
      directionPoint - the Bezier curve segment direction point
      endPoint - the Bezier curve segment end point
    • addLineSegment

      public void addLineSegment(PointFloat endPoint)
      Adds a line to path
      Parameters:
      endPoint - the line end point