Generic Environment GUI Class Library

Class ColorBlock

java.lang.Object
  |
  +--ColorBlock
All Implemented Interfaces:
Locatable

public class ColorBlock
extends java.lang.Object
implements Locatable

Environment-Based Applications:
A ColorBlock object encapsulates a color for a colored cell in an environment.

Version:
1 September 2002
See Also:
Environment, Location

Constructor Summary
ColorBlock(java.awt.Color colorValue, Environment env, Location loc)
          Constructs a color block with the specified color.
 
Method Summary
 java.awt.Color color()
          Gets color value for color block.
 Location location()
          Gets color block's location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorBlock

public ColorBlock(java.awt.Color colorValue,
                  Environment env,
                  Location loc)
Constructs a color block with the specified color.
Parameters:
colorValue - the color that fills this color block
env - the environment holding this color block
loc - the location of the color block in env
Method Detail

color

public java.awt.Color color()
Gets color value for color block.

location

public Location location()
Gets color block's location.
Specified by:
location in interface Locatable
Returns:
the location of this color block in the environment

Generic Environment GUI Class Library

Copyright© 2003 Alyce Brady