Adempiere 3.5.2a

org.compiere.print.layout
Class BarcodeElement

java.lang.Object
  extended by org.compiere.print.layout.PrintElement
      extended by org.compiere.print.layout.BarcodeElement
All Implemented Interfaces:
ImageObserver

public class BarcodeElement
extends PrintElement

Barcode Print Element

Version:
$Id: BarcodeElement.java,v 1.2 2006/07/30 00:53:02 jjanke Exp $
Author:
Jorg Janke, Teo Sarca, SC ARHIPAC SERVICE SRL
  • FR [ 1803359 ] Migrate to barbecue 1.1

  • Field Summary
     
    Fields inherited from class org.compiere.print.layout.PrintElement
    LINK_COLOR, log, p_FieldAlignmentType, p_height, p_maxHeight, p_maxWidth, p_pageLocation, p_sizeCalculated, p_width
     
    Fields inherited from interface java.awt.image.ImageObserver
    ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
     
    Constructor Summary
    BarcodeElement(String code, MPrintFormatItem item)
              Barcode Element Constructor
     
    Method Summary
    protected  boolean calculateSize()
              Layout and Calculate Size Set p_width & p_height
     net.sourceforge.barbecue.Barcode getBarcode()
              Get Barcode
     boolean isAllowOverflow()
               
     boolean isValid()
              Is Barcode Valid
     void paint(Graphics2D g2D, int pageNo, Point2D pageStart, Properties ctx, boolean isView)
              Paint Element
     String toString()
              String Representation
     
    Methods inherited from class org.compiere.print.layout.PrintElement
    getAbsoluteLocation, getBounds, getDetailInfo, getDrillAcross, getDrillDown, getHeight, getHeight, getLocation, getPageCount, getWidth, imageUpdate, isTranslated, layout, setLocation, setMaxHeight, setMaxWidth, translate, waitForLoad
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
     

    Constructor Detail

    BarcodeElement

    public BarcodeElement(String code,
                          MPrintFormatItem item)
    Barcode Element Constructor

    Parameters:
    code - barcode data string
    item - format item
    Method Detail

    getBarcode

    public net.sourceforge.barbecue.Barcode getBarcode()
    Get Barcode

    Returns:
    Barcode

    isValid

    public boolean isValid()
    Is Barcode Valid

    Returns:
    true if valid

    calculateSize

    protected boolean calculateSize()
    Layout and Calculate Size Set p_width & p_height

    Specified by:
    calculateSize in class PrintElement
    Returns:
    true if calculated

    isAllowOverflow

    public boolean isAllowOverflow()
    Returns:
    can this element overflow over the next fields

    paint

    public void paint(Graphics2D g2D,
                      int pageNo,
                      Point2D pageStart,
                      Properties ctx,
                      boolean isView)
    Paint Element

    Specified by:
    paint in class PrintElement
    Parameters:
    g2D - graphics
    pageNo - page no
    pageStart - page start
    ctx - context
    isView - view

    toString

    public String toString()
    String Representation

    Overrides:
    toString in class PrintElement
    Returns:
    info

    Adempiere 3.5.2a

    Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.