Package com.inductiveautomation.rm.out
Class RMRTFWriter
java.lang.Object
com.inductiveautomation.rm.out.RMRTFWriter
Write RTF for a document.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidConvert the shape into an image stream and embedd that into the rtf.voidappendRTF(RMShape aShape, PrintStream ps) voidappendTable(RMShapeTable table, PrintStream ps) Append table.voidappendText(RMXString s, PrintStream ps) byte[]getBytes(RMDocument aDoc) Returns RTF bytes for given document.intintLooks up a font in the font table and adds it if it's not there.intbyte[]getRTFForShapes(RMDocument aDoc) Returns RTF for document Shapes.RTFBorderStyle(boolean show, int width) Returns the rtf control string for borders.inttwip(double x) Convert an rm coord to rtf 'twips'.voidOutput all the fonts as an RTF fonttable.voidwriteFont(PrintStream aPS, RMFontFile aFontFile) Writes an entry in the font table for a particular font.voidOutput all the fonts as an RTF FontTable.
- 
Constructor Details- 
RMRTFWriterpublic RMRTFWriter()
 
- 
- 
Method Details- 
getBytesReturns RTF bytes for given document.
- 
getFontIndexLooks up a font in the font table and adds it if it's not there. Returns the name that represents the font in the rtf ("f0", "f1", etc.)
- 
writeFontTableOutput all the fonts as an RTF FontTable. Fonts are all referenced by name, never embedded.
- 
writeFontWrites an entry in the font table for a particular font.
- 
getRTFFontFamily
- 
getRTFFontCharset
- 
writeColorTableOutput all the fonts as an RTF fonttable. Fonts are all referenced by name, never embedded.
- 
getColorIndex
- 
twippublic int twip(double x) Convert an rm coord to rtf 'twips'. A twip is a 20th of a point.
- 
getRTFForShapesReturns RTF for document Shapes.
- 
appendRTF
- 
appendTableAppend table. Tables are intermediary objects used for positioning content. Thus, tables themselves shouldn't do any drawing
- 
appendText
- 
RTFBorderStyleReturns the rtf control string for borders. Currently only does on or off. RTF has a zillion other possibilities.
- 
appendImageBytesForShapeConvert the shape into an image stream and embedd that into the rtf.
 
-