ti.swing.console
Class BgColorAttribute

java.lang.Object
  extended byti.swing.console.BgColorAttribute
All Implemented Interfaces:
Attribute

public class BgColorAttribute
extends java.lang.Object
implements Attribute

An attribute to modify the background color.

Version:
0.0
Author:
Rob Clark

Field Summary
static Attribute BLUE
           
static Attribute GREEN
           
static Attribute RED
           
 
Constructor Summary
BgColorAttribute(java.awt.Color color)
          Class Constructor.
 
Method Summary
 Region getRegion(int offset, int length)
          Get a region to apply this region.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RED

public static final Attribute RED

GREEN

public static final Attribute GREEN

BLUE

public static final Attribute BLUE
Constructor Detail

BgColorAttribute

public BgColorAttribute(java.awt.Color color)
Class Constructor.

Parameters:
color - the color
Method Detail

getRegion

public Region getRegion(int offset,
                        int length)
Get a region to apply this region.

Specified by:
getRegion in interface Attribute
Parameters:
offset - the offset to beginning of region
length - the length of the region
Returns:
a region