net.sf.magicproject.chart
Class CardColor

java.lang.Object
  extended by net.sf.magicproject.chart.CardColor
All Implemented Interfaces:
java.lang.Comparable<IChartKey>, IChartKey

public class CardColor
extends java.lang.Object
implements IChartKey

Since:
0.93
Author:
Fabrice Daugan

Field Summary
static IChartKey UNKNOW_COLOR
           
 
Constructor Summary
CardColor(java.lang.String colorName, int colorValue)
          Create a new instance of this class.
 
Method Summary
 int compareTo(IChartKey o)
           
 IChartKey getDefault()
           
 int getIntegerKey()
          Return the integer key.
 void processAdd(java.util.List<IChartKey> workingKeys)
          Add this key to the specified list.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOW_COLOR

public static final IChartKey UNKNOW_COLOR
Constructor Detail

CardColor

public CardColor(java.lang.String colorName,
                 int colorValue)
Create a new instance of this class.

Parameters:
colorName -
colorValue -
Method Detail

toString

public java.lang.String toString()
Specified by:
toString in interface IChartKey
Overrides:
toString in class java.lang.Object

getDefault

public IChartKey getDefault()
Specified by:
getDefault in interface IChartKey
Returns:
the default value of this key type.

compareTo

public int compareTo(IChartKey o)
Specified by:
compareTo in interface java.lang.Comparable<IChartKey>

getIntegerKey

public int getIntegerKey()
Description copied from interface: IChartKey
Return the integer key.

Specified by:
getIntegerKey in interface IChartKey
Returns:
the integer key.

processAdd

public void processAdd(java.util.List<IChartKey> workingKeys)
Description copied from interface: IChartKey
Add this key to the specified list.

Specified by:
processAdd in interface IChartKey
Parameters:
workingKeys - the current key list.


Copyright © 2003-2007 Magic-Project. All Rights Reserved.