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
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:
-
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
ConstructorDescriptionBarcodeElement
(String code, MPrintFormatItem item) Barcode Element Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Layout and Calculate Size Set p_width and p_heightfloat
boolean
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 ElementtoString()
String RepresentationMethods 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 Details
-
BarcodeElement
Barcode Element Constructor- Parameters:
code
- barcode data stringitem
- format item
-
-
Method Details
-
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
Paint Element- Specified by:
paint
in classPrintElement
- Parameters:
g2D
- graphicspageNo
- page nopageStart
- page startctx
- contextisView
- view
-
paint
-
toString
String Representation- Overrides:
toString
in classPrintElement
- Returns:
- info
-