Examples of JRBasePrintRectangle


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

        text.setLeadingOffset(-4.0f);
        text.setStyle(bodyStyle);
        return text;
    }
    private JRPrintRectangle drawGrayRectangle(int posX, int posY, int width, int height, int radius) {
        rectangle = new JRBasePrintRectangle(jasperPrint.getDefaultStyleProvider());
        rectangle.setX(posX);
        rectangle.setY(posY);
        rectangle.setWidth(width);
        rectangle.setHeight(height);
        rectangle.setRadius(radius);
View Full Code Here

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

        rectangle.setRadius(radius);
        rectangle.setBackcolor(new Color(204, 204, 204));
        return rectangle;
    }
    private JRPrintRectangle drawRectangle(int posX, int posY, int width, int height, int radius) {
        rectangle = new JRBasePrintRectangle(jasperPrint.getDefaultStyleProvider());
        rectangle.setX(posX);
        rectangle.setY(posY);
        rectangle.setWidth(width);
        rectangle.setHeight(height);
        rectangle.setRadius(radius);
View Full Code Here

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

    }
   
   
   
    private JRPrintRectangle drawGrayRectangle(int posX, int posY, int width, int height, int radius) {
        rectangle = new JRBasePrintRectangle(jasperPrint.getDefaultStyleProvider());
        rectangle.setX(posX);
        rectangle.setY(posY);
        rectangle.setWidth(width);
        rectangle.setHeight(height);
        rectangle.setRadius(radius);
View Full Code Here

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

        rectangle.setBackcolor(new Color(204, 204, 204));
        return rectangle;
    }
   
    private JRPrintRectangle drawRectangle(int posX, int posY, int width, int height, int radius) {
        rectangle = new JRBasePrintRectangle(jasperPrint.getDefaultStyleProvider());
        rectangle.setX(posX);
        rectangle.setY(posY);
        rectangle.setWidth(width);
        rectangle.setHeight(height);
        rectangle.setRadius(radius);
View Full Code Here

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

       
        return jasperPrint;
    }

    private void createHeader(JRPrintPage page) {
      JRBasePrintRectangle rectangle = new JRBasePrintRectangle(jasperPrint.getDefaultStyleProvider());
        rectangle.setX(posX);
        rectangle.setY(posY);
        rectangle.setWidth(535);
        rectangle.setHeight(20);
        rectangle.setRadius(3);
        rectangle.setBackcolor(new Color(204, 204, 204));
        page.addElement(rectangle);
       
        page.addElement(printBoldText("Dia", convert(10)+5, posY+2, 30));
        page.addElement(printHorizontalLine(convert(10)+40, posY, 20));
        page.addElement(printBoldText("Nome", convert(10)+43, posY+2, 490));
View Full Code Here

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

        }
        return image;
    }

    private JRPrintRectangle drawGrayRectangle(int posX, int posY, int width, int height, int radius) {
        rectangle = new JRBasePrintRectangle(jasperPrint.getDefaultStyleProvider());
        rectangle.setX(posX);
        rectangle.setY(posY);
        rectangle.setWidth(width);
        rectangle.setHeight(height);
        rectangle.setRadius(radius);
View Full Code Here

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

        rectangle.setBackcolor(new Color(204, 204, 204));
        return rectangle;
    }
   
    private JRPrintRectangle drawRectangle(int posX, int posY, int width, int height, int radius) {
        rectangle = new JRBasePrintRectangle(jasperPrint.getDefaultStyleProvider());
        rectangle.setX(posX);
        rectangle.setY(posY);
        rectangle.setWidth(width);
        rectangle.setHeight(height);
        rectangle.setRadius(radius);
View Full Code Here

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

        line.setWidth(width);
        line.setHeight(0);
        return line;
    }
    private JRPrintRectangle drawGrayRectangle(int posX, int posY, int width, int height, int radius) {
        rectangle = new JRBasePrintRectangle(jasperPrint.getDefaultStyleProvider());
        rectangle.setX(posX);
        rectangle.setY(posY);
        rectangle.setWidth(width);
        rectangle.setHeight(height);
        rectangle.setRadius(radius);
View Full Code Here

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

        rectangle.setBackcolor(new Color(204, 204, 204));
        return rectangle;
    }
   
    private JRPrintRectangle drawRectangle(int posX, int posY, int width, int height, int radius) {
        rectangle = new JRBasePrintRectangle(jasperPrint.getDefaultStyleProvider());
        rectangle.setX(posX);
        rectangle.setY(posY);
        rectangle.setWidth(width);
        rectangle.setHeight(height);
        rectangle.setRadius(radius);
View Full Code Here

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

                for(int periods=0; periods<3; periods++){
                    String weekDay = new SimpleDateFormat("EEEEE").format(new GDDate(date).getDate()).replace("-feira", "");
                    if(getHourVacancy(weekDay, ((periods+1)*6)+1, ((2+periods)*6))>0){
                        posX = convert(10);
                       
                        JRPrintRectangle rectangle = new JRBasePrintRectangle(jasperPrint.getDefaultStyleProvider());
                        rectangle.setX(posX);
                        rectangle.setY(posY);
                        rectangle.setWidth(535);
                        rectangle.setHeight(14);
                        rectangle.setBackcolor(new Color(153, 153, 153));
                        page.addElement(rectangle);
                       
                        text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                        text.setText(period.get(periods));
                        text.setX(posX);
                        text.setY(posY);
                        text.setWidth(535);
                        text.setHeight(14);
                        text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_CENTER);
                        text.setLineSpacingFactor(2.0f);
                        text.setLeadingOffset(-4.0f);
                        text.setStyle(boldStyle);
                        page.addElement(text);
                       
                        posY += 14;
                        int posYTemp = 0;
                       
                        for(int hour=(((periods+1)*6)+1); hour<=((2+periods)*6); hour++){
                            if(getMaxVacancy(weekDay, hour)>0){
    //                      if(!isHourVacancy(j)){
                                int numberOfColumns = getHourVacancy(weekDay, ((periods+1)*6)+1, ((2+periods)*6));
                                int width = Math.round(535/numberOfColumns);
                               
                                rectangle = new JRBasePrintRectangle(jasperPrint.getDefaultStyleProvider());
                                rectangle.setX(posX);
                                rectangle.setY(posY);
                                rectangle.setWidth(width);
                                rectangle.setHeight(14);
                                rectangle.setBackcolor(new Color(204, 204, 204));
                                page.addElement(rectangle);
                               
                                text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                                text.setText(String.valueOf(hour));
                                text.setX(posX);
                                text.setY(posY);
                                text.setWidth(width);
                                text.setHeight(14);
                                text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_CENTER);
                                text.setLineSpacingFactor(2.0f);
                                text.setLeadingOffset(-4.0f);
                                text.setStyle(boldStyle);
                                page.addElement(text);
                               
                                posYTemp =posY;
                                for (int box = 0; box < numberTotalComputers; box++) {
                                    posYTemp +=14;
                                    rectangle = new JRBasePrintRectangle(jasperPrint.getDefaultStyleProvider());
                                    rectangle.setX(posX);
                                    rectangle.setY(posYTemp);
                                    rectangle.setWidth(width);
                                    rectangle.setHeight(14);
                                    page.addElement(rectangle);
                                   
                                    JRPrintLine line = new JRBasePrintLine(jasperPrint.getDefaultStyleProvider());
                                    line.setX(posX+14);
                                    line.setY(posYTemp);
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.