Class AlignInLineAction

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, Destroyable

    public final class AlignInLineAction
    extends JosmAction
    Aligns all selected nodes into a straight line (useful for roads that should be straight, but have side roads and therefore need multiple nodes)
     Case 1: 1 or 2 ways selected and no nodes selected: align nodes of ways taking care of intersection.
     Case 2: Single node selected and no ways selected: align this node relative to all referrer ways (2 at most).
     Case 3: Single node and ways selected: align this node relative to selected ways.
     Case 4.1: Only nodes selected, part of a non-closed way: align these nodes on the line passing through the
       extremity nodes (most distant in the way sequence). See https://josm.openstreetmap.de/ticket/9605#comment:3
     Case 4.2: Only nodes selected, part of a closed way: align these nodes on the line passing through the most distant nodes.
     Case 4.3: Only nodes selected, part of multiple ways: align these nodes on the line passing through the most distant nodes.
     
    See Also:
    Serialized Form