Berlin bus shapes

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@892 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach@gmail.com 2012-01-21 16:46:26 +00:00
parent 1f02884075
commit fa9bc2a01c

View file

@ -1039,13 +1039,21 @@ public final class BvgProvider extends AbstractHafasProvider
LINES.put("RRB93", new Style(Shape.RECT, Style.parseColor("#A7653F"), Style.WHITE));
}
private static final Style STYLE_BUS_NIGHT = new Style(Shape.RECT, Style.BLACK, Style.WHITE);
private static final Style STYLE_BUS_DAY = new Style(Shape.RECT, Style.parseColor("#993399"), Style.WHITE);
@Override
public Style lineStyle(final String line)
{
final Style style = LINES.get(line);
if (style != null)
return style;
else
if (line.startsWith("BN"))
return STYLE_BUS_NIGHT;
if (line.startsWith("B"))
return STYLE_BUS_DAY;
return super.lineStyle(line);
}