1 package org.opentrafficsim.editor.extensions.map;
2
3 import java.awt.Color;
4
5 import org.opentrafficsim.draw.road.TrafficLightAnimation.TrafficLightData;
6 import org.opentrafficsim.editor.OtsEditor;
7 import org.opentrafficsim.editor.XsdTreeNode;
8
9
10
11
12
13
14
15
16
17 public class MapTrafficLightData extends MapLaneBasedObjectData implements TrafficLightData
18 {
19
20
21 private static final long serialVersionUID = 20240212L;
22
23
24
25
26
27
28
29 public MapTrafficLightData(final EditorMap map, final XsdTreeNode node, final OtsEditor editor)
30 {
31 super(map, node, editor);
32 setLinkNode(getNode().getParent());
33 }
34
35
36 @Override
37 public Color getColor()
38 {
39 return Color.RED;
40 }
41
42
43 @Override
44 public String toString()
45 {
46 return "Traffic light " + getId();
47 }
48
49 }