Examples of Barcode


Examples of net.sourceforge.barbecue.Barcode

    final Object value = e.getElementType().getValue(new DebugExpressionRuntime(), e);
    assertTrue(value instanceof BarcodeWrapper);
    final BarcodeWrapper w = (BarcodeWrapper) value;
    w.setStyleSheet(e.getStyle());
    final Barcode barcode = w.getBarcode();
    final Field barWidth = Barcode.class.getDeclaredField("barWidth");
    barWidth.setAccessible(true);
    final Field barHeight = Barcode.class.getDeclaredField("barHeight");
    barHeight.setAccessible(true);
    assertEquals(1, barWidth.get(barcode));
View Full Code Here

Examples of net.sourceforge.barbecue.Barcode

        panel.setBounds(x, y, tekEtiketGen, tekEtiketYuks);
        panel.setLayout(null);
        Rectangle barkodPanelBounds = etiket.getBounds();
        if (barkodPanelBounds != null) {
          Rectangle barkodBounds = etiket.getBarkod().getBounds();
          Barcode barkod = null;

          try {
            if (barkodUrun != null) {
              barkod = BarcodeFactory.createCode39(barkodUrun,
                  false);
            } else {
              barkod = BarcodeFactory.createCode39("123456789",
                  false);
            }

          } catch (BarcodeException e) {

            e.printStackTrace();
          }

          barkod.setSize(barkodBounds.getSize());
          barkod.setBarHeight(20);
          barkod.setBarWidth(1);
          barkod.setFont(new Font("Times New Roman", Font.BOLD, 13));
          JPanel barkodPanel = new JPanel();
          barkodPanel.setBackground(Color.white);
          barkodPanel.setLayout(null);
          barkodPanel.setBounds(barkodPanelBounds);
View Full Code Here

Examples of net.sourceforge.barbecue.Barcode

      image.setWidth(width);
      image.setHeight(height);
        try {
            image.setScaleImage(JRImage.SCALE_IMAGE_FILL_FRAME);
           
            Barcode barcode = BarcodeFactory.createCode128(code);
            barcode.setDrawingText(false);
                image.setRenderer(
                        JRImageRenderer.getInstance(JRImageLoader.loadImageDataFromAWTImage(BarcodeImageHandler.getImage(barcode))
                        )
                );
        } catch (BarcodeException e) {
View Full Code Here

Examples of net.sourceforge.barbecue.Barcode

            image.setY(posY);
            image.setWidth(width);
            image.setHeight(height);
            image.setScaleImage(JRImage.SCALE_IMAGE_FILL_FRAME);
           
            Barcode barcode = BarcodeFactory.createCode128(code);
            barcode.setDrawingText(false);
                image.setRenderer(
                        JRImageRenderer.getInstance(JRImageLoader.loadImageDataFromAWTImage(BarcodeImageHandler.getImage(barcode))
                        )
                );
        } catch (BarcodeException e) {
View Full Code Here

Examples of net.sourceforge.barbecue.Barcode

      image.setY(posY);
      image.setWidth(width);
      image.setHeight(height);
      image.setScaleImage(JRImage.SCALE_IMAGE_FILL_FRAME);

      Barcode barcode = BarcodeFactory.createCode128(code);
      barcode.setDrawingText(false);
      image.setRenderer(
          JRImageRenderer.getInstance(JRImageLoader.loadImageDataFromAWTImage(BarcodeImageHandler.getImage(barcode))
          )
      );
    } catch (BarcodeException e) {
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.