Package ar.com.fdvs.dj.domain

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


      //The height can be the sum of the heights of all the columns starting from the current one, up to the inner most one.
      int auxWidth = calculateRowHeaderMaxWidth(crosstabColumn);
      colTitle.setWidth(auxWidth);

      Style headerstyle = crosstabColumn.getHeaderStyle() == null ? this.djcross.getColumnHeaderStyle(): crosstabColumn.getHeaderStyle();
     
      if (headerstyle != null){
        layoutManager.applyStyleToElement(headerstyle,colTitle);
        colHeaerContent.setBackcolor(headerstyle.getBackgroundColor());
      }


      colHeaerContent.addElement(colTitle);
      colHeaerContent.setMode(new Byte(Transparency.OPAQUE.getValue()));
View Full Code Here


    JRDesignCellContents totalHeaderContent = new JRDesignCellContents();
    ctRowGroup.setTotalHeader(totalHeaderContent);
    ctRowGroup.setTotalPosition(BucketDefinition.TOTAL_POSITION_END); //FIXME the total can be at the end of a group or at the beginin
   

    Style totalHeaderstyle = crosstabRow.getTotalHeaderStyle() == null ? this.djcross.getRowTotalheaderStyle(): crosstabRow.getTotalHeaderStyle();
   
    totalHeaderContent.setMode(new Byte(Transparency.OPAQUE.getValue()));
   
    JRDesignTextField element = new JRDesignTextField();
    JRDesignExpression exp = ExpressionUtils.createExpression("\"Total "+crosstabRow.getTitle()+"\"",String.class);
    element.setExpression(exp);
    element.setHeight(crosstabRow.getHeight());

    if (totalHeaderstyle != null) {
      totalHeaderContent.setBackcolor(totalHeaderstyle.getBackgroundColor());
      layoutManager.applyStyleToElement(totalHeaderstyle, element);
    }

    //The width can be the sum of the with of all the rows starting from the current one, up to the inner most one.
    int auxWidth = 0;
View Full Code Here

  private void createColumTotalHeader(JRDesignCrosstabColumnGroup ctColGroup, DJCrosstabColumn crosstabColumn) {
    JRDesignCellContents totalHeaderContent = new JRDesignCellContents();
    ctColGroup.setTotalHeader(totalHeaderContent);
    ctColGroup.setTotalPosition(BucketDefinition.TOTAL_POSITION_END);

    Style totalHeaderstyle = crosstabColumn.getTotalHeaderStyle() == null ? this.djcross.getColumnTotalheaderStyle(): crosstabColumn.getTotalHeaderStyle();
   
    totalHeaderContent.setMode(new Byte(Transparency.OPAQUE.getValue()));

    JRDesignExpression exp = ExpressionUtils.createExpression("\"Total "+crosstabColumn.getTitle()+"\"",String.class);
    JRDesignTextField element = new JRDesignTextField();
    element.setExpression(exp);
    element.setWidth(crosstabColumn.getWidth());


    if (totalHeaderstyle != null) {
      layoutManager.applyStyleToElement(totalHeaderstyle, element);
      totalHeaderContent.setBackcolor(totalHeaderstyle.getBackgroundColor());
    }

    //The height can be the sum of the heights of all the columns starting from the current one, up to the inner most one.
    int auxWidth = 0;
    boolean found = false;
View Full Code Here

    super();

    if (blank)
      style = Style.createBlankStyle(null);
    else
      style = new Style();

  }
View Full Code Here

    super();

    if (blank)
      style = Style.createBlankStyle(null);
    else
      style = new Style();

    style.setName(name);
  }
View Full Code Here

    super();

    if (blank)
      style = Style.createBlankStyle(null);
    else
      style = new Style();

    style.setName(name);
    style.setParentStyleName(parentName);
  }
View Full Code Here

//  protected Map headerGroupVariables = new TreeMap();
//  protected Map footerGroupVariables = new TreeMap();

  public FastReportBuilder(){
    currencyStyle = new Style("currencyStyle");
    currencyStyle.setHorizontalAlign(HorizontalAlign.RIGHT);

    numberStyle = new Style("numberStyle");
    numberStyle.setHorizontalAlign(HorizontalAlign.RIGHT);

    Style defaultHeaderStyle = options.getDefaultHeaderStyle();
    defaultHeaderStyle.setFont(Font.ARIAL_MEDIUM_BOLD);
    defaultHeaderStyle.setHorizontalAlign(HorizontalAlign.CENTER);
    defaultHeaderStyle.setBorderBottom(Border.THIN);
    defaultHeaderStyle.setVerticalAlign(VerticalAlign.MIDDLE);
    defaultHeaderStyle.setBackgroundColor(Color.LIGHT_GRAY);
    defaultHeaderStyle.setTransparency(Transparency.OPAQUE);

    Style titleStyle2 = report.getTitleStyle();
    titleStyle2.setFont(Font.ARIAL_BIG_BOLD);
    titleStyle2.setHorizontalAlign(HorizontalAlign.CENTER);
    titleStyle2.setVerticalAlign(VerticalAlign.TOP);
  }
View Full Code Here

    }   
  }
 
 
  public static void main(String[] args) {
    JRDesignStyle s1 = new Style().transform();
    JRDesignStyle s2 = new Style().transform();
   
    s1.setBold(Boolean.TRUE);
    s1.setItalic(Boolean.TRUE);
    s1.setUnderline(Boolean.TRUE);
   
View Full Code Here

//  protected Map headerGroupVariables = new TreeMap();
//  protected Map footerGroupVariables = new TreeMap();

  public FastReportBuilder(){
    currencyStyle = new Style("currencyStyle");
    currencyStyle.setHorizontalAlign(HorizontalAlign.RIGHT);

    numberStyle = new Style("numberStyle");
    numberStyle.setHorizontalAlign(HorizontalAlign.RIGHT);

    Style defaultHeaderStyle = options.getDefaultHeaderStyle();
    defaultHeaderStyle.setFont(Font.ARIAL_MEDIUM_BOLD);
    defaultHeaderStyle.setHorizontalAlign(HorizontalAlign.CENTER);
    defaultHeaderStyle.setBorderBottom(Border.THIN);
    defaultHeaderStyle.setVerticalAlign(VerticalAlign.MIDDLE);
    defaultHeaderStyle.setBackgroundColor(Color.LIGHT_GRAY);
    defaultHeaderStyle.setTransparency(Transparency.OPAQUE);

    Style titleStyle2 = report.getTitleStyle();
    titleStyle2.setFont(Font.ARIAL_BIG_BOLD);
    titleStyle2.setHorizontalAlign(HorizontalAlign.CENTER);
    titleStyle2.setVerticalAlign(VerticalAlign.TOP);
  }
View Full Code Here

   * Creates the graphic element to be shown when the datasource is empty
   */
  protected void setWhenNoDataBand() {
    log.debug("setting up WHEN NO DATA band");
    String whenNoDataText = getReport().getWhenNoDataText();
    Style style = getReport().getWhenNoDataStyle();
    if (whenNoDataText == null || "".equals(whenNoDataText))
      return;
    JRDesignBand band = new JRDesignBand();
    getDesign().setNoData(band);

View Full Code Here

TOP

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

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.