Unified Typesetting API M1-20040817

de.inghuimische.uta.typeset
Class ExtensibleTypesetter

java.lang.Object
  extended byde.inghuimische.uta.typeset.AbstractTypesetter
      extended byde.inghuimische.uta.typeset.ExtensibleTypesetter
All Implemented Interfaces:
QManageable, Typesetter
Direct Known Subclasses:
SimpleTypesetter

public abstract class ExtensibleTypesetter
extends AbstractTypesetter

Abstract extensible typesetter to ease implementation of typesetters.

Author:
Christian Ziesemer

Field Summary
protected  Hashtable scripts
          Holds the registered scripts.
 
Fields inherited from class de.inghuimische.uta.typeset.AbstractTypesetter
embeddingLevels, features, previousEmbeddingLevel, previousScript
 
Constructor Summary
ExtensibleTypesetter()
          Constructs a new typesetter, the Feature.EXTENSIBLE feature is automatically added to the feature list.
 
Method Summary
 Script addScript(Script aScript)
          Adds support for a new script.
 Script getScript(Locale aLocale)
          Returns the script for the given locale or null if no script is registered for the locale.
 List getScripts()
          Returns a list of all registered scripts.
 
Methods inherited from class de.inghuimische.uta.typeset.AbstractTypesetter
fixItemPositions, fixItemPositions, getActiveEmbeddingLevel, getEmbeddingLevelOrder, getFeatures, getGlyphFactory, getItemIterator, getJustifyText, getRootLevel, getScript, typeset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.inghuimische.uta.typeset.Typesetter
getJustificationAlgorithm, getLinebreakAlgorithm, typeset
 

Field Detail

scripts

protected Hashtable scripts
Holds the registered scripts.

Constructor Detail

ExtensibleTypesetter

public ExtensibleTypesetter()
Constructs a new typesetter, the Feature.EXTENSIBLE feature is automatically added to the feature list.

Method Detail

getScript

public Script getScript(Locale aLocale)
Description copied from interface: Typesetter
Returns the script for the given locale or null if no script is registered for the locale.

Parameters:
aLocale - The locale a script is searched for.
Returns:
The script for the given locale or null if no script is registered for the locale.

getScripts

public List getScripts()
Description copied from interface: Typesetter
Returns a list of all registered scripts.

Returns:
A list of all registered scripts.

addScript

public Script addScript(Script aScript)
Description copied from interface: Typesetter
Adds support for a new script. A script provides all features needed to typeset one script.

Parameters:
aScript - The script to add.
Returns:
The script previously registered for the locale, or null if there was no such script before.

Unified Typesetting API M1-20040817


An inghuimische.de project.
Copyright (C) 2004 Christian Ziesemer; See the Mozilla Public License for more details.