public class SplitColorer extends Object implements org.opentrafficsim.core.gtu.animation.GTUColorer
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Field and Description |
|---|---|
(package private) static Color |
LEFT
Left color.
|
(package private) static Color |
OTHER
Other color.
|
(package private) static Color |
RIGHT
Right color.
|
(package private) static Color |
UNKNOWN
Unknown color.
|
| Constructor and Description |
|---|
SplitColorer() |
| Modifier and Type | Method and Description |
|---|---|
Color |
getColor(org.opentrafficsim.core.gtu.GTU gtu) |
List<org.opentrafficsim.core.gtu.animation.GTUColorer.LegendEntry> |
getLegend() |
String |
toString() |
static final Color LEFT
static final Color OTHER
static final Color RIGHT
static final Color UNKNOWN
public final Color getColor(org.opentrafficsim.core.gtu.GTU gtu)
getColor in interface org.opentrafficsim.core.gtu.animation.GTUColorerpublic final List<org.opentrafficsim.core.gtu.animation.GTUColorer.LegendEntry> getLegend()
getLegend in interface org.opentrafficsim.core.gtu.animation.GTUColorerCopyright © 2014–2018 Delft University of Technology. All rights reserved.