Package com.lowagie.text.rtf.text

Examples of com.lowagie.text.rtf.text.RtfChunk


            {
              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));
            }
          }
          else
          {
            rtfElements.add(new RtfChunk(rtfDoc, (Chunk) element));
          }
          break;
        case Element.PHRASE:
          rtfElements.add(new RtfPhrase(rtfDoc, (Phrase) element));
          break;
View Full Code Here


                } 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));
                }
            } else {
                    rtfElements.add(new RtfChunk(rtfDoc, (Chunk) element));
            }
          break;
        case LwgElement.PHRASE:
            rtfElements.add(new RtfPhrase(rtfDoc, (LwgPhrase) element));
          break;
View Full Code Here

                } 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));
                }
            } else {
                    rtfElements.add(new RtfChunk(rtfDoc, (Chunk) element));
            }
          break;
        case Element.PHRASE:
            rtfElements.add(new RtfPhrase(rtfDoc, (Phrase) element));
          break;
View Full Code Here

            if(((Chunk) element).getImage() != null) {
                    rtfElement = new RtfImage(rtfDoc, ((Chunk) element).getImage());
            } else if(((Chunk) element).hasAttributes() && ((Chunk) element).getAttributes().containsKey(Chunk.NEWPAGE)) {
                rtfElement = new RtfNewPage(rtfDoc);
            } else {
                rtfElement = new RtfChunk(rtfDoc, (Chunk) element);
            }
          break;
        case Element.PHRASE:
            rtfElement = new RtfPhrase(rtfDoc, (Phrase) element);
          break;
View Full Code Here

TOP

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

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.