Class OnLineStrategy.UpsideComputingVisitor

java.lang.Object
org.openstreetmap.josm.gui.mappaint.styleelement.placement.OnLineStrategy.UpsideComputingVisitor
All Implemented Interfaces:
MapViewPath.PathSegmentConsumer
Enclosing class:
OnLineStrategy

A visitor that computes the side of the way that is the upper one for each segment and computes the dominant upper side of the way. This is used to always place at least 50% of the text correctly.