Package com.lowagie.text
Class SpecialSymbol
java.lang.Object
com.lowagie.text.SpecialSymbol
This class contains the symbols that correspond with special symbols.
When you construct a Phrase
with Phrase.getInstance using a String
, this
String
can contain special Symbols. These are characters with an int value between 913 and 937 (except
930) and between 945 and 969. With this class the value of the corresponding character of the Font Symbol, can be
retrieved.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Chunk
Gets a chunk with a symbol character.static char
getCorrespondingSymbol
(char c) Looks for the corresponding symbol in the font Symbol.static int
Returns the first occurrence of a special symbol in aString
.
-
Constructor Details
-
SpecialSymbol
public SpecialSymbol()
-
-
Method Details
-
index
Returns the first occurrence of a special symbol in aString
.- Parameters:
string
- aString
- Returns:
- an index of -1 if no special symbol was found
-
get
Gets a chunk with a symbol character.- Parameters:
c
- a character that has to be changed into a symbolfont
- Font if there is no SYMBOL character corresponding with c- Returns:
- a SYMBOL version of a character
-
getCorrespondingSymbol
public static char getCorrespondingSymbol(char c) Looks for the corresponding symbol in the font Symbol.- Parameters:
c
- the original ASCII-char- Returns:
- the corresponding symbol in font Symbol
-