Package org.compiere.print.layout
Class BoxElement
- java.lang.Object
-
- org.compiere.print.layout.PrintElement
-
- org.compiere.print.layout.BoxElement
-
- All Implemented Interfaces:
ImageObserver
,Serializable
public class BoxElement extends PrintElement
Line / Box Element- Version:
- $Id: BoxElement.java,v 1.3 2006/07/30 00:53:02 jjanke Exp $
- Author:
- Jorg Janke
- 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 BoxElement(MPrintFormatItem item, Color color)
BoxElement
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
calculateSize()
Calculate Sizevoid
paint(Graphics2D g2D, int pageNo, Point2D pageStart, Properties ctx, boolean isView)
Paint-
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, toString, translate, waitForLoad
-
-
-
-
Constructor Detail
-
BoxElement
public BoxElement(MPrintFormatItem item, Color color)
BoxElement- Parameters:
item
- itemcolor
- color
-
-
Method Detail
-
calculateSize
protected boolean calculateSize()
Calculate Size- Specified by:
calculateSize
in classPrintElement
- Returns:
- true if calculated
-
paint
public void paint(Graphics2D g2D, int pageNo, Point2D pageStart, Properties ctx, boolean isView)
Paint- Specified by:
paint
in classPrintElement
- Parameters:
g2D
- graphicspageNo
- pagepageStart
- page startctx
- contextisView
- true if Java
-
-