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:
  • Constructor Details

    • BoxElement

      public BoxElement(MPrintFormatItem item, Color color)
      BoxElement
      Parameters:
      item - item
      color - color
  • Method Details

    • 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, Properties ctx, boolean isView)
      Paint
      Specified by:
      paint in class PrintElement
      Parameters:
      g2D - graphics
      pageNo - page
      pageStart - page start
      ctx - context
      isView - true if Java