Package com.inductiveautomation.rm.out
Class RMRTFWriter
- java.lang.Object
- 
- com.inductiveautomation.rm.out.RMRTFWriter
 
- 
 public class RMRTFWriter extends java.lang.ObjectWrite RTF for a document.
- 
- 
Constructor SummaryConstructors Constructor Description RMRTFWriter()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendImageBytesForShape(RMShape s, java.io.PrintStream ps)Convert the shape into an image stream and embedd that into the rtf.voidappendRTF(RMShape aShape, java.io.PrintStream ps)voidappendTable(RMShapeTable table, java.io.PrintStream ps)Append table.voidappendText(RMXString s, java.io.PrintStream ps)byte[]getBytes(RMDocument aDoc)Returns RTF bytes for given document.intgetColorIndex(RMColor c)intgetFontIndex(RMFont f)Looks up a font in the font table and adds it if it's not there.intgetRTFFontCharset(RMFontFile f)java.lang.StringgetRTFFontFamily(RMFontFile f)byte[]getRTFForShapes(RMDocument aDoc)Returns RTF for document Shapes.java.lang.StringRTFBorderStyle(boolean show, int width)Returns the rtf control string for borders.inttwip(double x)Convert an rm coord to rtf 'twips'.voidwriteColorTable(java.io.PrintStream ps)Output all the fonts as an RTF fonttable.voidwriteFont(java.io.PrintStream aPS, RMFontFile aFontFile)Writes an entry in the font table for a particular font.voidwriteFontTable(java.io.PrintStream ps)Output all the fonts as an RTF FontTable.
 
- 
- 
- 
Method Detail- 
getBytespublic byte[] getBytes(RMDocument aDoc) Returns RTF bytes for given document.
 - 
getFontIndexpublic int getFontIndex(RMFont f) Looks 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.)
 - 
writeFontTablepublic void writeFontTable(java.io.PrintStream ps) Output all the fonts as an RTF FontTable. Fonts are all referenced by name, never embedded.
 - 
writeFontpublic void writeFont(java.io.PrintStream aPS, RMFontFile aFontFile)Writes an entry in the font table for a particular font.
 - 
getRTFFontFamilypublic java.lang.String getRTFFontFamily(RMFontFile f) 
 - 
getRTFFontCharsetpublic int getRTFFontCharset(RMFontFile f) 
 - 
writeColorTablepublic void writeColorTable(java.io.PrintStream ps) Output all the fonts as an RTF fonttable. Fonts are all referenced by name, never embedded.
 - 
getColorIndexpublic int getColorIndex(RMColor c) 
 - 
twippublic int twip(double x) Convert an rm coord to rtf 'twips'. A twip is a 20th of a point.
 - 
getRTFForShapespublic byte[] getRTFForShapes(RMDocument aDoc) Returns RTF for document Shapes.
 - 
appendRTFpublic void appendRTF(RMShape aShape, java.io.PrintStream ps) 
 - 
appendTablepublic void appendTable(RMShapeTable table, java.io.PrintStream ps) Append table. Tables are intermediary objects used for positioning content. Thus, tables themselves shouldn't do any drawing
 - 
appendTextpublic void appendText(RMXString s, java.io.PrintStream ps) 
 - 
RTFBorderStylepublic java.lang.String RTFBorderStyle(boolean show, int width)Returns the rtf control string for borders. Currently only does on or off. RTF has a zillion other possibilities.
 - 
appendImageBytesForShapepublic void appendImageBytesForShape(RMShape s, java.io.PrintStream ps) Convert the shape into an image stream and embedd that into the rtf.
 
- 
 
-