com.grahamedgecombe.jterminal
Class AbstractTerminalModel

java.lang.Object
  extended by com.grahamedgecombe.jterminal.AbstractTerminalModel
All Implemented Interfaces:
TerminalModel
Direct Known Subclasses:
Vt100TerminalModel

public abstract class AbstractTerminalModel
extends java.lang.Object
implements TerminalModel

A TerminalModel which implements some common behaviour.

Author:
Graham Edgecombe

Constructor Summary
AbstractTerminalModel()
           
 
Method Summary
 void clear()
          Clears the terminal.
 void moveCursorBack(int n)
          Moves the cursor back n characters.
 void moveCursorDown(int n)
          Moves the cursor down n characters.
 void moveCursorForward(int n)
          Moves the cursor forward n characters.
 void moveCursorUp(int n)
          Moves the cursor up n characters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.grahamedgecombe.jterminal.TerminalModel
getBellStrategy, getBufferSize, getCell, getColumns, getCursorColumn, getCursorRow, getDefaultBackgroundColor, getDefaultForegroundColor, getRows, print, setBellStrategy, setCell, setCursorColumn, setCursorRow
 

Constructor Detail

AbstractTerminalModel

public AbstractTerminalModel()
Method Detail

clear

public void clear()
Description copied from interface: TerminalModel
Clears the terminal.

Specified by:
clear in interface TerminalModel

moveCursorBack

public void moveCursorBack(int n)
Description copied from interface: TerminalModel
Moves the cursor back n characters.

Specified by:
moveCursorBack in interface TerminalModel
Parameters:
n - The number of characters.

moveCursorForward

public void moveCursorForward(int n)
Description copied from interface: TerminalModel
Moves the cursor forward n characters.

Specified by:
moveCursorForward in interface TerminalModel
Parameters:
n - The number of characters.

moveCursorDown

public void moveCursorDown(int n)
Description copied from interface: TerminalModel
Moves the cursor down n characters.

Specified by:
moveCursorDown in interface TerminalModel
Parameters:
n - The number of characters.

moveCursorUp

public void moveCursorUp(int n)
Description copied from interface: TerminalModel
Moves the cursor up n characters.

Specified by:
moveCursorUp in interface TerminalModel
Parameters:
n - The number of characters.


Copyright © 2009-2012. All Rights Reserved.