Package org.compiere.print.layout
Class BarcodeElement
- java.lang.Object
- 
- org.compiere.print.layout.PrintElement
- 
- org.compiere.print.layout.BarcodeElement
 
 
- 
- All Implemented Interfaces:
- ImageObserver,- Serializable
 
 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
- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class org.compiere.print.layout.PrintElementLINK_COLOR, log, p_FieldAlignmentType, p_height, p_maxHeight, p_maxWidth, p_pageLocation, p_sizeCalculated, p_width
 - 
Fields inherited from interface java.awt.image.ImageObserverABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
- 
 - 
Constructor SummaryConstructors Constructor Description BarcodeElement(String code, MPrintFormatItem item)Barcode Element Constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancalculateSize()Layout and Calculate Size Set p_width and p_heightfloatgetScaleFactor()booleanisAllowOverflow()author teo_sarca - [ 1673590 ] report table - barcode overflows over next fieldsbooleanisValid()Is Barcode Validvoidpaint(Graphics2D g2D, int x, int y)voidpaint(Graphics2D g2D, int pageNo, Point2D pageStart, Properties ctx, boolean isView)Paint ElementStringtoString()String Representation- 
Methods inherited from class org.compiere.print.layout.PrintElementgetAbsoluteLocation, getBounds, getCurrentPage, getDetailInfo, getDrillAcross, getDrillDown, getHeight, getHeight, getLocation, getPageCount, getPageLogic, getPrintData, getRowIndex, getWidth, imageUpdate, isTranslated, layout, setCurrentPage, setLocation, setMaxHeight, setMaxWidth, setPageLogic, setPrintData, setRowIndex, translate, waitForLoad
 
- 
 
- 
- 
- 
Constructor Detail- 
BarcodeElementpublic BarcodeElement(String code, MPrintFormatItem item) Barcode Element Constructor- Parameters:
- code- barcode data string
- item- format item
 
 
- 
 - 
Method Detail- 
isValidpublic boolean isValid() Is Barcode Valid- Returns:
- true if valid
 
 - 
calculateSizeprotected boolean calculateSize() Layout and Calculate Size Set p_width and p_height- Specified by:
- calculateSizein class- PrintElement
- Returns:
- true if calculated
 
 - 
getScaleFactorpublic float getScaleFactor() 
 - 
isAllowOverflowpublic boolean isAllowOverflow() author teo_sarca - [ 1673590 ] report table - barcode overflows over next fields- Returns:
- can this element overflow over the next fields
 
 - 
paintpublic void paint(Graphics2D g2D, int pageNo, Point2D pageStart, Properties ctx, boolean isView) Paint Element- Specified by:
- paintin class- PrintElement
- Parameters:
- g2D- graphics
- pageNo- page no
- pageStart- page start
- ctx- context
- isView- view
 
 - 
paintpublic void paint(Graphics2D g2D, int x, int y) 
 - 
toStringpublic String toString() String Representation- Overrides:
- toStringin class- PrintElement
- Returns:
- info
 
 
- 
 
-