ti.swing.console
Class FgColorAttribute
java.lang.Object
ti.swing.console.FgColorAttribute
- All Implemented Interfaces:
- Attribute
- public class FgColorAttribute
- extends java.lang.Object
- implements Attribute
An attribute to modify the foreground (ie text) color.
- Version:
- 0.0
- Author:
- Rob Clark
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 |
RED
public static final Attribute RED
GREEN
public static final Attribute GREEN
BLUE
public static final Attribute BLUE
FgColorAttribute
public FgColorAttribute(java.awt.Color color)
- Class Constructor.
- Parameters:
color
- the color
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 regionlength
- the length of the region
- Returns:
- a region