edu.jhu.tmaj.client.arraybuilder.data
Class ColorDelegate

java.lang.Object
  extended by edu.jhu.tmaj.client.arraybuilder.data.ColorDelegate

public final class ColorDelegate
extends java.lang.Object


Constructor Summary
ColorDelegate(KeyValueGetRequest.KeyName keyName)
           
 
Method Summary
 java.awt.Color getColor(java.lang.Integer id)
          Gets a color for the supplied TissueTypeID.
 java.awt.Color getRandomColor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorDelegate

public ColorDelegate(KeyValueGetRequest.KeyName keyName)
Method Detail

getColor

public java.awt.Color getColor(java.lang.Integer id)
Gets a color for the supplied TissueTypeID. The color may have been predefined by the database admin in the KeyValues table or if it wasn't there, a random color will be returned.


getRandomColor

public java.awt.Color getRandomColor()