line styles of Wien

This commit is contained in:
Andreas Schildbach 2012-08-12 22:02:29 +02:00
parent 509d8c5861
commit a31aa02fc8

View file

@ -17,6 +17,11 @@
package de.schildbach.pte;
import java.util.HashMap;
import java.util.Map;
import de.schildbach.pte.dto.Style;
/**
* @author Andreas Schildbach
*/
@ -43,4 +48,27 @@ public class VorProvider extends AbstractEfaProvider
return false;
}
private static final Map<String, Style> LINES = new HashMap<String, Style>();
static
{
// Wien
LINES.put("UU1", new Style(Style.Shape.RECT, Style.parseColor("#c6292a"), Style.WHITE));
LINES.put("UU2", new Style(Style.Shape.RECT, Style.parseColor("#a82783"), Style.WHITE));
LINES.put("UU3", new Style(Style.Shape.RECT, Style.parseColor("#f39315"), Style.WHITE));
LINES.put("UU4", new Style(Style.Shape.RECT, Style.parseColor("#23a740"), Style.WHITE));
LINES.put("UU6", new Style(Style.Shape.RECT, Style.parseColor("#be762c"), Style.WHITE));
}
@Override
public Style lineStyle(final String line)
{
final Style style = LINES.get(line);
if (style != null)
return style;
else
return super.lineStyle(line);
}
}