Class ParallelWayAction

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

    public class ParallelWayAction
    extends MapMode
    implements ModifierExListener
    MapMode for making parallel ways.

    All calculations are done in projected coordinates.

    TODO:

    == Functionality ==

    1. Use selected nodes as split points for the selected ways.

      The ways containing the selected nodes will be split and only the "inner" parts will be copied

    2. Enter exact offset
    3. Improve snapping
    4. Visual cues could be better
    5. (long term) Parallelize and adjust offsets of existing ways
    == Code quality ==
    1. The mode, flags, and modifiers might be updated more than necessary.

      Not a performance problem, but better if they where more centralized

    2. Extract generic MapMode services into a super class and/or utility class
    3. Maybe better to simply draw our own source way highlighting?
    Current code doesn't not take into account that ways might been highlighted by other than us. Don't think that situation should ever happen though.
    See Also:
    Serialized Form