cz.cuni.amis.nb.pogamut.unreal.map
Class MapColorGenerator

Package class diagram package MapColorGenerator
java.lang.Object
  extended by cz.cuni.amis.nb.pogamut.unreal.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

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.
 Color getUniqueColor()
          Create a new color according to specification (see class description)
 
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

getUniqueColor

public Color getUniqueColor()
Create a new color according to specification (see class description)

Returns:
unique pretty color

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 © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.