Package org.compiere.print.layout
Class Page
- java.lang.Object
-
- org.compiere.print.layout.Page
-
public class Page extends Object
Layout Page- Version:
- $Id: Page.java,v 1.2 2006/07/30 00:53:02 jjanke Exp $
- Author:
- Jorg Janke
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONTEXT_COPYCopy Info (set here)static StringCONTEXT_DATECurrent Date (set in Layout Engine)static StringCONTEXT_HEADERReport Header (set in Layout Engine)static StringCONTEXT_MULTIPAGEMulti Page Info (set here)static StringCONTEXT_PAGECurrent Page No (set here)static StringCONTEXT_PAGECOUNTPage Count (set in Layout Emginestatic StringCONTEXT_REPORTNAMEReport Name (set in Layout Engine)static StringCONTEXT_TIMECurrent Time (set in Layout Engine)
-
Constructor Summary
Constructors Constructor Description Page(Properties ctx, int pageNo)Layout for Page
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddElement(PrintElement element)Add Print Element to PageImagegetBackgroundImage()get Background ImageMQuerygetDrillAcross(Point relativePoint)Get DrillAcross valueMQuerygetDrillDown(Point relativePoint)Get DrillDown valueintgetPageCount()StringgetPageInfo()Get Page InfointgetPageNo()Get Page Novoidpaint(Graphics2D g2D, Rectangle bounds, boolean isView, boolean isCopy)Paint Page on Graphics in BoundsvoidsetBackgroundImage(Image image)set Background ImagevoidsetPageCount(int pageCount)Set Page InfovoidsetPageInfo(String pageInfo)Set Page Info.StringtoString()String Representation
-
-
-
Field Detail
-
CONTEXT_PAGE
public static final String CONTEXT_PAGE
Current Page No (set here)- See Also:
- Constant Field Values
-
CONTEXT_PAGECOUNT
public static final String CONTEXT_PAGECOUNT
Page Count (set in Layout Emgine- See Also:
- Constant Field Values
-
CONTEXT_MULTIPAGE
public static final String CONTEXT_MULTIPAGE
Multi Page Info (set here)- See Also:
- Constant Field Values
-
CONTEXT_COPY
public static final String CONTEXT_COPY
Copy Info (set here)- See Also:
- Constant Field Values
-
CONTEXT_REPORTNAME
public static final String CONTEXT_REPORTNAME
Report Name (set in Layout Engine)- See Also:
- Constant Field Values
-
CONTEXT_HEADER
public static final String CONTEXT_HEADER
Report Header (set in Layout Engine)- See Also:
- Constant Field Values
-
CONTEXT_DATE
public static final String CONTEXT_DATE
Current Date (set in Layout Engine)- See Also:
- Constant Field Values
-
CONTEXT_TIME
public static final String CONTEXT_TIME
Current Time (set in Layout Engine)- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Page
public Page(Properties ctx, int pageNo)
Layout for Page- Parameters:
pageNo- pagectx- context
-
-
Method Detail
-
getPageNo
public int getPageNo()
Get Page No- Returns:
- page no
-
getPageInfo
public String getPageInfo()
Get Page Info- Returns:
- page info
-
setPageInfo
public void setPageInfo(String pageInfo)
Set Page Info. Enhanced pagae no, e.g., 7(2,3)- Parameters:
pageInfo- page info
-
setPageCount
public void setPageCount(int pageCount)
Set Page Info- Parameters:
pageCount- page count
-
getPageCount
public int getPageCount()
-
addElement
public void addElement(PrintElement element)
Add Print Element to Page- Parameters:
element- print element
-
paint
public void paint(Graphics2D g2D, Rectangle bounds, boolean isView, boolean isCopy)
Paint Page on Graphics in Bounds- Parameters:
g2D- graphicsbounds- page boundsisView- true if online view (IDs are links)isCopy- this print is a copy
-
getDrillDown
public MQuery getDrillDown(Point relativePoint)
Get DrillDown value- Parameters:
relativePoint- relative Point- Returns:
- if found NamePait or null
-
getDrillAcross
public MQuery getDrillAcross(Point relativePoint)
Get DrillAcross value- Parameters:
relativePoint- relative Point- Returns:
- if found Query or null
-
setBackgroundImage
public void setBackgroundImage(Image image)
set Background Image- Parameters:
image-
-
getBackgroundImage
public Image getBackgroundImage()
get Background Image- Returns:
-
-