public interface ShapeSegmenter
Modifier and Type | Interface and Description |
---|---|
static class |
ShapeSegmenter.Builder |
static class |
ShapeSegmenter.SpanPathPair<S extends PositionSpan> |
Modifier and Type | Method and Description |
---|---|
<S extends PositionSpan> |
segmentIndividualSpan(Shape shape,
S span) |
<S extends PositionSpan> |
segmentPath(Shape shape,
java.util.List<S> spans)
Divides the given path at the boundaries of the given spans, subdividing individual path
segments when a span's boundary falls in the middle.
|
<S extends PositionSpan> java.util.List<ShapeSegmenter.SpanPathPair<S>> segmentPath(Shape shape, java.util.List<S> spans)
S
- The type of PositionSpan used to segment the path. The declared type of the spans returned
will be the same as the spans given.shape
- Shape to segment.spans
- Spans used to segment the path.<S extends PositionSpan> ShapeSegmenter.SpanPathPair<S> segmentIndividualSpan(Shape shape, S span)