Package net.sf.jasperreports.engine.base

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


                   
                    JRPrintPage page = new JRBasePrintPage();
                   
                    page.addElement(image);
                   
                    JRPrintText text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                    text.setText("Prezad"+genderChar+" alun"+genderChar+"\n"+person.getName());
                    text.setX(200);
                    text.setY(250);
                    text.setWidth(470);
                    text.setHeight(50);
                    text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_LEFT);
                    text.setLineSpacingFactor(2.0f);
                    text.setLeadingOffset(-4.0f);
                    text.setStyle(bodyStyle);
                    page.addElement(text);
                   
                    text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                    text.setText("Ficamos muito felizes em receber a sua matricula e t�-l"+genderChar+" como cliente. Voc� agora faz parte de um TIME animado, altamente profissional e que est� aqui para ensin�-l"+genderChar+", tirar suas d�vidas, ajuda-l"+genderChar+" a alcan�ar os seus resultados e tamb�m para um bom relacionamento de amizade e companheirismo.\n\n" +
                            "Saiba que faremos o poss�vel para tornar o seu curso em um aprendizado de qualidade e excel�ncia, de forma a atender  suas expectativas e necessidades.\n\n" +
                    "Juntos seremos respons�veis por tornar todos os momentos em que voc� estiver aqui conosco, nos mais agrad�veis poss�veis. Portanto, n�o hesite em nos comunicar ou expressar suas opini�es, informando-nos sobre qualquer acontecimento que n�o lhe agrade, ou para sugest�es, elogios e cr�ticas.");
                    text.setX(95);
                    text.setY(350);
                    text.setWidth(470);
                    text.setHeight(200);
                    text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_JUSTIFIED);
                    text.setLineSpacingFactor(10.0f);
                    text.setLeadingOffset(-4.0f);
                    text.setStyle(bodyStyle);
                    page.addElement(text);
                   
                    text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                    text.setText("Sua opini�o � muito importante para n�s!\nE teremos um imenso prazer em atend�-lo.");
                    text.setX(95);
                    text.setY(600);
                    text.setWidth(470);
                    text.setHeight(50);
                    text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_CENTER);
                    text.setLineSpacingFactor(2.0f);
                    text.setLeadingOffset(-4.0f);
                    text.setStyle(boldStyle);
                    page.addElement(text);
                   
                    text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                    text.setText("Um abra�o,");
                    text.setX(95);
                    text.setY(670);
                    text.setWidth(470);
                    text.setHeight(50);
                    text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_RIGHT);
                    text.setLineSpacingFactor(2.0f);
                    text.setLeadingOffset(-4.0f);
                    text.setStyle(bodyStyle);
                    page.addElement(text);
                   
                    text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                    text.setText( gd.get("namefancy").toString());
                    text.setX(95);
                    text.setY(685);
                    text.setWidth(470);
                    text.setHeight(50);
                    text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_RIGHT);
                    text.setLineSpacingFactor(2.0f);
                    text.setLeadingOffset(-4.0f);
                    text.setStyle(boldStyle);
                    page.addElement(text);
                   
//                    text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
//                    text.setText("\"Preparar todos os alunos de forma r�pida e eficiente para atuarem no mercado de trabalho, possibilitando-lhes alcan�ar seus objetos pessoais e profissionais.\"");
//                    text.setX(185);
View Full Code Here


        line.setHeight(0);
        page.addElement(line);
    }

    private JRPrintText insertText(String textToWrite, int posX, int sizeWidth) {
        text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
        text.setText(textToWrite);
        text.setX(posX);
        text.setY(posY+2);
        text.setWidth(sizeWidth);
        text.setHeight(15);
View Full Code Here

        text.setStyle(bodyStyle);
        return text;
    }
   
    private JRPrintText insertTitleBox(String textToWrite) {
        text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
        text.setText(textToWrite);
        text.setX(convert(10)+10);
        text.setY(posY+4);
        text.setWidth(535);
        text.setHeight(15);
View Full Code Here

        text.setLeadingOffset(-4.0f);
        text.setStyle(bodyStyle);
        return text;
    }
    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 insertFooterLeft(String textToWrite) {
        text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
        text.setText(textToWrite);
        text.setX(convert(10));
        text.setY(posY+2);
        text.setWidth(265);
        text.setHeight(15);
View Full Code Here

        text.setStyle(boldStyle);
        return text;
    }
   
    private JRPrintText insertFooterRight(String textToWrite) {
        text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
        text.setText(textToWrite);
        text.setX(convert(10)+270);
        text.setY(posY+2);
        text.setWidth(265);
        text.setHeight(15);
View Full Code Here

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

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

        return jasperPrint;
    }

    private JRPrintElement insertText(JRDesignStyle bodyStyle, String textToWrite, int posX, int sizeWidth) {
        text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
        text.setText(textToWrite);
        text.setX(posX);
        text.setY(posY+2);
        text.setWidth(sizeWidth);
        text.setHeight(15);
View Full Code Here

       
        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(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.