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

import java.awt.Color;
import java.util.HashMap;
import java.util.Map;

import org.openstreetmap.josm.plugins.graphview.core.property.RoadMaxheight;

/**
 * scheme using edge colors that depend on maximum height.
 */
public class MaxheightColorScheme extends FloatPropertyColorScheme {

    private static final Map<Float, Color> COLOR_MAP;

    static {
        COLOR_MAP = new HashMap<>();
        COLOR_MAP.put(0f, new Color(0, 0, 50));
        COLOR_MAP.put(10f, new Color(100, 100, 255));
        COLOR_MAP.put(30f, new Color(200, 200, 255));
    }

    public MaxheightColorScheme() {
        super(RoadMaxheight.class, COLOR_MAP, Color.WHITE);
    }
}
