Environment Plotter

Class ColorBlock

ColorBlock

public class ColorBlock

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.
 

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.
Returns:
the location of this color block in the environment

Environment Plotter