org.freehep.graphics2d.font
Class AbstractCharTable
java.lang.Object
org.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 8584 2006-08-10 23:06:37Z duns $
- Author:
- Simon Fischer
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 |
AbstractCharTable
public AbstractCharTable()
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
Copyright © 2012. All Rights Reserved.