Source of Colourable.java


  1: import java.awt.Color;

  3: /** 
  4:  * An interface with methods appropriate to something that has a changeable
  5:  * colour.
  6:  *
  7:  * @author Mark Young (A00000000)
  8:  */
  9: public interface Colourable {

 11:     /**
 12:      * Change this object's colour. 
 13:      *
 14:      * @param reqColour the new colour
 15:      */
 16:     public void setColor(Color reqColour);

 18:     /**
 19:      * Return this object's colour. 
 20:      *
 21:      * @return the object's colour
 22:      */
 23:     public Color getColor();

 25: }