FreeHEP API
Version current

org.freehep.graphics2d.font
Class AbstractCharTable

java.lang.Object
  extended byorg.freehep.graphics2d.font.AbstractCharTable
All Implemented Interfaces:
CharTable
Direct Known Subclasses:
Expert, ISOLatin, MACLatin, PDFLatin, STDLatin, Symbol, WINLatin, Zapfdingbats

public abstract class AbstractCharTable
extends Object
implements CharTable

Abstract Character Table, inherited by all the Generated Encoding Tables

Version:
$Id: AbstractCharTable.java,v 1.1 2005/01/03 21:22:23 duns Exp $
Author:
Simon Fischer
Source Code:
AbstractCharTable.java

Constructor Summary
AbstractCharTable()
           
 
Method Summary
 int toEncoding(char unicode)
          Converts a unicode into a character code.
 String toName(char c)
          Converts unicode character to name.
 String toName(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 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 String toName(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

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.