|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.framework.AbstractFactory
org.extex.typesetter.tc.TypesettingContextFactory
public class TypesettingContextFactory
This class provides a factory for a
TypesettingContext.
| Field Summary |
|---|
| Fields inherited from class org.extex.framework.AbstractFactory |
|---|
DEFAULT_ATTRIBUTE, SELECT_ATTRIBUTE |
| Constructor Summary | |
|---|---|
TypesettingContextFactory()
Creates a new object. |
|
| Method Summary | |
|---|---|
void |
configure(Configuration configuration)
Configure the factory according to a given Configuration. |
TypesettingContext |
initial()
Getter for the initial instance. |
protected ModifiableTypesettingContext |
newInstance()
Factory method to acquire an instance of the TypesettingContext. |
TypesettingContext |
newInstance(TypesettingContext tc)
Create a new instance of a typesetting context. |
TypesettingContext |
newInstance(TypesettingContext context,
Color color)
Factory method to acquire an instance of the TypesettingContext. |
TypesettingContext |
newInstance(TypesettingContext context,
Direction direction)
Factory method to acquire an instance of the TypesettingContext. |
TypesettingContext |
newInstance(TypesettingContext context,
Font font)
Factory method to acquire an instance of the TypesettingContext. |
TypesettingContext |
newInstance(TypesettingContext context,
Language language)
Factory method to acquire an instance of the TypesettingContext with a new value for the language. |
TypesettingContext |
newInstance(TypesettingContext tc,
java.lang.String language)
Factory method to acquire an instance of the TypesettingContext with a new value for the language. |
void |
setLanguageManager(LanguageManager languageManager)
Setter for the language manager. |
| Methods inherited from class org.extex.framework.AbstractFactory |
|---|
configure, createInstance, createInstance, createInstance, createInstance, createInstanceForConfiguration, createInstanceForConfiguration, createInstanceForConfiguration, enableLogging, enableLogging, getConfiguration, getLogger, getResourceFinder, reconnect, selectConfiguration, setResourceFinder |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TypesettingContextFactory()
| Method Detail |
|---|
public void configure(Configuration configuration)
throws ConfigurationException
<typesettingContext class="the.class"/>
configure in interface Configurableconfigure in class AbstractFactoryconfiguration - the configuration for this factory
ConfigurationException - in case of an error
Configurable.configure(
org.extex.framework.configuration.Configuration)
protected ModifiableTypesettingContext newInstance()
throws ConfigurationInstantiationException
ConfigurationInstantiationException - in case that the
instantiation of the class failed.
public TypesettingContext newInstance(TypesettingContext context,
Color color)
throws ConfigurationInstantiationException
context - the typesetting context to clonecolor - the new value for the color
ConfigurationInstantiationException - in case that the
instantiation of the class failed.
public TypesettingContext newInstance(TypesettingContext context,
Direction direction)
throws ConfigurationInstantiationException
context - the typesetting context to clonedirection - the new value for the direction
ConfigurationInstantiationException - in case that the
instantiation of the class failed.
public TypesettingContext newInstance(TypesettingContext context,
Font font)
throws ConfigurationInstantiationException
context - the typesetting context to clonefont - the new value for the font
ConfigurationInstantiationException - in case that the
instantiation of the class failed.
public TypesettingContext newInstance(TypesettingContext context,
Language language)
context - the typesetting context to clonelanguage - the new value for the hyphenation table
ConfigurationException - in case of a configuration problem
public TypesettingContext newInstance(TypesettingContext tc,
java.lang.String language)
tc - the typesetting context to clonelanguage - the new value for the hyphenation table
ConfigurationException - in case of a configuration problempublic void setLanguageManager(LanguageManager languageManager)
languageManager - the new language managerpublic TypesettingContext initial()
ConfigurationException - in case of an errorpublic TypesettingContext newInstance(TypesettingContext tc)
tc - the typesetting context to take over
ConfigurationException - in case of an error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||