Package ag.ion.bion.officelayer.text

Examples of ag.ion.bion.officelayer.text.IParagraphProperties


      // paragraph is of no interest for us, because it is the empty initial paragraph
     
      /*
       * Format paragraph 1
       */
      IParagraphProperties paragraphPropoerties = paragraphs[0].getParagraphProperties();
      paragraphPropoerties.setParaAdjust(IParagraphProperties.ALIGN_RIGHT);
      paragraphPropoerties.getCharacterProperties().setFontBold(true);
      paragraphPropoerties.getCharacterProperties().setFontSize(8);
      paragraphPropoerties.getCharacterProperties().setFontItalic(true);
      paragraphPropoerties.getCharacterProperties().setFontColor(150);
     
      /*
       * Format paragraph 2
       */
      IParagraphProperties paragraphPropoerties2 = paragraphs[1].getParagraphProperties();
      paragraphPropoerties2.setParaAdjust(IParagraphProperties.ALIGN_CENTER);
      paragraphPropoerties2.getCharacterProperties().setFontBold(true);
      paragraphPropoerties2.getCharacterProperties().setFontSize(12);
      paragraphPropoerties2.getCharacterProperties().setFontUnderline(true);
      paragraphPropoerties2.getCharacterProperties().setFontColor(10);
     
      /*
       * Format paragraph 3
       */
      IParagraphProperties paragraphPropoerties3 = paragraphs[2].getParagraphProperties();
      paragraphPropoerties3.setParaAdjust(IParagraphProperties.ALIGN_LEFT);
      paragraphPropoerties3.getCharacterProperties().setFontSize(10);
      paragraphPropoerties3.getCharacterProperties().setFontUnderline(true);
      paragraphPropoerties3.getCharacterProperties().setFontColor(300);
        
    }
    catch(TextException exception) {
      exception.printStackTrace();
    }
View Full Code Here


        textDocument.getTextService().getText().getTextContentEnumeration().getParagraphs();
     
     
      // there should be only one paragraph, since we did not insert any additional ones
      // so we use index 0 of the array.     
      IParagraphProperties paragraphPropoerties = paragraphs[0].getParagraphProperties();
      paragraphPropoerties.setParaAdjust(IParagraphProperties.ALIGN_CENTER);
     
      // set the font bold and italic, set size to 9 and color the text blue,
      paragraphPropoerties.getCharacterProperties().setFontBold(true);
      paragraphPropoerties.getCharacterProperties().setFontSize(9);
      paragraphPropoerties.getCharacterProperties().setFontItalic(true);
      paragraphPropoerties.getCharacterProperties().setFontColor(150);
     
    }
    catch(TextException exception) {
      exception.printStackTrace();
    }
View Full Code Here

   * @param paragraph the paragraph from which to gain the information
   *
   * @author Sebastian R�sgen
   */
  private void fillStorage (IParagraph paragraph) throws TextException {
    IParagraphProperties properties = paragraph.getParagraphProperties();
    this.properties = properties;
    this.breakType = properties.getBreakType();
    this.paraAdjust = properties.getParaAdjust();
    try {
      this.paraStyleName = properties.getParaStyleName();
    }
    catch(NOAException exception) {
      //do not consume
    }
    this.characterPropertyStore = paragraph.getCharacterPropertyStore();
View Full Code Here

         else {
           //use default
           propertyKeysToCopy = ParagraphProperties.getDefaultPropertyKeys();
         }
         if(propertyKeysToCopy != null) {
           IParagraphProperties paragraphProperties = newParagraph.getParagraphProperties();
           ((IPropertyStore)paragraphPropertyStore).getProperties().copyTo(propertyKeysToCopy, paragraphProperties);
         }
        
         if(generateReturnValue)
           return new ClonedObject(newParagraph, newParagraph.getClass());
View Full Code Here

   *            the paragraph from which to gain the information
   *
   * @author Sebastian R�sgen
   */
  private void fillStorage(IParagraph paragraph) throws TextException {
    IParagraphProperties properties = paragraph.getParagraphProperties();
    this.properties = properties;
    this.breakType = properties.getBreakType();
    this.paraAdjust = properties.getParaAdjust();
    try {
      this.paraStyleName = properties.getParaStyleName();
    } catch (NOAException exception) {
      // do not consume
    }
    this.characterPropertyStore = paragraph.getCharacterPropertyStore();
  }
View Full Code Here

          // use default
          propertyKeysToCopy = ParagraphProperties
              .getDefaultPropertyKeys();
        }
        if (propertyKeysToCopy != null) {
          IParagraphProperties paragraphProperties = newParagraph
              .getParagraphProperties();
          ((IPropertyStore) paragraphPropertyStore).getProperties()
              .copyTo(propertyKeysToCopy, paragraphProperties);
        }
View Full Code Here

TOP

Related Classes of ag.ion.bion.officelayer.text.IParagraphProperties

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.