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.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
Constructors Constructor Description BarcodeElement(String code, MPrintFormatItem item)
Barcode Element Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
calculateSize()
Layout and Calculate Size Set p_width and p_heightfloat
getScaleFactor()
boolean
isAllowOverflow()
author teo_sarca - [ 1673590 ] report table - barcode overflows over next fieldsboolean
isValid()
Is Barcode Validvoid
paint(Graphics2D g2D, int x, int y)
void
paint(Graphics2D g2D, int pageNo, Point2D pageStart, Properties ctx, boolean isView)
Paint ElementString
toString()
String Representation-
Methods inherited from class org.compiere.print.layout.PrintElement
getAbsoluteLocation, 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
-
BarcodeElement
public BarcodeElement(String code, MPrintFormatItem item)
Barcode Element Constructor- Parameters:
code
- barcode data stringitem
- format item
-
-
Method Detail
-
isValid
public boolean isValid()
Is Barcode Valid- Returns:
- true if valid
-
calculateSize
protected boolean calculateSize()
Layout and Calculate Size Set p_width and p_height- Specified by:
calculateSize
in classPrintElement
- Returns:
- true if calculated
-
getScaleFactor
public float getScaleFactor()
-
isAllowOverflow
public boolean isAllowOverflow()
author teo_sarca - [ 1673590 ] report table - barcode overflows over next fields- 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 classPrintElement
- Parameters:
g2D
- graphicspageNo
- page nopageStart
- page startctx
- contextisView
- view
-
paint
public void paint(Graphics2D g2D, int x, int y)
-
toString
public String toString()
String Representation- Overrides:
toString
in classPrintElement
- Returns:
- info
-
-