Package com.lowagie.text.rtf.text

Examples of com.lowagie.text.rtf.text.RtfTab


              rtfElements.add(new RtfNewPage(rtfDoc));
            }
            else if (chunk.getAttributes().containsKey(Chunk.TAB))
            {
              Float tabPos = (Float) ((Object[]) chunk.getAttributes().get(Chunk.TAB))[1];
              RtfTab tab = new RtfTab(tabPos.floatValue(), RtfTab.TAB_LEFT_ALIGN);
              tab.setRtfDocument(rtfDoc);
              rtfElements.add(tab);
              rtfElements.add(new RtfChunk(rtfDoc, new Chunk("\t")));
            }
            else
            {
View Full Code Here


                    rtfElements.add(new RtfImage(rtfDoc, chunk.getImage()));
                } else if(chunk.getAttributes().containsKey(Chunk.NEWPAGE)) {
                    rtfElements.add(new RtfNewPage(rtfDoc));
                } else if(chunk.getAttributes().containsKey(Chunk.TAB)) {
                        Float tabPos = (Float) ((Object[]) chunk.getAttributes().get(Chunk.TAB))[1];
                        RtfTab tab = new RtfTab(tabPos.floatValue(), RtfTab.TAB_LEFT_ALIGN);
                        tab.setRtfDocument(rtfDoc);
                        rtfElements.add(tab);
                        rtfElements.add(new RtfChunk(rtfDoc, new Chunk("\t")));
                } else {
                        rtfElements.add(new RtfChunk(rtfDoc, (Chunk) element));
                }
View Full Code Here

            document.open();
           
            // Construct the RtfTabGroup object
            RtfTabGroup tabGroup = new RtfTabGroup();
            // Add RtfTab tab stops at the desired positions
            tabGroup.add(new RtfTab(400, RtfTab.TAB_RIGHT_ALIGN));
            tabGroup.add(new RtfTab(500, RtfTab.TAB_DECIMAL_ALIGN));
           
            // Create a Paragraph object
            Paragraph par = new Paragraph();
            // Add the tab group to the paragraph
            par.add(tabGroup);
View Full Code Here

           
            // Define the Paragraph to add tab stops to
            Paragraph par = new Paragraph();
           
            // Add the tab stops to the paragraph
            par.add(new RtfTab(70, RtfTab.TAB_LEFT_ALIGN));
            par.add(new RtfTab(400, RtfTab.TAB_RIGHT_ALIGN));
           
            // Add the text to the paragraph, placing the tab stops with \t
            par.add("\tFirst the text on the left-hand side\tThis text is right aligned.");
           
            document.add(par);
View Full Code Here

                    rtfElements.add(new RtfImage(rtfDoc, chunk.getImage()));
                } else if(chunk.getAttributes().containsKey(Chunk.NEWPAGE)) {
                    rtfElements.add(new RtfNewPage(rtfDoc));
                } else if(chunk.getAttributes().containsKey(Chunk.TAB)) {
                        Float tabPos = (Float) ((Object[]) chunk.getAttributes().get(Chunk.TAB))[1];
                        RtfTab tab = new RtfTab(tabPos.floatValue(), RtfTab.TAB_LEFT_ALIGN);
                        tab.setRtfDocument(rtfDoc);
                        rtfElements.add(tab);
                        rtfElements.add(new RtfChunk(rtfDoc, new Chunk("\t")));
                } else {
                        rtfElements.add(new RtfChunk(rtfDoc, (Chunk) element));
                }
View Full Code Here

            document.open();
           
            // Construct the RtfTabGroup object
            RtfTabGroup tabGroup = new RtfTabGroup();
            // Add RtfTab tab stops at the desired positions
            tabGroup.add(new RtfTab(400, RtfTab.TAB_RIGHT_ALIGN));
            tabGroup.add(new RtfTab(500, RtfTab.TAB_DECIMAL_ALIGN));
           
            // Create a Paragraph object
            Paragraph par = new Paragraph();
            // Add the tab group to the paragraph
            par.add(tabGroup);
View Full Code Here

           
            // Define the Paragraph to add tab stops to
            Paragraph par = new Paragraph();
           
            // Add the tab stops to the paragraph
            par.add(new RtfTab(70, RtfTab.TAB_LEFT_ALIGN));
            par.add(new RtfTab(400, RtfTab.TAB_RIGHT_ALIGN));
           
            // Add the text to the paragraph, placing the tab stops with \t
            par.add("\tFirst the text on the left-hand side\tThis text is right aligned.");
           
            document.add(par);
View Full Code Here

TOP

Related Classes of com.lowagie.text.rtf.text.RtfTab

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.