// License: GPL. For details, see LICENSE file.
package org.openstreetmap.josm.plugins.alignways;

import java.awt.Color;
import java.awt.Point;

import org.openstreetmap.josm.gui.MapView;

/**
 * @author tilusnet &lt;tilusnet@gmail.com&gt; The basic segment treated as reference.
 *
 */
public class AlignWaysRefSegment extends AlignWaysSegment {

    // Note: segment may be null. This is normal.

    public AlignWaysRefSegment(MapView mapview, Point p)
    throws IllegalArgumentException {
        super(mapview, p);
        setSegment(getNearestWaySegment(p));
        segmentColor = Color.GREEN;

    }

}
