Examples of JRBasePrintImage


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

    return image;
  }

  private JRPrintElement printImage(String imageName, int posX, int posY, int width, int height) {
    try {
      image = new JRBasePrintImage(jasperPrint.getDefaultStyleProvider());
      image.setX(posX);
      image.setY(posY);
      image.setWidth(width);
      image.setHeight(height);
      image.setScaleImage(JRImage.SCALE_IMAGE_FILL_FRAME);
View Full Code Here

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

            parcelDataListFinalization.add(parcelData);
        }
    }
    private JRPrintElement printImage(String imageName, int posX, int posY, int width, int height) {
        try {
            image = new JRBasePrintImage(jasperPrint.getDefaultStyleProvider());
            image.setX(posX);
            image.setY(posY);
            image.setWidth(width);
            image.setHeight(height);
            image.setScaleImage(JRImage.SCALE_IMAGE_FILL_FRAME);
View Full Code Here

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

        line.setHeight(15);
        return line;
    }
   
    private JRPrintElement printImage(String imageName, int posX, int posY, int width, int height) {
      JRBasePrintImage image = new JRBasePrintImage(jasperPrint.getDefaultStyleProvider());
      image.setX(posX);
      image.setY(posY);
      image.setWidth(width);
      image.setHeight(height);
      image.setScaleImage(JRImage.SCALE_IMAGE_FILL_FRAME);
        try {
           File photoPath = new File(Constants.PHOTO_DIR + imageName);
             if (photoPath.exists()) {
               image.setRenderer(
                   JRImageRenderer.getInstance(
                       JRImageLoader.loadImageDataFromLocation(Constants.PHOTO_DIR + imageName)
                   )
               );
             }
View Full Code Here

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

       
        return jasperPrint;
    }

    private JRPrintElement printImage(String imageName, int posX, int posY, int width, int height) {
      JRBasePrintImage image = new JRBasePrintImage(jasperPrint.getDefaultStyleProvider());
      image.setX(posX);
      image.setY(posY);
      image.setWidth(width);
      image.setHeight(height);
      image.setScaleImage(JRImage.SCALE_IMAGE_FILL_FRAME);
      try {
         File photoPath = new File(Constants.PHOTO_DIR + imageName);
             if (photoPath.exists()) {
               image.setRenderer(
                   JRImageRenderer.getInstance(
                       JRImageLoader.loadImageDataFromLocation(Constants.PHOTO_DIR + imageName)
                   )
               );
             }
View Full Code Here

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

        line.setHeight(0);
        return line;
    }

  private JRPrintElement printImage(String imageName, int posX, int posY, int width, int height) {
    JRBasePrintImage image = new JRBasePrintImage(jasperPrint.getDefaultStyleProvider());
    image.setX(posX);
    image.setY(posY);
    image.setWidth(width);
    image.setHeight(height);
    image.setScaleImage(JRImage.SCALE_IMAGE_FILL_FRAME);
    try {
      File photoPath = new File(Constants.PHOTO_DIR + imageName);
      if (photoPath.exists()) {
        image.setRenderer(JRImageRenderer.getInstance(JRImageLoader.loadImageDataFromLocation(Constants.PHOTO_DIR + imageName)));
      }
    } catch (JRException e) {
      e.printStackTrace();
    }
    return image;
View Full Code Here

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

        }
        return jasperPrint;
    }
   
    private JRPrintElement printImage(String imageName, int posX, int posY, int width, int height) {
        JRBasePrintImage image = new JRBasePrintImage(jasperPrint.getDefaultStyleProvider());
        image.setX(posX);
        image.setY(posY);
        image.setWidth(width);
        image.setHeight(height);
        image.setScaleImage(JRImage.SCALE_IMAGE_FILL_FRAME);
        try {
           File photoPath = new File(Constants.PHOTO_DIR + imageName);
             if (photoPath.exists()) {
               image.setRenderer(
                   JRImageRenderer.getInstance(
                       JRImageLoader.loadImageDataFromLocation(Constants.PHOTO_DIR + imageName)
                   )
               );
             }
View Full Code Here

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

        text.setStyle(titleStyle);
        return text;
    }
    private JRPrintImage printImage(String imageName, int posX, int posY, int width, int height) {
        try {
            image = new JRBasePrintImage(jasperPrint.getDefaultStyleProvider());
            image.setX(posX);
            image.setY(posY);
            image.setWidth(width);
            image.setHeight(height);
            image.setScaleImage(JRImage.SCALE_IMAGE_FILL_FRAME);
View Full Code Here

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

    private int convert(float milimeters) {
        return Math.round(milimeters*2.8f);
    }
   
    private JRPrintElement printImage(String imageName, int posX, int posY, int width, int height) {
      JRBasePrintImage image = new JRBasePrintImage(jasperPrint.getDefaultStyleProvider());
      image.setX(posX);
      image.setY(posY);
      image.setWidth(width);
      image.setHeight(height);
      image.setScaleImage(JRImage.SCALE_IMAGE_FILL_FRAME);
        try {
           File photoPath = new File(Constants.PHOTO_DIR + imageName);
             if (photoPath.exists()) {
               image.setRenderer(
                   JRImageRenderer.getInstance(
                       JRImageLoader.loadImageDataFromLocation(Constants.PHOTO_DIR + imageName)
                   )
               );
             }
View Full Code Here

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

        page.addElement(drawVerticalLine(posX+460, posY, 15));
        page.addElement(insertCenterBoldText("Desconto", posX+460, posY, 75));
    }

    private JRPrintElement printImage(String imageName, int posX, int posY, int width, int height) {
        JRBasePrintImage image = new JRBasePrintImage(jasperPrint.getDefaultStyleProvider());
        image.setX(posX);
        image.setY(posY);
        image.setWidth(width);
        image.setHeight(height);
        image.setScaleImage(JRImage.SCALE_IMAGE_FILL_FRAME);
        try {
           File photoPath = new File(Constants.PHOTO_DIR + imageName);
             if (photoPath.exists()) {
               image.setRenderer(
                   JRImageRenderer.getInstance(
                       JRImageLoader.loadImageDataFromLocation(Constants.PHOTO_DIR + imageName)
                   )
               );
             }
View Full Code Here

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

       
        return text;
    }

    private JRPrintElement printImage(String imageName, int posX, int posY, int width, int height) {
      JRBasePrintImage image = new JRBasePrintImage(jasperPrint.getDefaultStyleProvider());
      image.setX(posX);
      image.setY(posY);
      image.setWidth(width);
      image.setHeight(height);
      image.setScaleImage(JRImage.SCALE_IMAGE_FILL_FRAME);
        try {
           File photoPath = new File(Constants.PHOTO_DIR + imageName);
             if (photoPath.exists()) {
               image.setRenderer(
                   JRImageRenderer.getInstance(
                       JRImageLoader.loadImageDataFromLocation(Constants.PHOTO_DIR + imageName)
                   )
               );
             }
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.