Package org.compiere.print.layout
Class Page
java.lang.Object
org.compiere.print.layout.Page
Layout Page
- Version:
- $Id: Page.java,v 1.2 2006/07/30 00:53:02 jjanke Exp $
- Author:
- Jorg Janke
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Copy Info (set here)static final String
Current Date (set in Layout Engine)static final String
Report Header (set in Layout Engine)static final String
Multi Page Info (set here)static final String
Current Page No (set here)static final String
Page Count (set in Layout Emginestatic final String
Report Name (set in Layout Engine)static final String
Current Time (set in Layout Engine) -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addElement
(PrintElement element) Add Print Element to Pageget Background ImagegetDrillAcross
(Point relativePoint) Get DrillAcross valuegetDrillDown
(Point relativePoint) Get DrillDown valueint
Get Page Infoint
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.toString()
String Representation
-
Field Details
-
CONTEXT_PAGE
Current Page No (set here)- See Also:
-
CONTEXT_PAGECOUNT
Page Count (set in Layout Emgine- See Also:
-
CONTEXT_MULTIPAGE
Multi Page Info (set here)- See Also:
-
CONTEXT_COPY
Copy Info (set here)- See Also:
-
CONTEXT_REPORTNAME
Report Name (set in Layout Engine)- See Also:
-
CONTEXT_HEADER
Report Header (set in Layout Engine)- See Also:
-
CONTEXT_DATE
Current Date (set in Layout Engine)- See Also:
-
CONTEXT_TIME
Current Time (set in Layout Engine)- See Also:
-
-
Constructor Details
-
Page
Layout for Page- Parameters:
pageNo
- pagectx
- context
-
-
Method Details
-
getPageNo
public int getPageNo()Get Page No- Returns:
- page no
-
getPageInfo
Get Page Info- Returns:
- page info
-
setPageInfo
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
Add Print Element to Page- Parameters:
element
- print element
-
paint
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
Get DrillDown value- Parameters:
relativePoint
- relative Point- Returns:
- if found NamePait or null
-
getDrillAcross
Get DrillAcross value- Parameters:
relativePoint
- relative Point- Returns:
- if found Query or null
-
setBackgroundImage
set Background Image- Parameters:
image
-
-
getBackgroundImage
get Background Image- Returns:
-
toString
String Representation
-