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 String
CONTEXT_COPY
Copy Info (set here)static String
CONTEXT_DATE
Current Date (set in Layout Engine)static String
CONTEXT_HEADER
Report Header (set in Layout Engine)static String
CONTEXT_MULTIPAGE
Multi Page Info (set here)static String
CONTEXT_PAGE
Current Page No (set here)static String
CONTEXT_PAGECOUNT
Page Count (set in Layout Emginestatic String
CONTEXT_REPORTNAME
Report Name (set in Layout Engine)static String
CONTEXT_TIME
Current 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 void
addElement(PrintElement element)
Add Print Element to PageImage
getBackgroundImage()
get Background ImageMQuery
getDrillAcross(Point relativePoint)
Get DrillAcross valueMQuery
getDrillDown(Point relativePoint)
Get DrillDown valueint
getPageCount()
String
getPageInfo()
Get Page Infoint
getPageNo()
Get Page Novoid
paint(Graphics2D g2D, Rectangle bounds, boolean isView, boolean isCopy)
Paint Page on Graphics in Boundsvoid
setBackgroundImage(Image image)
set Background Imagevoid
setPageCount(int pageCount)
Set Page Infovoid
setPageInfo(String pageInfo)
Set Page Info.String
toString()
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:
-
-