Compiere 3.1

org.compiere.print.layout
Class BoxElement

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

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

Field Summary
 
Fields inherited from class org.compiere.print.layout.PrintElement
LINK_COLOR, log, p_FieldAlignmentType, p_height, p_info, 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
BoxElement(MPrintFormatItem item, Color color)
          BoxElement
 
Method Summary
protected  boolean calculateSize()
          Calculate Size
 void paint(Graphics2D g2D, int pageNo, Point2D pageStart, Ctx ctx, boolean isView)
          Paint
 
Methods inherited from class org.compiere.print.layout.PrintElement
getAbsoluteLocation, getBounds, getDrillAcross, getDrillDown, getHeight, getHeight, getLocation, getPageCount, getWidth, imageUpdate, isTranslated, layout, setLocation, setMaxHeight, setMaxWidth, toString, translate, waitForLoad
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BoxElement

public BoxElement(MPrintFormatItem item,
                  Color color)
BoxElement

Parameters:
item - item
color - color
Method Detail

calculateSize

protected boolean calculateSize()
Calculate Size

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

paint

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

Specified by:
paint in class PrintElement
Parameters:
g2D - graphics
pageNo - page
pageStart - page start
ctx - context
isView - true if Java

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.