public class FixedColor extends Object implements org.opentrafficsim.core.gtu.animation.GTUColorer, Serializable
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
FixedColor(Color color)
Constructor.
|
FixedColor(Color color,
String name)
Constructor.
|
| 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() |
public FixedColor(Color color, String name)
color - Color; the colorname - String; color namepublic FixedColor(Color color)
color - Color; the colorpublic Color getColor(org.opentrafficsim.core.gtu.GTU gtu)
getColor in interface org.opentrafficsim.core.gtu.animation.GTUColorerpublic 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.