mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 08:49:58 +00:00
extracted lineColors to common superclass
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@232 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
7cb981f289
commit
c5016a846b
5 changed files with 34 additions and 70 deletions
|
@ -792,11 +792,6 @@ public class MvvProvider extends AbstractEfaProvider
|
|||
|
||||
static
|
||||
{
|
||||
LINES.put("I", new int[] { Color.WHITE, Color.RED, Color.RED }); // generic
|
||||
LINES.put("R", new int[] { Color.WHITE, Color.RED, Color.RED }); // generic
|
||||
LINES.put("S", new int[] { Color.parseColor("#006e34"), Color.WHITE }); // generic
|
||||
LINES.put("U", new int[] { Color.parseColor("#003090"), Color.WHITE }); // generic
|
||||
|
||||
LINES.put("SS1", new int[] { Color.parseColor("#00ccff"), Color.WHITE });
|
||||
LINES.put("SS2", new int[] { Color.parseColor("#66cc00"), Color.WHITE });
|
||||
LINES.put("SS3", new int[] { Color.parseColor("#880099"), Color.WHITE });
|
||||
|
@ -833,8 +828,13 @@ public class MvvProvider extends AbstractEfaProvider
|
|||
LINES.put("UU6", new int[] { Color.parseColor("#0000cc"), Color.WHITE });
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[] lineColors(final String line)
|
||||
{
|
||||
return LINES.get(line);
|
||||
final int[] lineColors = LINES.get(line);
|
||||
if (lineColors != null)
|
||||
return lineColors;
|
||||
else
|
||||
return super.lineColors(line);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue