Class RtfDestinationFontTable
- java.lang.Object
-
- com.lowagie.text.rtf.parser.destinations.RtfDestination
-
- com.lowagie.text.rtf.parser.destinations.RtfDestinationFontTable
-
public final class RtfDestinationFontTable extends RtfDestination
RtfDestinationFontTablehandles data destined for the font table destination- Since:
- 2.0.8
- Author:
- Howard Shank (hgshank@yahoo.com)
-
-
Field Summary
-
Fields inherited from class com.lowagie.text.rtf.parser.destinations.RtfDestination
lastCtrlWord, modified, rtfParser
-
-
Constructor Summary
Constructors Constructor Description RtfDestinationFontTable()ConstructorRtfDestinationFontTable(RtfParser parser)Constructs a new RtfFontTableParser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancloseDestination()Clean up when destination is closed.com.lowagie.text.FontgetFont(java.lang.String key)Get aFontobject from the font map objectbooleanhandleCharacter(int ch)Handle text for this destinationbooleanhandleCloseGroup()Clean up when group is closed.booleanhandleControlWord(RtfCtrlWordData ctrlWordData)Handle control word for this destinationbooleanhandleOpenGroup()Setup when group is opened.booleanhandleOpeningSubGroup()Handle a new subgroup contained within this groupvoidsetBias(java.lang.String value)Set the font biasvoidsetCharset(java.lang.String charset)Set the character-set to the parsed value.voidsetCodePage(java.lang.String value)Set the code pagevoidsetFontAlternate(java.lang.String fontAlternate)Set the alternate font name.voidsetFontFamily(java.lang.String fontFamily)Set the font family to the parsed value.voidsetFontName(java.lang.String fontName)Set the font name to the parsed value.voidsetFontNumber(java.lang.String fontNr)Set the font number to the parsed value.voidsetParser(RtfParser parser)Set the parser to use with the RtfDestination object.voidsetPitch(java.lang.String value)Set the font pitchvoidsetThemeFont(java.lang.String themeFont)Set the font themevoidsetToDefaults()Method to set this object to the default values.voidsetTrueType(java.lang.String value)Set the TrueTtype type-
Methods inherited from class com.lowagie.text.rtf.parser.destinations.RtfDestination
addListener, afterCharacter, afterCtrlWord, beforeCharacter, beforeCtrlWord, getNewTokeniserState, isModified, onCharacter, onCloseGroup, onCtrlWord, onOpenGroup, removeListener
-
-
-
-
Constructor Detail
-
RtfDestinationFontTable
public RtfDestinationFontTable()
Constructor
-
RtfDestinationFontTable
public RtfDestinationFontTable(RtfParser parser)
Constructs a new RtfFontTableParser.- Parameters:
parser- an RtfParser.- Since:
- 2.0.8
-
-
Method Detail
-
setParser
public void setParser(RtfParser parser)
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
public boolean handleControlWord(RtfCtrlWordData ctrlWordData)
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
public void setCodePage(java.lang.String value)
Set the code page- Parameters:
value- The code page value- Since:
- 2.0.8
-
setTrueType
public void setTrueType(java.lang.String value)
Set the TrueTtype type- Parameters:
value- The type- Since:
- 2.0.8
-
setPitch
public void setPitch(java.lang.String value)
Set the font pitch- Parameters:
value- Pitch value- Since:
- 2.0.8
-
setBias
public void setBias(java.lang.String value)
Set the font bias- Parameters:
value- Bias value- Since:
- 2.0.8
-
setThemeFont
public void setThemeFont(java.lang.String themeFont)
Set the font theme- Parameters:
themeFont- Theme value- Since:
- 2.0.8
-
setFontName
public void setFontName(java.lang.String fontName)
Set the font name to the parsed value.- Parameters:
fontName- The font name.- Since:
- 2.0.8
-
setFontFamily
public void setFontFamily(java.lang.String fontFamily)
Set the font family to the parsed value.- Parameters:
fontFamily- The font family.- Since:
- 2.0.8
-
setFontNumber
public void setFontNumber(java.lang.String fontNr)
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
public void setFontAlternate(java.lang.String fontAlternate)
Set the alternate font name.- Parameters:
fontAlternate- The falt font value- Since:
- 2.0.8
-
setCharset
public void setCharset(java.lang.String charset)
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
public com.lowagie.text.Font getFont(java.lang.String key)
Get aFontobject from the font map object- Parameters:
key- The font number to get- Returns:
- The mapped
Fontobject. - Since:
- 2.0.8
-
-