iText 8.0.2 API
|
As subpath is a part of a path comprising a sequence of connected segments. More...
Public Member Functions |
|
Subpath () | |
Creates a new SubPath instance. More... |
|
Subpath (iText.Kernel.Geom.Subpath subpath) | |
Copy constructor. More... |
|
Subpath (Point startPoint) | |
Constructs a new subpath starting at the given point. More... |
|
Subpath (float startPointX, float startPointY) | |
Constructs a new subpath starting at the given point. More... |
|
virtual void | SetStartPoint (Point startPoint) |
Sets the start point of the subpath. More... |
|
virtual void | SetStartPoint (float x, float y) |
Sets the start point of the subpath. More... |
|
virtual Point | GetStartPoint () |
|
|
virtual Point | GetLastPoint () |
|
|
virtual void | AddSegment (IShape segment) |
Adds a segment to the subpath. More... |
|
virtual IList< IShape > | GetSegments () |
virtual bool | IsEmpty () |
Checks whether subpath is empty or not. More... |
|
virtual bool | IsSinglePointOpen () |
virtual bool | IsSinglePointClosed () |
virtual bool | IsClosed () |
Returns a boolean value indicating whether the subpath must be closed or not. More... |
|
virtual void | SetClosed (bool closed) |
See IsClosed() More... |
|
virtual bool | IsDegenerate () |
Returns a boolean indicating whether the subpath is degenerate or not. More... |
|
virtual IList< Point > | GetPiecewiseLinearApproximation () |
As subpath is a part of a path comprising a sequence of connected segments.
|
inline |
Creates a new SubPath instance.
|
inline |
|
inline |
Constructs a new subpath starting at the given point.
startPoint | the point this subpath starts at |
|
inline |
Constructs a new subpath starting at the given point.
startPointX | x-coordinate of the start point of subpath |
startPointY | y-coordinate of the start point of subpath |
|
inlinevirtual |
Adds a segment to the subpath.
Adds a segment to the subpath. Note: each new segment shall start at the end of the previous segment.
segment | new segment. |
|
inlinevirtual |
System.Collections.IList
|
inlinevirtual |
System.Collections.IList
|
inlinevirtual |
Returns a boolean
value indicating whether the subpath must be closed or not.
Returns a boolean
value indicating whether the subpath must be closed or not. Ignore this value if the subpath is a rectangle because in this case it is already closed (of course if you paint the path using re
operator)
boolean
value indicating whether the path must be closed or not.
|
inlinevirtual |
Returns a boolean
indicating whether the subpath is degenerate or not.
Returns a boolean
indicating whether the subpath is degenerate or not. A degenerate subpath is the subpath consisting of a single-point closed path or of two or more points at the same coordinates.
boolean
value indicating whether the path is degenerate or not.
|
inlinevirtual |
Checks whether subpath is empty or not.
|
inlinevirtual |
true
if this subpath contains only one point and it is closed, false
otherwise
|
inlinevirtual |
true
if this subpath contains only one point and it is not closed, false
otherwise
|
inlinevirtual |
See IsClosed()
closed | boolean value indicating whether the path is closed or not. |
|
inlinevirtual |
Sets the start point of the subpath.
x | x-coordinate of the start pint |
y | y-coordinate of the start pint |
|
inlinevirtual |
Sets the start point of the subpath.
startPoint | the point this subpath starts at |