# Class Sorter.ColoredIntegerAdapter

public class ColoredIntegerAdapter
extends Sorter.AInteger
implements Sorter.IColoredObject

An IGraphicComparable that adds the knowledge of a "compare color" that can be used when two CraphicComparables are being compared.

##

aNumber
iColoredObject

##

ColoredIntegerAdapter (IColoredObject, AInteger)
  The constructor for this class

##

getColor ()
  Accessor method for the color property
getValue ()
  Accessor method for the stored value
setColor (Color)
  Accessor method for the color property

##

iColoredObject

    private IColoredObject iColoredObject

aNumber

    private AInteger aNumber

##

ColoredIntegerAdapter

    public  ColoredIntegerAdapter(IColoredObject iColoredObject, AInteger aNumber)

  The constructor for this class.

  Parameters:
    iColoredObject - The colored object to be associated with the AInteger object.
    aNumber - The AInteger object associated with the IColored object.

##

getValue

    public int getValue()

  Accessor method for the stored value.

  Returns:

setColor

    public void setColor(Color color)

  Accessor method for the color property.

  Parameters:
    color - The color to be set to.

getColor

    public Color getColor()

  Accessor method for the color property.

  Returns: