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. |
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 blockenv
- the environment holding this color blockloc
- the location of the color block in env
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