hu.midori.kosmos.server.util
Class ColorCodedKey

java.lang.Object
  extended by hu.midori.kosmos.server.util.ColorCodedKey
All Implemented Interfaces:
java.lang.Comparable

public class ColorCodedKey
extends java.lang.Object
implements java.lang.Comparable

Key for color coded pie sections. Wraps immutable label and color values.

Version:
$Id$
Author:
Aron Gombas

Constructor Summary
ColorCodedKey(java.lang.String label, java.awt.Color color)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 java.awt.Color getColor()
           
 java.lang.String getLabel()
           
 java.lang.String toString()
          Ensures that only label string will appear in the charts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColorCodedKey

public ColorCodedKey(java.lang.String label,
                     java.awt.Color color)
Method Detail

getLabel

public java.lang.String getLabel()

getColor

public java.awt.Color getColor()

toString

public java.lang.String toString()
Ensures that only label string will appear in the charts.

Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable