Class RtfDestinationFontTable
java.lang.Object
com.lowagie.text.rtf.parser.destinations.RtfDestination
com.lowagie.text.rtf.parser.destinations.RtfDestinationFontTable
RtfDestinationFontTable handles data destined for the font table destination- Since:
- 2.0.8
- Author:
- Howard Shank (hgshank@yahoo.com)
-
Field Summary
Fields inherited from class RtfDestination
lastCtrlWord, modified, rtfParser -
Constructor Summary
ConstructorsConstructorDescriptionConstructorRtfDestinationFontTable(RtfParser parser) Constructs a new RtfFontTableParser. -
Method Summary
Modifier and TypeMethodDescriptionbooleanClean up when destination is closed.com.lowagie.text.FontGet aFontobject from the font map objectbooleanhandleCharacter(int ch) Handle text for this destinationbooleanClean up when group is closed.booleanhandleControlWord(RtfCtrlWordData ctrlWordData) Handle control word for this destinationbooleanSetup when group is opened.booleanHandle a new subgroup contained within this groupvoidSet the font biasvoidsetCharset(String charset) Set the character-set to the parsed value.voidsetCodePage(String value) Set the code pagevoidsetFontAlternate(String fontAlternate) Set the alternate font name.voidsetFontFamily(String fontFamily) Set the font family to the parsed value.voidsetFontName(String fontName) Set the font name to the parsed value.voidsetFontNumber(String fontNr) Set the font number to the parsed value.voidSet the parser to use with the RtfDestination object.voidSet the font pitchvoidsetThemeFont(String themeFont) Set the font themevoidMethod to set this object to the default values.voidsetTrueType(String value) Set the TrueTtype typeMethods inherited from class RtfDestination
addListener, afterCharacter, afterCtrlWord, beforeCharacter, beforeCtrlWord, getNewTokeniserState, isModified, onCharacter, onCloseGroup, onCtrlWord, onOpenGroup, removeListener
-
Constructor Details
-
RtfDestinationFontTable
public RtfDestinationFontTable()Constructor -
RtfDestinationFontTable
Constructs a new RtfFontTableParser.- Parameters:
parser- an RtfParser.- Since:
- 2.0.8
-
-
Method Details
-
setParser
Description copied from class:RtfDestinationSet the parser to use with the RtfDestination object.- Overrides:
setParserin classRtfDestination- Parameters:
parser- The RtfParser object.
-
handleOpeningSubGroup
public boolean handleOpeningSubGroup()Description copied from class:RtfDestinationHandle a new subgroup contained within this group- Specified by:
handleOpeningSubGroupin classRtfDestination- Returns:
- true if handled, false if not handled
-
closeDestination
public boolean closeDestination()Description copied from class:RtfDestinationClean up when destination is closed.- Specified by:
closeDestinationin classRtfDestination- Returns:
- true if handled, false if not handled
-
handleCloseGroup
public boolean handleCloseGroup()Description copied from class:RtfDestinationClean up when group is closed.- Specified by:
handleCloseGroupin classRtfDestination- Returns:
- true if handled, false if not handled
-
handleOpenGroup
public boolean handleOpenGroup()Description copied from class:RtfDestinationSetup when group is opened.- Specified by:
handleOpenGroupin classRtfDestination- Returns:
- true if handled, false if not handled
-
handleCharacter
public boolean handleCharacter(int ch) Description copied from class:RtfDestinationHandle text for this destination- Specified by:
handleCharacterin classRtfDestination- Returns:
- true if handled, false if not handled
-
handleControlWord
Description copied from class:RtfDestinationHandle control word for this destination- Specified by:
handleControlWordin classRtfDestination- Parameters:
ctrlWordData- The control word and parameter information object- Returns:
- true if handled, false if not handled
-
setCodePage
Set the code page- Parameters:
value- The code page value- Since:
- 2.0.8
-
setTrueType
Set the TrueTtype type- Parameters:
value- The type- Since:
- 2.0.8
-
setPitch
-
setBias
-
setThemeFont
Set the font theme- Parameters:
themeFont- Theme value- Since:
- 2.0.8
-
setFontName
Set the font name to the parsed value.- Parameters:
fontName- The font name.- Since:
- 2.0.8
-
setFontFamily
Set the font family to the parsed value.- Parameters:
fontFamily- The font family.- Since:
- 2.0.8
-
setFontNumber
Set the font number to the parsed value. This is used for mapping fonts to the new font numbers- Parameters:
fontNr- The font number.- Since:
- 2.0.8
-
setFontAlternate
Set the alternate font name.- Parameters:
fontAlternate- The falt font value- Since:
- 2.0.8
-
setCharset
Set the character-set to the parsed value.- Parameters:
charset- The charset value- Since:
- 2.0.8
-
setToDefaults
public void setToDefaults()Description copied from class:RtfDestinationMethod to set this object to the default values. Must be implemented in child class.- Specified by:
setToDefaultsin classRtfDestination
-
getFont
Get aFontobject from the font map object- Parameters:
key- The font number to get- Returns:
- The mapped
Fontobject. - Since:
- 2.0.8
-