Package net.sf.jasperreports.engine.base

Examples of net.sf.jasperreports.engine.base.JRBasePrintText


        rectangle.setRadius(radius);
        return rectangle;
    }
   
    private JRPrintText insertTitle(String textToWrite, int posX, int posY, int sizeWidth) {
        text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
        text.setText(textToWrite);
        text.setX(posX);
        text.setY(posY);
        text.setWidth(sizeWidth);
        text.setHeight(25);
View Full Code Here


        text.setStyle(titleStyle);
        return text;
    }
   
    private JRPrintText insertNormalText(String textToWrite, int posX, int posY, int sizeWidth) {
        text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
        text.setText(textToWrite);
        text.setX(posX);
        text.setY(posY);
        text.setWidth(sizeWidth);
        text.setHeight(12);
View Full Code Here

        text.setStyle(normalStyle);
        return text;
    }
   
    private JRPrintText insertBoldText(String textToWrite, int posX, int posY, int sizeWidth) {
        text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
        text.setText(textToWrite);
        text.setX(posX);
        text.setY(posY);
        text.setWidth(sizeWidth);
        text.setHeight(12);
View Full Code Here

        text.setStyle(boldStyle);
        return text;
    }
   
    private JRPrintText insertCenterBoldText(String textToWrite, int posX, int posY, int sizeWidth) {
        text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
        text.setText(textToWrite);
        text.setX(posX);
        text.setY(posY);
        text.setWidth(sizeWidth);
        text.setHeight(12);
View Full Code Here

        text.setStyle(boldStyle);
        return text;
    }
   
    private JRPrintText insertRightText(String textToWrite, int posX, int posY, int sizeWidth) {
        text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
        text.setText(textToWrite);
        text.setX(posX);
        text.setY(posY);
        text.setWidth(sizeWidth);
        text.setHeight(12);
View Full Code Here

        text.setStyle(normalStyle);
        return text;
    }
   
    private JRPrintText insertFooter() {
        text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
        text.setText("Criado por Gerente Digital.");
        text.setX(convert(10));
        text.setY(convert(290)-10);
        text.setWidth(convert(190));
        text.setHeight(10);
View Full Code Here

           
            if(isSimpleCertifyd){
               
                JRPrintPage page = new JRBasePrintPage();
               
                JRPrintText text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                text.setText("Certificamos que "+genderChar+" alun"+genderChar);
                text.setX(convert(20));
                text.setY(convert(65) + 10);
                text.setWidth(730);
                text.setHeight(27);
                text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_CENTER);
                text.setLineSpacingFactor(2.0f);
                text.setLeadingOffset(-4.0f);
                text.setStyle(bodyStyle);
                page.addElement(text);
               
                text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                text.setText(person.getName());
                text.setX(convert(20));
                text.setY(convert(65) + 43);
                text.setWidth(730);
                text.setHeight(53);
                text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_CENTER);
                text.setLineSpacingFactor(2.0f);
                text.setLeadingOffset(-4.0f);
                text.setStyle(nameStyle);
                page.addElement(text);
               
                text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                text.setText("concluiu o  programa de cursos OPERADOR DE COMPUTADOR e est� apto para ocupar e exercer atividades relacionadas aos treinamentos descritos abaixo:");
                text.setX(convert(20));
                text.setY(convert(65) + 120);
                text.setWidth(730);
                text.setHeight(65);
                text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_CENTER);
                text.setLineSpacingFactor(2.0f);
                text.setLeadingOffset(-4.0f);
                text.setStyle(bodyStyle);
                page.addElement(text);
               
                String listCourses = "";
                for (int i = 0; i < courses.size(); i++) {
                  system.execute(new SetCourseAsPrinted(registration, courses.get(i)));
                  listCourses += courses.get(i);
                    if(i != courses.size() - 1) {
                        listCourses += ", ";
                    }
                }
               
                text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                text.setText(listCourses);
                text.setX(convert(20));
                text.setY(convert(65) + 210);
                text.setWidth(730);
                text.setHeight(75);
                text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_CENTER);
                text.setLineSpacingFactor(2.0f);
                text.setLeadingOffset(-4.0f);
                text.setStyle(boldStyle);
                page.addElement(text);
               
                jasperPrint.addPage(page);
            }
            else {
               
                JRPrintPage page = new JRBasePrintPage();
               
                JRPrintText text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                text.setText(person.getName());
                text.setX(convert(20));
                text.setY(convert(45) + 6);
                text.setWidth(730);
                text.setHeight(53);
                text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_CENTER);
                text.setLineSpacingFactor(2.0f);
                text.setLeadingOffset(-4.0f);
                text.setStyle(nameStyle);
                page.addElement(text);
               
                text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                text.setText("Certificamos que o aluno acima descrito, concluiu e alcan�ou \no mais alto grau de Qualifica��o Profissional durante o Programa de cursos:");
                text.setX(convert(20));
                text.setY(convert(45) + 63);
                text.setWidth(730);
                text.setHeight(63);
                text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_CENTER);
                text.setLineSpacingFactor(2.0f);
                text.setLeadingOffset(-4.0f);
                text.setStyle(bodyStyle);
                page.addElement(text);
               
                JRPrintRectangle rectangle = new JRBasePrintRectangle(jasperPrint.getDefaultStyleProvider());
                rectangle.setX(convert(20)+65);
                rectangle.setY(convert(45)+130);
                rectangle.setWidth(600);
                rectangle.setHeight(62);
                page.addElement(rectangle);
               
                text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                text.setText("T�cnico de Computa��o Junior");
                text.setX(convert(20));
                text.setY(convert(45) + 132);
                text.setWidth(730);
                text.setHeight(62);
                text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_CENTER);
                text.setLineSpacingFactor(2.0f);
                text.setLeadingOffset(-4.0f);
                text.setStyle(titleStyle);
                page.addElement(text);
               
                text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                text.setText("M�dulo Profissionalizante");
                text.setX(convert(20));
                text.setY(convert(45) + 166);
                text.setWidth(730);
                text.setHeight(24);
                text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_CENTER);
                text.setLineSpacingFactor(2.0f);
                text.setLeadingOffset(-4.0f);
                text.setStyle(bodyStyle);
                page.addElement(text);
               
                text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                text.setText("Estando apto � ocupar e exercer atividades relacionadas aos seguintes treinamentos:");
                text.setX(convert(20));
                text.setY(convert(45) + 200);
                text.setWidth(730);
                text.setHeight(23);
                text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_CENTER);
                text.setLineSpacingFactor(2.0f);
                text.setLeadingOffset(-4.0f);
                text.setStyle(bodyStyle);
                page.addElement(text);
               
                String listCourses = "";
                for (int i = 0; i < courses.size(); i++) {
                    listCourses += courses.get(i);
                    if(i != courses.size() - 1) {
                        listCourses += ", ";
                    }
                }
               
                text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                text.setText(listCourses);
                text.setX(convert(20));
                text.setY(convert(45) + 232);
                text.setWidth(730);
                text.setHeight(65);
                text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_CENTER);
                text.setLineSpacingFactor(2.0f);
                text.setLeadingOffset(-4.0f);
                text.setStyle(boldStyle);
                page.addElement(text);
               
                jasperPrint.addPage(page);
            }
        } catch (Exception e) {
View Full Code Here

        line.setPen(JRDesignLine.PEN_DOTTED);
        return line;
    }
   
    private JRPrintElement printLeftBoldText(String textToWrite, int posX, int posY, int width, int height) {
        text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
        text.setText(textToWrite);
        text.setX(posX);
        text.setY(posY);
        text.setWidth(width);
        text.setHeight(height);
View Full Code Here

        line.setHeight(height);
        return line;
    }

    private JRPrintElement printJustifyText(String textToWrite, int posX, int posY, int width, int height) {
        text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
        text.setText(textToWrite);
        text.setX(posX);
        text.setY(posY);
        text.setWidth(width);
        text.setHeight(height);
View Full Code Here

        text.setStyle(normalStyle);
        return text;
    }

    private JRPrintElement printRightText(String textToWrite, int posX, int posY, int width) {
        text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
        text.setText(textToWrite);
        text.setX(posX);
        text.setY(posY);
        text.setWidth(width);
        text.setHeight(15);
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.base.JRBasePrintText

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.