public class SymbolAtom extends CharSymbol
Modifier and Type | Field and Description |
---|---|
static java.util.Map<java.lang.String,SymbolAtom> |
symbols |
alignment, type, type_limits
Constructor and Description |
---|
SymbolAtom(java.lang.String name,
int type,
boolean del)
Constructs a new symbol.
|
SymbolAtom(SymbolAtom s,
int type) |
Modifier and Type | Method and Description |
---|---|
static void |
addSymbolAtom(java.io.InputStream in,
java.lang.String name) |
static void |
addSymbolAtom(java.lang.String file) |
static void |
addSymbolAtom(SymbolAtom sym) |
Box |
createBox(TeXEnvironment env)
Convert this atom into a
Box , using properties set by "parent"
atoms, like the TeX style, the last used font, color settings, ... |
static SymbolAtom |
get(java.lang.String name)
Looks up the name in the table and returns the corresponding SymbolAtom representing
the symbol (if it's found).
|
CharFont |
getCharFont(TeXFont tf)
Get the CharFont-object that uniquely identifies the character that is represented
by this atom.
|
java.lang.String |
getName() |
char |
getUnicode() |
boolean |
isDelimiter() |
SymbolAtom |
setUnicode(char c) |
isMarkedAsTextSymbol, markAsTextSymbol, removeMark
clone, getLeftType, getRightType
public static java.util.Map<java.lang.String,SymbolAtom> symbols
public SymbolAtom(SymbolAtom s, int type) throws InvalidSymbolTypeException
InvalidSymbolTypeException
public SymbolAtom(java.lang.String name, int type, boolean del)
name
- symbol nametype
- symbol type constantdel
- whether the symbol is a delimiterpublic SymbolAtom setUnicode(char c)
public char getUnicode()
public static void addSymbolAtom(java.lang.String file)
public static void addSymbolAtom(java.io.InputStream in, java.lang.String name)
public static void addSymbolAtom(SymbolAtom sym)
public static SymbolAtom get(java.lang.String name) throws SymbolNotFoundException
name
- the name of the symbolSymbolNotFoundException
- if no symbol with the given name was foundpublic boolean isDelimiter()
public java.lang.String getName()
public Box createBox(TeXEnvironment env)
Atom
Box
, using properties set by "parent"
atoms, like the TeX style, the last used font, color settings, ...public CharFont getCharFont(TeXFont tf)
CharSymbol
getCharFont
in class CharSymbol
tf
- the TeXFont containing all font related information