| java.lang.Object com.lowagie.text.rtf.direct.RtfImportMappings
RtfImportMappings | public class RtfImportMappings (Code) | | The RtfImportMappings make it possible to define font
and color mappings when using the RtfWriter2.importRtfFragment
method. This is necessary, because a RTF fragment does not
contain font or color information, just references to the
font and color tables.
The font mappings are fontNr -> fontName and the color
mappigns are colorNr -> Color.
version: $Revision: 2337 $ author: Mark Hall (mhall@edu.uni-klu.ac.at) |
Constructor Summary | |
public | RtfImportMappings() Constructs a new RtfImportMappings initialising the mappings. |
RtfImportMappings | public RtfImportMappings()(Code) | | Constructs a new RtfImportMappings initialising the mappings.
|
addColor | public void addColor(String colorNr, Color color)(Code) | | Add a color to the list of mappings.
Parameters: colorNr - The color number. Parameters: color - The Color. |
addFont | public void addFont(String fontNr, String fontName)(Code) | | Add a font to the list of mappings.
Parameters: fontNr - The font number. Parameters: fontName - The font name. |
getColorMappings | public HashMap getColorMappings()(Code) | | Gets the list of color mappings. String to Color.
The color mappings. |
getFontMappings | public HashMap getFontMappings()(Code) | | Gets the list of font mappings. String to String.
The font mappings. |
|
|