Class EntitiesToSymbol
- java.lang.Object
-
- com.lowagie.text.xml.simpleparser.EntitiesToSymbol
-
public class EntitiesToSymbol extends Object
This class contains entities that can be used in an entity tag.
-
-
Constructor Summary
Constructors Constructor Description EntitiesToSymbol()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Chunkget(String e, Font font)Gets a chunk with a symbol character.static chargetCorrespondingSymbol(String name)Looks for the corresponding symbol in the font Symbol.static Map<String,Character>getMap()
-
-
-
Field Detail
-
map
@Deprecated public static final HashMap<String,Character> map
Deprecated.use the getter (getMap()) instead of accessing this field directlyThis is a map that contains all possible id values of the entity tag that can be translated to a character in font Symbol.
-
-
Method Detail
-
get
public static Chunk get(String e, Font font)
Gets a chunk with a symbol character.- Parameters:
e- a symbol value (see Entities class: alfa is greek alfa,...)font- the font if the symbol isn't found (otherwise Font.SYMBOL)- Returns:
- a Chunk
-
getCorrespondingSymbol
public static char getCorrespondingSymbol(String name)
Looks for the corresponding symbol in the font Symbol.- Parameters:
name- the name of the entity- Returns:
- the corresponding character in font Symbol
-
-