
package Sorter;

import java.awt.Color;

public class ColoredObject implements IColoredObject
{
	/**
	 * The color of the object.
	 */
	protected Color color = Color.blue;

	/**
	 * The constructor for this class.
	 * @param color The color of the object.
	 */
	public ColoredObject(Color color)
	{
		this.color = color;
	}

	/**
	 * Accessor method for the display color (from IGraphicComparable)
	 * @param color color to be set to.
	 */
	public void setColor(Color color)
	{
		this.color = color;
	}

	/**
	 * Accessor method for the display color (from IGraphicComparable)
	 * @return
	 */
	public Color getColor()
	{
		return (color);
	}
}

