1 50 package com.lowagie.text.rtf.direct; 51 52 import java.awt.Color ; 53 import java.util.HashMap ; 54 55 68 public class RtfImportMappings { 69 72 private HashMap fontMappings = null; 73 76 private HashMap colorMappings = null; 77 78 81 public RtfImportMappings() { 82 this.fontMappings = new HashMap (); 83 this.colorMappings = new HashMap (); 84 } 85 86 92 public void addFont(String fontNr, String fontName) { 93 this.fontMappings.put(fontNr, fontName); 94 } 95 96 102 public void addColor(String colorNr, Color color) { 103 this.colorMappings.put(colorNr, color); 104 } 105 106 111 public HashMap getFontMappings() { 112 return this.fontMappings; 113 } 114 115 120 public HashMap getColorMappings() { 121 return this.colorMappings; 122 } 123 } 124 | Popular Tags |