gdl.base
Class NodeColorMapper

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

public class NodeColorMapper
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 nodes.

Author:
Martin Suntinger

Constructor Summary
NodeColorMapper()
           
 
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

NodeColorMapper

public NodeColorMapper()
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