Package com.pdftools.toolbox.pdf.content
Class PathSegment
- java.lang.Object
-
- com.pdftools.toolbox.internal.NativeBase
-
- com.pdftools.toolbox.pdf.content.PathSegment
-
public class PathSegment extends NativeBase
-
-
Field Summary
Fields Modifier and Type Field Description PointcontrolPoint1The first Bezier control point.PointcontrolPoint2The second Bezier control point.PointendPointThe end point of the path segment.PathSegmentTypesegmentTypeDefines the type of this path segment.
-
Constructor Summary
Constructors Constructor Description PathSegment()Constructor.PathSegment(Point endPoint, PathSegmentType segmentType, Point controlPoint1, Point controlPoint2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)PointgetControlPoint1()GetscontrolPoint1PointgetControlPoint2()GetscontrolPoint2PointgetEndPoint()GetsendPointPathSegmentTypegetSegmentType()GetssegmentTypeinthashCode()voidsetControlPoint1(Point controlPoint1)SetscontrolPoint1voidsetControlPoint2(Point controlPoint2)SetscontrolPoint2voidsetEndPoint(Point endPoint)SetsendPointvoidsetSegmentType(PathSegmentType segmentType)SetssegmentType
-
-
-
Field Detail
-
endPoint
public Point endPoint
The end point of the path segment.
The start point of the segment corresponds to the end point of the previous segment.
-
segmentType
public PathSegmentType segmentType
Defines the type of this path segment.
-
controlPoint1
public Point controlPoint1
-
controlPoint2
public Point controlPoint2
-
-
Constructor Detail
-
PathSegment
public PathSegment()
Constructor.
-
PathSegment
public PathSegment(Point endPoint, PathSegmentType segmentType, Point controlPoint1, Point controlPoint2)
-
-
Method Detail
-
getSegmentType
public PathSegmentType getSegmentType()
GetssegmentType
-
setSegmentType
public void setSegmentType(PathSegmentType segmentType)
SetssegmentType
-
getControlPoint1
public Point getControlPoint1()
GetscontrolPoint1
-
setControlPoint1
public void setControlPoint1(Point controlPoint1)
SetscontrolPoint1
-
getControlPoint2
public Point getControlPoint2()
GetscontrolPoint2
-
setControlPoint2
public void setControlPoint2(Point controlPoint2)
SetscontrolPoint2
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-