Package org.openstreetmap.josm.gui.draw
Class MapViewPath.ClampingPathVisitor
- java.lang.Object
-
- org.openstreetmap.josm.gui.draw.MapViewPath.AbstractMapPathVisitor
-
- org.openstreetmap.josm.gui.draw.MapViewPath.ClampingPathVisitor
-
- All Implemented Interfaces:
MapViewPath.PathVisitor
- Enclosing class:
- MapViewPath
private class MapViewPath.ClampingPathVisitor extends MapViewPath.AbstractMapPathVisitor
-
-
Field Summary
Fields Modifier and Type Field Description private MapViewState.MapViewRectangleclipprivate MapViewPath.PathSegmentConsumerconsumerprivate MapViewState.MapViewPointcursorprivate booleancursorIsActiveprivate doublestrokeLengthprotected doublestrokeProgress
-
Constructor Summary
Constructors Constructor Description ClampingPathVisitor(MapViewState.MapViewRectangle clip, double strokeLength, MapViewPath.PathSegmentConsumer consumer)Create a newMapViewPath.ClampingPathVisitor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private MapViewState.MapViewPointalignStrokeOffset(MapViewState.MapViewPoint entry, MapViewState.MapViewPoint originalStart)(package private) voidvisitLineTo(MapViewState.MapViewPoint next)(package private) voidvisitMoveTo(MapViewState.MapViewPoint point)-
Methods inherited from class org.openstreetmap.josm.gui.draw.MapViewPath.AbstractMapPathVisitor
visitClose, visitLineTo, visitMoveTo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openstreetmap.josm.gui.draw.MapViewPath.PathVisitor
visit
-
-
-
-
Field Detail
-
clip
private final MapViewState.MapViewRectangle clip
-
consumer
private final MapViewPath.PathSegmentConsumer consumer
-
strokeProgress
protected double strokeProgress
-
strokeLength
private final double strokeLength
-
cursor
private MapViewState.MapViewPoint cursor
-
cursorIsActive
private boolean cursorIsActive
-
-
Constructor Detail
-
ClampingPathVisitor
ClampingPathVisitor(MapViewState.MapViewRectangle clip, double strokeLength, MapViewPath.PathSegmentConsumer consumer)
Create a newMapViewPath.ClampingPathVisitor- Parameters:
clip- View clip rectanglestrokeLength- Total length of a stroke sequenceconsumer- The consumer to notify of the path segments.
-
-
Method Detail
-
visitMoveTo
void visitMoveTo(MapViewState.MapViewPoint point)
- Specified by:
visitMoveToin classMapViewPath.AbstractMapPathVisitor
-
visitLineTo
void visitLineTo(MapViewState.MapViewPoint next)
- Specified by:
visitLineToin classMapViewPath.AbstractMapPathVisitor
-
alignStrokeOffset
private MapViewState.MapViewPoint alignStrokeOffset(MapViewState.MapViewPoint entry, MapViewState.MapViewPoint originalStart)
-
-