Package com.winnovative_software
Class PathElement
java.lang.Object
com.winnovative_software.PageElement
com.winnovative_software.PageGraphicElement
com.winnovative_software.PathElement
Represents a graphic path element to be rendered in a PDF document
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBezierCurveSegment(PointFloat startPoint, PointFloat directionPoint, PointFloat endPoint) Adds a Bezier curve to pathvoidaddLineSegment(PointFloat endPoint) Adds a line to pathbooleanGets the flag indicating if the path should be automatically closedvoidsetClosePath(boolean closePath) Sets the flag indicating if the path should be automatically closed.Methods inherited from class com.winnovative_software.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
-