Package org.compiere.print.layout
Class GraphElement
- java.lang.Object
- 
- org.compiere.print.layout.PrintElement
- 
- org.compiere.print.layout.GraphElement
 
 
- 
- All Implemented Interfaces:
- ImageObserver,- Serializable
 
 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
- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class org.compiere.print.layout.PrintElementLINK_COLOR, log, p_FieldAlignmentType, p_height, p_maxHeight, p_maxWidth, p_pageLocation, p_sizeCalculated, p_width
 - 
Fields inherited from interface java.awt.image.ImageObserverABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
- 
 - 
Constructor SummaryConstructors Constructor Description GraphElement(MPrintGraph pg)Constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancalculateSize()Layout and Calculate Size Set p_width and p_heightvoidpaint(Graphics2D g2D, int pageNo, Point2D pageStart, Properties ctx, boolean isView)Paint/Print.- 
Methods inherited from class org.compiere.print.layout.PrintElementgetAbsoluteLocation, 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- 
GraphElementpublic GraphElement(MPrintGraph pg) Constructor- Parameters:
- pg- graph model
 
 
- 
 - 
Method Detail- 
calculateSizeprotected boolean calculateSize() Layout and Calculate Size Set p_width and p_height- Specified by:
- calculateSizein class- PrintElement
- Returns:
- true if calculated
 
 - 
paintpublic void paint(Graphics2D g2D, int pageNo, Point2D pageStart, Properties ctx, boolean isView) Paint/Print.- Specified by:
- paintin class- PrintElement
- Parameters:
- g2D- Graphics
- pageNo- page number for multi page support (0 = header/footer)
- pageStart- top left Location of page
- ctx- context
- isView- true if online view (IDs are links)
 
 
- 
 
-