com.itextpdf.text.xml.simpleparser
Class EntitiesToSymbol
java.lang.Object
com.itextpdf.text.xml.simpleparser.EntitiesToSymbol
public class EntitiesToSymbol
- extends Object
This class contains entities that can be used in an entity tag.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntitiesToSymbol
public EntitiesToSymbol()
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
Copyright © 2013. All Rights Reserved.