de.unifreiburg.twodeedoo.world.demo
Class Color

java.lang.Object
  extended by de.unifreiburg.twodeedoo.world.demo.Color
All Implemented Interfaces:
IColor

public class Color
extends java.lang.Object
implements IColor


Constructor Summary
Color(int rgba)
          Creates a color implementing IColor.
 
Method Summary
 int thisColor()
          Provides the color represented by this class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Color

public Color(int rgba)
Creates a color implementing IColor.

Parameters:
rgba - the combined RGBA components
Method Detail

thisColor

public int thisColor()
Description copied from interface: IColor
Provides the color represented by this class.

Specified by:
thisColor in interface IColor
Returns:
an integer value representing a color in ARGB format The most significant 8 bits represent the alpha value, the second most significant 8 bits represent the red value and so on.