Package ar.com.fdvs.dj.domain

Examples of ar.com.fdvs.dj.domain.AutoText


   * @param alignment  <br>ALIGMENT_LEFT <br> ALIGMENT_CENTER <br> ALIGMENT_RIGHT
   * @return
   */
  public DynamicReportBuilder addAutoText(byte type, byte position, byte alignment, int width, int width2) {
    HorizontalBandAlignment alignment_ = HorizontalBandAlignment.buildAligment(alignment);
    AutoText text = new AutoText(type,position,alignment_);
    text.setWidth(new Integer(width));
    text.setWidth2(new Integer(width2));
    addAutoText(text);
    return this;
  }
View Full Code Here


    return this;
  }

  public DynamicReportBuilder addAutoText(byte type, byte position, byte alignment, int width, int width2, Style style) {
    HorizontalBandAlignment alignment_ = HorizontalBandAlignment.buildAligment(alignment);
    AutoText text = new AutoText(type,position,alignment_);
    text.setWidth(new Integer(width));
    text.setWidth2(new Integer(width2));
    text.setStyle(style);
    addAutoText(text);
    return this;
  }
View Full Code Here

   * @param alignment  <br>ALIGMENT_LEFT <br> ALIGMENT_CENTER <br> ALIGMENT_RIGHT
   * @return
   */
  public DynamicReportBuilder addAutoText(byte type, byte position, byte alignment) {
    HorizontalBandAlignment alignment_ = HorizontalBandAlignment.buildAligment(alignment);
    AutoText text = new AutoText(type,position,alignment_);
    text.setWidth(AutoText.WIDTH_NOT_SET);
    text.setWidth2(AutoText.WIDTH_NOT_SET);
    addAutoText(text);
    return this;
  }
View Full Code Here

    for (Iterator iterator = positions.iterator(); iterator.hasNext();) {
      HorizontalBandAlignment currentAlignment = (HorizontalBandAlignment) iterator.next();
      int yOffset = 0;

      for (Iterator iter = getReport().getAutoTexts().iterator(); iter.hasNext();) {
        AutoText text = (AutoText) iter.next();
        if (text.getPosition() == AutoText.POSITION_HEADER && text.getAlignment().equals(currentAlignment)) {
          CommonExpressionsHelper.add(yOffset,(DynamicJasperDesign) getDesign(), this, headerband, text);
          yOffset += text.getHeight().intValue();
        }
      }
    }

    /** END */
 
View Full Code Here

    int total = 0;
    for (Iterator iterator = aligments.iterator(); iterator.hasNext();) {
      HorizontalBandAlignment currentAlignment = (HorizontalBandAlignment) iterator.next();
      int aux = 0;
      for (Iterator iter = getReport().getAutoTexts().iterator(); iter.hasNext();) {
        AutoText autotext = (AutoText) iter.next();
        if (autotext.getPosition() == position && currentAlignment.equals(autotext.getAlignment())) {
          aux += autotext.getHeight().intValue();
        }
      }
      if (aux > total)
        total = aux;
    }
View Full Code Here

    for (Iterator iterator = positions.iterator(); iterator.hasNext();) {
      HorizontalBandAlignment currentAlignment = (HorizontalBandAlignment) iterator.next();
      int yOffset = 0;

      for (Iterator iter = getReport().getAutoTexts().iterator(); iter.hasNext();) {
        AutoText text = (AutoText) iter.next();
        if (text.getPosition() == AutoText.POSITION_HEADER && text.getAlignment().equals(currentAlignment)) {
          CommonExpressionsHelper.add(yOffset,getDesign(), this, headerband, text);
          yOffset += text.getHeight().intValue();
        }
      }
    }

    /** END */
 
View Full Code Here

    int total = 0;
    for (Iterator iterator = aligments.iterator(); iterator.hasNext();) {
      HorizontalBandAlignment currentAlignment = (HorizontalBandAlignment) iterator.next();
      int aux = 0;
      for (Iterator iter = getReport().getAutoTexts().iterator(); iter.hasNext();) {
        AutoText autotext = (AutoText) iter.next();
        if (autotext.getPosition() == position && currentAlignment.equals(autotext.getAlignment())) {
          aux += autotext.getHeight().intValue();
        }
      }
      if (aux > total)
        total = aux;
    }
View Full Code Here

      int yOffset = 0;
      /**
       * Apply the autotext in footer if any
       */
      for (Iterator iter = getReport().getAutoTexts().iterator(); iter.hasNext();) {
        AutoText autotext = (AutoText) iter.next();
        if (autotext.getPosition() == AutoText.POSITION_FOOTER && autotext.getAlignment().equals(currentAlignment) ) {
          CommonExpressionsHelper.add(yOffset,getDesign(), this, footerband, autotext);
          yOffset += autotext.getHeight().intValue();
        }
      }

    }
  }
View Full Code Here

   * @param pattern   only for dates:  <br>PATTERN_DATE_DATE_ONLY <br> PATTERN_DATE_TIME_ONLY <br> PATTERN_DATE_DATE_TIME
   * @return
   */
  public DynamicReportBuilder addAutoText(byte type, byte position, byte alignment,byte pattern) {
    HorizontalBandAlignment alignment_ = HorizontalBandAlignment.buildAligment(alignment);
    AutoText text = new AutoText(type,position,alignment_,pattern);
    addAutoText(text);

    return this;
  }
View Full Code Here

   * @param width2  If autotext is of the type AUTOTEXT_PAGE_X_OF_Y or AUTOTEXT_PAGE_X_SLASH_Y, this defines the width given to the "total page" variable
   * @return
   */
  public DynamicReportBuilder addAutoText(byte type, byte position, byte alignment,byte pattern, int width, int width2) {
    HorizontalBandAlignment alignment_ = HorizontalBandAlignment.buildAligment(alignment);
    AutoText text = new AutoText(type,position,alignment_,pattern,width,width2);
    addAutoText(text);

    return this;
  }
View Full Code Here

TOP

Related Classes of ar.com.fdvs.dj.domain.AutoText

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.