Uses of Class
org.openstreetmap.josm.gui.draw.MapViewPath
Packages that use MapViewPath
Package
Description
Provides the classes for JOSM
map modes.Provides the classes for painting (rendering) OSM primitives on the map.
Provides GUI classes for 2D drawing in the map.
Label placement strategy for map paint styles.
-
Uses of MapViewPath in org.openstreetmap.josm.actions.mapmode
Methods in org.openstreetmap.josm.actions.mapmode with parameters of type MapViewPathModifier and TypeMethodDescriptionprotected voidImproveWayAccuracyAction.drawIntersectingWayHelperLines(MapView mv, MapViewPath b) -
Uses of MapViewPath in org.openstreetmap.josm.data.osm.visitor.paint
Methods in org.openstreetmap.josm.data.osm.visitor.paint that return MapViewPathModifier and TypeMethodDescriptionprivate MapViewPathprivate MapViewPathStyledMapRenderer.shapeEastNorthToMapView(Path2D.Double shape) Convert shape in EastNorth coordinates to MapViewPath and remove invisible parts.Methods in org.openstreetmap.josm.data.osm.visitor.paint with parameters of type MapViewPathModifier and TypeMethodDescriptionprivate voidStyledMapRenderer.computeFill(Shape shape, Float extent, MapViewPath pfClip, float mitterLimit) Fill the given shape.private voidStyledMapRenderer.displaySegments(MapViewPath path, Path2D orientationArrows, Path2D onewayArrows, Path2D onewayArrowsCasing, Color color, BasicStroke line, BasicStroke dashes, Color dashedColor) protected voidStyledMapRenderer.drawArea(MapViewPath area, Color color, MapImage fillImage, Float extent, MapViewPath pfClip, boolean disabled) Worker function for drawing areas.private voidStyledMapRenderer.drawPathHighlight(MapViewPath path, BasicStroke line) highlights a given GeneralPath using the settings from BasicStroke to match the line's style.Method parameters in org.openstreetmap.josm.data.osm.visitor.paint with type arguments of type MapViewPathModifier and TypeMethodDescriptionprivate voidStyledMapRenderer.forEachPolygon(IPrimitive osm, Consumer<MapViewPath> consumer) Calls a consumer for each path of the area shape- -
Uses of MapViewPath in org.openstreetmap.josm.gui.draw
Fields in org.openstreetmap.josm.gui.draw declared as MapViewPathModifier and TypeFieldDescriptionprivate final MapViewPathMapViewPath.OffsetPathVisitor.collectorMethods in org.openstreetmap.josm.gui.draw that return MapViewPathModifier and TypeMethodDescriptionAppend a list of nodesMapViewPath.appendClosed(Iterable<? extends ILatLon> nodes, boolean connect) Append a list of nodes as closed way.(package private) MapViewPathMapViewPath.OffsetPathVisitor.getPath()Draw a line to the position.Draw a line to the node.MapViewPath.lineTo(MapViewState.MapViewPoint p) Move the cursor to the given position.Move the cursor to the given node.MapViewPath.moveTo(MapViewState.MapViewPoint p) MapViewPath.offset(double viewOffset) Create a newMapViewPaththat is the same as the current one except that it is offset in the view.MapViewPath.shapeAround(EastNorth eastNorth, SymbolShape symbol, double size) Add the given shape centered around the current position.MapViewPath.shapeAround(ILatLon p1, SymbolShape symbol, double size) Add the given shape centered around the current node.MapViewPath.shapeAround(MapViewState.MapViewPoint p, SymbolShape symbol, double size) -
Uses of MapViewPath in org.openstreetmap.josm.gui.mappaint.styleelement.placement
Methods in org.openstreetmap.josm.gui.mappaint.styleelement.placement with parameters of type MapViewPathModifier and TypeMethodDescriptionCompletelyInsideAreaStrategy.findLabelPlacement(MapViewPath path, Rectangle2D nb) OnLineStrategy.findLabelPlacement(MapViewPath path, Rectangle2D nb) PartiallyInsideAreaStrategy.findLabelPlacement(MapViewPath path, Rectangle2D nb) PositionForAreaStrategy.findLabelPlacement(MapViewPath path, Rectangle2D nb) Finds the correct position of a label / icon inside the area.private static Optional<OnLineStrategy.HalfSegment>OnLineStrategy.findOptimalWayPosition(Rectangle2D rect, MapViewPath path) OnLineStrategy.generateGlyphVectors(MapViewPath path, Rectangle2D nb, List<GlyphVector> gvs, boolean isDoubleTranslationBug) default List<GlyphVector>PositionForAreaStrategy.generateGlyphVectors(MapViewPath path, Rectangle2D nb, List<GlyphVector> gvs, boolean isDoubleTranslationBug) Generates the transformed glyph vectors for the given text.