|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.rtf.parser.RtfImportMappings
public class RtfImportMappings
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.
Field Summary | |
---|---|
private HashMap |
colorMappings
The colorNr to Color mappings. |
private HashMap |
fontMappings
The fontNr to fontName mappings. |
private HashMap |
listMappings
The listNr to List mappings. |
private HashMap |
stylesheetListMappings
The sytlesheetListNr to Stylesheet mappings. |
Constructor Summary | |
---|---|
RtfImportMappings()
Constructs a new RtfImportMappings initialising the mappings. |
Method Summary | |
---|---|
void |
addColor(String colorNr,
Color color)
Add a color to the list of mappings. |
void |
addFont(String fontNr,
String fontName)
Add a font to the list of mappings. |
void |
addList(String listNr,
String list)
Add a List to the list of mappings. |
void |
addStylesheetList(String stylesheetListNr,
String list)
Add a Stylesheet List to the list of mappings. |
HashMap |
getColorMappings()
Gets the list of color mappings. |
HashMap |
getFontMappings()
Gets the list of font mappings. |
HashMap |
getListMappings()
Gets the list of List mappings. |
HashMap |
getStylesheetListMappings()
Gets the list of Stylesheet mappings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private HashMap fontMappings
private HashMap colorMappings
private HashMap listMappings
private HashMap stylesheetListMappings
Constructor Detail |
---|
public RtfImportMappings()
Method Detail |
---|
public void addFont(String fontNr, String fontName)
fontNr
- The font number.fontName
- The font name.public void addColor(String colorNr, Color color)
colorNr
- The color number.color
- The Color.public void addList(String listNr, String list)
listNr
- The List number.list
- The List.public void addStylesheetList(String stylesheetListNr, String list)
stylesheetListNr
- The Stylesheet List number.list
- The StylesheetList.public HashMap getFontMappings()
public HashMap getColorMappings()
public HashMap getListMappings()
public HashMap getStylesheetListMappings()
|
Hosted by Hostbasket | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |