Package net.sf.jasperreports.engine.design

Examples of net.sf.jasperreports.engine.design.JRDesignFrame.addElement()


    {
      JRChild child = (JRChild) iterator.next();
      JRChild childClone = (JRChild) child.clone(footerFrame);
      if (childClone instanceof JRElement)
      {
        footerFrame.addElement((JRElement) childClone);
      }
      else if (childClone instanceof JRElementGroup)
      {
        footerFrame.addElementGroup((JRElementGroup) childClone);
      }
View Full Code Here


            {
              scaleCellElement(subelement, originalWidth, width);
            }
          }
        }
        frame.addElement(element);
      }
      else if (child instanceof JRElementGroup)
      {
        JRElementGroup elementGroup = (JRElementGroup) child;
        // clone the elements in order to set the frame as group
View Full Code Here

    staticText.setBackcolor(new Color(0x33, 0x33, 0x33));
    staticText.setMode(ModeEnum.OPAQUE);
    staticText.setHorizontalAlignment(HorizontalAlignEnum.CENTER);
    staticText.setStyle(boldStyle);
    staticText.setText("ID");
    frame.addElement(staticText);
    staticText = new JRDesignStaticText();
    staticText.setX(55);
    staticText.setY(0);
    staticText.setWidth(205);
    staticText.setHeight(15);
View Full Code Here

    staticText.setForecolor(Color.white);
    staticText.setBackcolor(new Color(0x33, 0x33, 0x33));
    staticText.setMode(ModeEnum.OPAQUE);
    staticText.setStyle(boldStyle);
    staticText.setText("Name");
    frame.addElement(staticText);
    staticText = new JRDesignStaticText();
    staticText.setX(260);
    staticText.setY(0);
    staticText.setWidth(255);
    staticText.setHeight(15);
View Full Code Here

    staticText.setForecolor(Color.white);
    staticText.setBackcolor(new Color(0x33, 0x33, 0x33));
    staticText.setMode(ModeEnum.OPAQUE);
    staticText.setStyle(boldStyle);
    staticText.setText("Street");
    frame.addElement(staticText);
    jasperDesign.setPageHeader(band);

    //Column header
    band = new JRDesignBand();
    jasperDesign.setColumnHeader(band);
View Full Code Here

      farme.getLineBox().setPadding(0);
      farme.setHeight((int)Math.round(getFieldHeigth()));
      farme.setStyle(normalStyle);
      farme.setPositionType(JRDesignFrame.POSITION_TYPE_FLOAT);
      farme.addElement(nameField);
      farme.addElement(dataField);
     
      switch (val.alignmentType){
        case dataInOneColoumnByRightAndHalfRigthAlign:
          nameField.setHorizontalAlignment(JRDesignTextField.HORIZONTAL_ALIGN_RIGHT);
          break;
View Full Code Here

      farme.setWidth(destingWidth);
      farme.getLineBox().setPadding(0);
      farme.setHeight((int)Math.round(getFieldHeigth()));
      farme.setStyle(normalStyle);
      farme.setPositionType(JRDesignFrame.POSITION_TYPE_FLOAT);
      farme.addElement(nameField);
      farme.addElement(dataField);
     
      switch (val.alignmentType){
        case dataInOneColoumnByRightAndHalfRigthAlign:
          nameField.setHorizontalAlignment(JRDesignTextField.HORIZONTAL_ALIGN_RIGHT);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.