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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MapViewState.MapViewRectangleprivate final MapViewPath.PathSegmentConsumerprivate MapViewState.MapViewPointprivate booleanprivate final doubleprotected double -
Constructor Summary
ConstructorsConstructorDescriptionClampingPathVisitor(MapViewState.MapViewRectangle clip, double strokeLength, MapViewPath.PathSegmentConsumer consumer) Create a newMapViewPath.ClampingPathVisitor -
Method Summary
Modifier and TypeMethodDescriptionprivate MapViewState.MapViewPointalignStrokeOffset(MapViewState.MapViewPoint entry, MapViewState.MapViewPoint originalStart) (package private) void(package private) voidMethods inherited from class org.openstreetmap.josm.gui.draw.MapViewPath.AbstractMapPathVisitor
visitClose, visitLineTo, visitMoveToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openstreetmap.josm.gui.draw.MapViewPath.PathVisitor
visit
-
Field Details
-
clip
-
consumer
-
strokeProgress
-
strokeLength
-
cursor
-
cursorIsActive
-
-
Constructor Details
-
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 Details
-
visitMoveTo
- Specified by:
visitMoveToin classMapViewPath.AbstractMapPathVisitor
-
visitLineTo
- Specified by:
visitLineToin classMapViewPath.AbstractMapPathVisitor
-
alignStrokeOffset
private MapViewState.MapViewPoint alignStrokeOffset(MapViewState.MapViewPoint entry, MapViewState.MapViewPoint originalStart)
-