de.dante.extex.interpreter.context
Interface ContextFont

All Known Subinterfaces:
Context, ContextInternals
All Known Implementing Classes:
ContextExtensionImpl, ContextImpl

public interface ContextFont

This interface describes the container for all data of an interpreter context.

Version:
$Revision: 1.2 $
Author:
Gerd Neugebauer

Method Summary
 Font getFont(java.lang.String name)
          Getter for a current font register.
 FontFactory getFontFactory()
          Getter for the font factory.
 void setFont(java.lang.String name, Font font, boolean global)
          Setter for font registers.
 void setFontFactory(FontFactory fontFactory)
          Setter for the font factory.
 

Method Detail

getFont

public Font getFont(java.lang.String name)
Getter for a current font register.

Parameters:
name - the name or the number of the register
Returns:
the named font register or null if none is set
See Also:
setFont(String, Font, boolean)

getFontFactory

public FontFactory getFontFactory()
Getter for the font factory.

Returns:
the fontFactory.
See Also:
setFontFactory(FontFactory)

setFont

public void setFont(java.lang.String name,
                    Font font,
                    boolean global)
Setter for font registers.

Parameters:
name - the name or the number of the register
font - the new Font value
global - the indicator for the scope; true means all groups; otherwise the current group is affected only
See Also:
getFont(String)

setFontFactory

public void setFontFactory(FontFactory fontFactory)
Setter for the font factory.

Parameters:
fontFactory - the font factory to set.
See Also:
getFontFactory()