| java.lang.Object ti.swing.console.Region
Region | abstract public class Region (Code) | | A region gets mapped over a section of a character stream. It can be used
to modify the state of the graphics as the
Console is being rendered.
It can also be used to just track a section of the character stream.
A region is immutable. It is not possible to modify the offset or length of
a region once it is created.
author: Rob Clark version: 0.0 |
Constructor Summary | |
protected | Region(int offset, int length) Region class constructor. |
Method Summary | |
public void | enter(ConsoleGraphics g) Modify the state of the graphics, for example to modify the state of
the graphics if this region applies some attribute. | final int | getCount() | public int | getEnd() Get the offset of the end of this region, exclusive. | public int | getLength() Get the length of this region. | public int | getStart() Get the offset of the start of this region, inclusive. | public void | leave(ConsoleGraphics g) Modify the state of the graphics, for example to restore the original
graphics state if this region applies some attribute. |
Region | protected Region(int offset, int length)(Code) | | Region class constructor.
Parameters: offset - the offset into the character stream where thisregion begins Parameters: length - the length of this region |
enter | public void enter(ConsoleGraphics g)(Code) | | Modify the state of the graphics, for example to modify the state of
the graphics if this region applies some attribute.
Parameters: g - the graphics |
getCount | final int getCount()(Code) | | |
getEnd | public int getEnd()(Code) | | Get the offset of the end of this region, exclusive.
the end offset |
getLength | public int getLength()(Code) | | Get the length of this region.
the length, in number of characters. |
getStart | public int getStart()(Code) | | Get the offset of the start of this region, inclusive.
the start offset |
leave | public void leave(ConsoleGraphics g)(Code) | | Modify the state of the graphics, for example to restore the original
graphics state if this region applies some attribute.
Parameters: g - the graphics |
|
|