nl.tudelft.goal.ut2004.visualizer.map
Class MapColorGenerator
java.lang.Object
nl.tudelft.goal.ut2004.visualizer.map.MapColorGenerator
public class MapColorGenerator
- extends Object
Generator of various colors that are suitable for representation of agents in
the map. They have to unique, different from each other for user to
differentiate and nice to look at.
FIXME: Implement
- Author:
- Honza
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapColorGenerator
public MapColorGenerator()
getUniqueTeamColor
public MapColorGenerator.MapColor getUniqueTeamColor()
freeColor
public void freeColor(Color color)
- This is used to tell the generator that this particular color has been
freed and can be used again. Generator should try to generate colors so
the are as different as possible, so it can use similar shade (or even
same color).
- Parameters:
color
- Color that is no longer needed by map.
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.