gdl.base
Class ConnectionsColorMapper

java.lang.Object
  extended by gdl.base.ConnectionsColorMapper

public class ConnectionsColorMapper
extends java.lang.Object

This class hold a collections of colors and is able to map an integer color attribute to a java.awt.Color The colors are used in association with connections, so no very light colors are used.

Author:
Martin Suntinger

Constructor Summary
ConnectionsColorMapper()
           
 
Method Summary
 java.awt.Color getColor(int number)
          allows to retrieve a Color for a mapped integer color attribute value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionsColorMapper

public ConnectionsColorMapper()
Method Detail

getColor

public java.awt.Color getColor(int number)
allows to retrieve a Color for a mapped integer color attribute value. Currently, only integer values between 0 and 15 are supported, all other values will evaluate to black

Parameters:
number -
Returns:
a mapped color for the integer value