com.sshtools.terminal
Class SoftFont

java.lang.Object
  extended by com.sshtools.terminal.SoftFont

public class SoftFont
extends java.lang.Object

Graphics object to draw the extended graphics character set provided by VT terminals.

Author:
$Author: james $

Constructor Summary
SoftFont()
          Construct a new SoftFont
 
Method Summary
 void drawChar(java.awt.Graphics g, char c, int x, int y, int cw, int ch)
          Draw a character at a the supplied position, width and height.
 boolean inSoftFont(char c)
          Get if the supplied character is valid for this font.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoftFont

public SoftFont()
Construct a new SoftFont

Method Detail

inSoftFont

public boolean inSoftFont(char c)
Get if the supplied character is valid for this font.

Parameters:
c - character
Returns:
is in soft font

drawChar

public void drawChar(java.awt.Graphics g,
                     char c,
                     int x,
                     int y,
                     int cw,
                     int ch)
Draw a character at a the supplied position, width and height.

Parameters:
g - graphics object to draw on
c - character to draw
x - x position
y - y position
cw - character width
ch - character height


Copyright © 2003-2004 3SP LTD. All Rights Reserved.