private class MapViewPath.ClampingPathVisitor extends MapViewPath.AbstractMapPathVisitor
Modifier and Type | Field and Description |
---|---|
private MapViewState.MapViewRectangle |
clip |
private MapViewPath.PathSegmentConsumer |
consumer |
private MapViewState.MapViewPoint |
cursor |
private boolean |
cursorIsActive |
private double |
strokeLength |
protected double |
strokeProgress |
Constructor and Description |
---|
ClampingPathVisitor(MapViewState.MapViewRectangle clip,
double strokeLength,
MapViewPath.PathSegmentConsumer consumer)
Create a new
MapViewPath.ClampingPathVisitor |
Modifier and Type | Method and Description |
---|---|
private MapViewState.MapViewPoint |
alignStrokeOffset(MapViewState.MapViewPoint entry,
MapViewState.MapViewPoint originalStart) |
(package private) void |
visitLineTo(MapViewState.MapViewPoint next) |
(package private) void |
visitMoveTo(MapViewState.MapViewPoint point) |
visitClose, visitLineTo, visitMoveTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visit
private final MapViewState.MapViewRectangle clip
private final MapViewPath.PathSegmentConsumer consumer
protected double strokeProgress
private final double strokeLength
private MapViewState.MapViewPoint cursor
private boolean cursorIsActive
ClampingPathVisitor(MapViewState.MapViewRectangle clip, double strokeLength, MapViewPath.PathSegmentConsumer consumer)
MapViewPath.ClampingPathVisitor
clip
- View clip rectanglestrokeLength
- Total length of a stroke sequenceconsumer
- The consumer to notify of the path segments.void visitMoveTo(MapViewState.MapViewPoint point)
visitMoveTo
in class MapViewPath.AbstractMapPathVisitor
void visitLineTo(MapViewState.MapViewPoint next)
visitLineTo
in class MapViewPath.AbstractMapPathVisitor
private MapViewState.MapViewPoint alignStrokeOffset(MapViewState.MapViewPoint entry, MapViewState.MapViewPoint originalStart)