org.freehep.graphics2d.font
Class AbstractCharTable

java.lang.Object
  extended by org.freehep.graphics2d.font.AbstractCharTable
All Implemented Interfaces:
CharTable

public abstract class AbstractCharTable
extends java.lang.Object
implements CharTable

Abstract Character Table, inherited by all the Generated Encoding Tables

Version:
$Id: AbstractCharTable.java 8584 2006-08-10 23:06:37Z duns $
Author:
Simon Fischer

Constructor Summary
AbstractCharTable()
           
 
Method Summary
 int toEncoding(char unicode)
          Converts a unicode into a character code.
 java.lang.String toName(char c)
          Converts unicode character to name.
 java.lang.String toName(java.lang.Integer enc)
          Converts character code Integer object into a name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.freehep.graphics2d.font.CharTable
getEncoding, getName, toEncoding, toName, toName, toUnicode
 

Constructor Detail

AbstractCharTable

public AbstractCharTable()
Method Detail

toEncoding

public int toEncoding(char unicode)
Description copied from interface: CharTable
Converts a unicode into a character code.

Specified by:
toEncoding in interface CharTable
Parameters:
unicode - unicode character
Returns:
character code

toName

public java.lang.String toName(char c)
Description copied from interface: CharTable
Converts unicode character to name.

Specified by:
toName in interface CharTable
Parameters:
c - unicode character
Returns:
name

toName

public java.lang.String toName(java.lang.Integer enc)
Description copied from interface: CharTable
Converts character code Integer object into a name.

Specified by:
toName in interface CharTable
Parameters:
enc - code Integer object
Returns:
name


Copyright © 2000-2007 FreeHEP. All Rights Reserved.