Package com.evopdf
Class PathElement
java.lang.Object
com.evopdf.PageElement
com.evopdf.PageGraphicElement
com.evopdf.PathElement
Represents a graphic path element to be rendered in a PDF document
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBezierCurveSegment
(PointFloat startPoint, PointFloat directionPoint, PointFloat endPoint) Adds a Bezier curve to pathvoid
addLineSegment
(PointFloat endPoint) Adds a line to pathboolean
Gets the flag indicating if the path should be automatically closedvoid
setClosePath
(boolean closePath) Sets the flag indicating if the path should be automatically closed.Methods inherited from class com.evopdf.PageGraphicElement
backColor, blending, clipRectangle, foreColor, gradient, lineStyle, opacity, rotate, scale, setBackColor, setBlending, setClipRectangle, setForeColor, setGradient, setLineStyle, setOpacity, skew, translate
-
Constructor Details
-
PathElement
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 pointdirectionPoint
- the Bezier curve segment direction pointendPoint
- the Bezier curve segment end point
-
addLineSegment
Adds a line to path- Parameters:
endPoint
- the line end point
-