nl.tudelft.goal.ut2004.visualizer.map
Class MapColorGenerator

Package class diagram package MapColorGenerator
java.lang.Object
  extended by 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

Nested Class Summary
 class MapColorGenerator.MapColor
           
 
Constructor Summary
MapColorGenerator()
           
 
Method Summary
 void freeColor(Color color)
          This is used to tell the generator that this particular color has been freed and can be used again.
 MapColorGenerator.MapColor getUniqueTeamColor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapColorGenerator

public MapColorGenerator()
Method Detail

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.