de.dante.extex.interpreter.primitives.register.font
Class NumberedFont
java.lang.Object
de.dante.extex.interpreter.type.AbstractCode
de.dante.extex.interpreter.type.AbstractAssignment
de.dante.extex.interpreter.primitives.register.font.NamedFont
de.dante.extex.interpreter.primitives.register.font.NumberedFont
- All Implemented Interfaces:
- Code, FontConvertible, Localizable, java.io.Serializable, Theable
- public class NumberedFont
- extends NamedFont
This class provides an implementation for a font stored under a name and a
number in the context.
- Version:
- $Revision: 1.11 $
- Author:
- Gerd Neugebauer
- See Also:
- Serialized Form
Field Summary |
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
Constructor Summary |
NumberedFont(java.lang.String name)
Creates a new object. |
Method Summary |
protected java.lang.String |
getKey(Context context,
TokenSource source,
Typesetter typesetter)
Return the key (the name of the primitive) for the numbered font
register. |
static java.lang.String |
key(Context context,
java.lang.String theName,
java.lang.String theNumber)
Construct the reference key for a numbered font. |
static java.lang.String |
key(TypesetterOptions context,
java.lang.String theName,
java.lang.String theNumber)
Construct the reference key for a numbered font. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
serialVersionUID
protected static final long serialVersionUID
- The constant serialVersionUID contains the id for serialization.
- See Also:
- Constant Field Values
NumberedFont
public NumberedFont(java.lang.String name)
- Creates a new object.
- Parameters:
name
- the name for debugging
key
public static java.lang.String key(Context context,
java.lang.String theName,
java.lang.String theNumber)
- Construct the reference key for a numbered font.
- Parameters:
context
- the interpreter contexttheName
- the base name of the fonttheNumber
- the number of the font
- Returns:
- the key
key
public static java.lang.String key(TypesetterOptions context,
java.lang.String theName,
java.lang.String theNumber)
- Construct the reference key for a numbered font.
- Parameters:
context
- the interpreter contexttheName
- the base name of the fonttheNumber
- the number of the font
- Returns:
- the key
getKey
protected java.lang.String getKey(Context context,
TokenSource source,
Typesetter typesetter)
throws InterpreterException
- Return the key (the name of the primitive) for the numbered font
register.
- Overrides:
getKey
in class NamedFont
- Parameters:
context
- the interpreter context to usesource
- the source for new tokens
- Returns:
- the key for the current register
- Throws:
InterpreterException
- in case that a derived class need to throw an
Exception this one is declared.- See Also:
NamedFont.getKey(
de.dante.extex.interpreter.context.Context,
de.dante.extex.interpreter.TokenSource,
de.dante.extex.typesetter.Typesetter)