org.freehep.graphicsio.font.truetype
Class TTFTable

java.lang.Object
  extended by org.freehep.graphicsio.font.truetype.TTFTable
Direct Known Subclasses:
TTFCMapTable, TTFHMtxTable, TTFLocaTable, TTFNameTable, TTFPostTable, TTFVersionTable

public abstract class TTFTable
extends java.lang.Object

Concrete instances derived from this class hold data stored in true type tables. Right now the data is accessible as public attributes. In some cases methods may return more convenient objects (such as Shapes instead of point arrays).

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

Field Summary
static java.lang.Class[] TABLE_CLASSES
           
static java.lang.String[] TT_TAGS
           
 
Constructor Summary
TTFTable()
           
 
Method Summary
 TTFTable getTable(java.lang.String tag)
           
abstract  java.lang.String getTag()
           
 void init(TTFFont font, TTFInput ttf)
           
 boolean isRead()
           
 void read()
           
abstract  void readTable()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TT_TAGS

public static final java.lang.String[] TT_TAGS

TABLE_CLASSES

public static final java.lang.Class[] TABLE_CLASSES
Constructor Detail

TTFTable

public TTFTable()
Method Detail

init

public void init(TTFFont font,
                 TTFInput ttf)
          throws java.io.IOException
Throws:
java.io.IOException

read

public void read()
          throws java.io.IOException
Throws:
java.io.IOException

readTable

public abstract void readTable()
                        throws java.io.IOException
Throws:
java.io.IOException

getTag

public abstract java.lang.String getTag()

isRead

public boolean isRead()

getTable

public TTFTable getTable(java.lang.String tag)
                  throws java.io.IOException
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2000-2007 FreeHEP. All Rights Reserved.