org.compiere.print.layout
Class GraphElement
java.lang.Object
org.compiere.print.layout.PrintElement
org.compiere.print.layout.GraphElement
- All Implemented Interfaces:
- ImageObserver
public class GraphElement
- extends PrintElement
Graphic Element
- Version:
- $Id: GraphElement.java,v 1.2 2006/07/30 00:53:02 jjanke Exp $
- Author:
- Jorg Janke
|
Method Summary |
protected boolean |
calculateSize()
Layout and Calculate Size
Set p_width & p_height |
void |
paint(Graphics2D g2D,
int pageNo,
Point2D pageStart,
Ctx ctx,
boolean isView)
Paint/Print. |
| 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 |
GraphElement
public GraphElement(MPrintGraph pg)
- Constructor
- Parameters:
pg - graph model
calculateSize
protected boolean calculateSize()
- Layout and Calculate Size
Set p_width & p_height
- 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/Print.
- Specified by:
paint in class PrintElement
- Parameters:
g2D - GraphicspageNo - page number for multi page support (0 = header/footer)pageStart - top left Location of pagectx - contextisView - true if online view (IDs are links)
Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.