DataCell

DataCell

The DataCell object provides information about a particular position on a terminal screen.

Methods

getPosition() → {Position}

Returns the position of this cell on the screen.

Returns:
  • the position of this cell
Type
Position

getChar() → {String}

Returns the character associated with this cell

Returns:
  • the character associated with this cell
Type
String

getAttributes() → {AttributeSet}

Returns the set of attributes specified for this data cell instance.

Returns:
  • the set of attributes for this data cell instance
Type
AttributeSet

getForegroundColor() → {Number}

Returns the foreground color for this data cell

Returns:
  • the foreground color, as defined in the Color object, for this data cell
Type
Number

getBackgroundColor() → {Number}

Returns the background color for this data cell

Returns:
  • the background color, as defined in the Color object, for this data cell
Type
Number

isFieldDelimiter() → {Boolean}

Tests if this cell represents a field delimiter.

Returns:
  • true if this cell is a field delimiter, false otherwise.
Type
Boolean

toString() → {String}

Converts the internal data cell to a string.

Returns:
  • string representation of a data cell
Type
String