Class PathSegment
- java.lang.Object
-
- com.pdf_tools.fourheights.pdftoolbox.internal.NativeBase
-
- com.pdf_tools.fourheights.pdftoolbox.pdf.content.PathSegment
-
public class PathSegment extends NativeBase
-
-
Field Summary
Fields Modifier and Type Field Description Point
controlPoint1
The first Bezier control point.Point
controlPoint2
The second Bezier control point.Point
endPoint
The end point of the path segment.PathSegmentType
segmentType
Defines 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 boolean
equals(java.lang.Object obj)
Point
getControlPoint1()
GetscontrolPoint1
Point
getControlPoint2()
GetscontrolPoint2
Point
getEndPoint()
GetsendPoint
PathSegmentType
getSegmentType()
GetssegmentType
int
hashCode()
void
setControlPoint1(Point controlPoint1)
SetscontrolPoint1
void
setControlPoint2(Point controlPoint2)
SetscontrolPoint2
void
setEndPoint(Point endPoint)
SetsendPoint
void
setSegmentType(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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-