Package | Description |
---|---|
org.openstreetmap.josm.actions.mapmode |
Provides the classes for JOSM
map modes . |
org.openstreetmap.josm.data.osm.visitor.paint |
Provides the classes for painting (rendering) OSM primitives on the map.
|
org.openstreetmap.josm.gui.draw |
Provides GUI classes for 2D drawing in the map.
|
org.openstreetmap.josm.gui.mappaint.styleelement.placement |
Label placement strategy for map paint styles.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ImproveWayAccuracyAction.drawIntersectingWayHelperLines(MapView mv,
MapViewPath b) |
Modifier and Type | Method and Description |
---|---|
private MapViewPath |
StyledMapRenderer.getPath(IWay<?> w) |
private MapViewPath |
StyledMapRenderer.shapeEastNorthToMapView(java.awt.geom.Path2D.Double shape)
Convert shape in EastNorth coordinates to MapViewPath and remove invisible parts.
|
Modifier and Type | Method and Description |
---|---|
private void |
StyledMapRenderer.computeFill(java.awt.Shape shape,
java.lang.Float extent,
MapViewPath pfClip,
float mitterLimit)
Fill the given shape.
|
private void |
StyledMapRenderer.displaySegments(MapViewPath path,
java.awt.geom.Path2D orientationArrows,
java.awt.geom.Path2D onewayArrows,
java.awt.geom.Path2D onewayArrowsCasing,
java.awt.Color color,
java.awt.BasicStroke line,
java.awt.BasicStroke dashes,
java.awt.Color dashedColor) |
protected void |
StyledMapRenderer.drawArea(MapViewPath path,
java.awt.Color color,
MapImage fillImage,
java.lang.Float extent,
MapViewPath pfClip,
boolean disabled)
Worker function for drawing areas.
|
private void |
StyledMapRenderer.drawPathHighlight(MapViewPath path,
java.awt.BasicStroke line)
highlights a given GeneralPath using the settings from BasicStroke to match the line's
style.
|
Modifier and Type | Method and Description |
---|---|
private void |
StyledMapRenderer.forEachPolygon(IPrimitive osm,
java.util.function.Consumer<MapViewPath> consumer)
Calls a consumer for each path of the area shape-
|
Modifier and Type | Field and Description |
---|---|
private MapViewPath |
MapViewPath.OffsetPathVisitor.collector |
Modifier and Type | Method and Description |
---|---|
MapViewPath |
MapViewPath.append(java.lang.Iterable<? extends ILatLon> nodes,
boolean connect)
Append a list of nodes
|
MapViewPath |
MapViewPath.appendClosed(java.lang.Iterable<? extends ILatLon> nodes,
boolean connect)
Append a list of nodes as closed way.
|
(package private) MapViewPath |
MapViewPath.OffsetPathVisitor.getPath() |
MapViewPath |
MapViewPath.lineTo(EastNorth eastNorth)
Draw a line to the position.
|
MapViewPath |
MapViewPath.lineTo(ILatLon n)
Draw a line to the node.
|
MapViewPath |
MapViewPath.lineTo(MapViewState.MapViewPoint p) |
MapViewPath |
MapViewPath.moveTo(EastNorth eastNorth)
Move the cursor to the given position.
|
MapViewPath |
MapViewPath.moveTo(ILatLon n)
Move the cursor to the given node.
|
MapViewPath |
MapViewPath.moveTo(MapViewState.MapViewPoint p) |
MapViewPath |
MapViewPath.offset(double viewOffset)
Create a new
MapViewPath that is the same as the current one except that it is offset in the view. |
MapViewPath |
MapViewPath.shapeAround(EastNorth eastNorth,
SymbolShape symbol,
double size)
Add the given shape centered around the current position.
|
MapViewPath |
MapViewPath.shapeAround(ILatLon p1,
SymbolShape symbol,
double size)
Add the given shape centered around the current node.
|
MapViewPath |
MapViewPath.shapeAround(MapViewState.MapViewPoint p,
SymbolShape symbol,
double size) |
Modifier and Type | Method and Description |
---|---|
MapViewPositionAndRotation |
CompletelyInsideAreaStrategy.findLabelPlacement(MapViewPath path,
java.awt.geom.Rectangle2D nb) |
MapViewPositionAndRotation |
PositionForAreaStrategy.findLabelPlacement(MapViewPath path,
java.awt.geom.Rectangle2D nb)
Finds the correct position of a label / icon inside the area.
|
MapViewPositionAndRotation |
PartiallyInsideAreaStrategy.findLabelPlacement(MapViewPath path,
java.awt.geom.Rectangle2D nb) |
MapViewPositionAndRotation |
OnLineStrategy.findLabelPlacement(MapViewPath path,
java.awt.geom.Rectangle2D nb) |
private static java.util.Optional<OnLineStrategy.HalfSegment> |
OnLineStrategy.findOptimalWayPosition(java.awt.geom.Rectangle2D rect,
MapViewPath path) |
default java.util.List<java.awt.font.GlyphVector> |
PositionForAreaStrategy.generateGlyphVectors(MapViewPath path,
java.awt.geom.Rectangle2D nb,
java.util.List<java.awt.font.GlyphVector> gvs,
boolean isDoubleTranslationBug)
Generates the transformed glyph vectors for the given text.
|
java.util.List<java.awt.font.GlyphVector> |
OnLineStrategy.generateGlyphVectors(MapViewPath path,
java.awt.geom.Rectangle2D nb,
java.util.List<java.awt.font.GlyphVector> gvs,
boolean isDoubleTranslationBug) |