becker.robots
Interface IColor

All Known Implementing Classes:
CircleIcon, Robot, RobotIcon, RobotRC, RobotSE, ShapeIcon, WallIcon

public interface IColor

An interface to add a color property to various robot entities.

Author:
Byron Weber Becker

Method Summary
 Color getColor()
          Return this object's current color.
 double getTransparency()
          Get this object's current transparency.
 void setColor(Color aColor)
          Set the color for this object
 void setTransparency(double trans)
          Set the transparency for this object; that is, the degree to which it permits objects under it show through.
 

Method Detail

getColor

Color getColor()
Return this object's current color.


setColor

void setColor(Color aColor)
Set the color for this object

Parameters:
aColor - the new color.

getTransparency

double getTransparency()
Get this object's current transparency.

Returns:
A number between 0.0 (fully opaque) and 1.0 (fully transparent).

setTransparency

void setTransparency(double trans)
Set the transparency for this object; that is, the degree to which it permits objects under it show through.

Parameters:
trans - A number between 0.0 (fully opaque) and 1.0 (fully transparent).