public class FixedColor extends Object implements GTUColorer, Serializable
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
GTUColorer.LegendEntry| Constructor and Description |
|---|
FixedColor(Color color)
Constructor.
|
FixedColor(Color color,
String name)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
getColor(GTU gtu)
Get the color, based on the Drawable object.
|
List<GTUColorer.LegendEntry> |
getLegend()
Return a list of legend entries (useful to make a legend of the colors used to render the GTUs).
|
String |
toString() |
public FixedColor(Color color, String name)
color - Color; the colorname - String; color namepublic FixedColor(Color color)
color - Color; the colorpublic List<GTUColorer.LegendEntry> getLegend()
getLegend in interface GTUColorerCopyright © 2014–2019 Delft University of Technology. All rights reserved.