com.grahamedgecombe.jterminal
Class TerminalCell

java.lang.Object
  extended by com.grahamedgecombe.jterminal.TerminalCell

public class TerminalCell
extends java.lang.Object

Represents a single terminal cell which contains a character, background color and foreground color.

Author:
Graham Edgecombe

Constructor Summary
TerminalCell(char character, java.awt.Color backgroundColor, java.awt.Color foregroundColor)
          Creates a terminal cell with the specified character, background color and foreground color.
 
Method Summary
 java.awt.Color getBackgroundColor()
          Gets the background color.
 char getCharacter()
          Gets the character.
 java.awt.Color getForegroundColor()
          Gets the foreground color.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TerminalCell

public TerminalCell(char character,
                    java.awt.Color backgroundColor,
                    java.awt.Color foregroundColor)
Creates a terminal cell with the specified character, background color and foreground color.

Parameters:
character - The character.
backgroundColor - The background color.
foregroundColor - The foreground color.
Throws:
java.lang.NullPointerException - if the background or foreground color(s) are null.
Method Detail

getCharacter

public char getCharacter()
Gets the character.

Returns:
The character.

getBackgroundColor

public java.awt.Color getBackgroundColor()
Gets the background color.

Returns:
The background color.

getForegroundColor

public java.awt.Color getForegroundColor()
Gets the foreground color.

Returns:
The foreground color.


Copyright © 2009-2012. All Rights Reserved.