Package org.compiere.print.layout
Class Page
java.lang.Object
org.compiere.print.layout.Page
Report 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 Engine)static 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 QuerygetDrillDown
(Point relativePoint) Get DrillDown Queryint
Get page countGet 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 Countvoid
setPageInfo
(String pageInfo) Set Page Info.
Enhanced pagae no, e.g., 7(2,3)toString()
String Representation
-
Field Details
-
CONTEXT_PAGE
Current Page No (set here)- See Also:
-
CONTEXT_PAGECOUNT
Page Count (set in Layout Engine)- 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
- Parameters:
ctx
- contextpageNo
- page number
-
-
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 Count- Parameters:
pageCount
- page count
-
getPageCount
public int getPageCount()Get page count- Returns:
- page count
-
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 Query- Parameters:
relativePoint
- point to find print element- Returns:
- drill down query for print element or null
-
getDrillAcross
Get DrillAcross Query- Parameters:
relativePoint
- point to find print element- Returns:
- drill across query for print element or null
-
setBackgroundImage
set Background Image- Parameters:
image
-
-
getBackgroundImage
get Background Image- Returns:
- image
-
toString
String Representation
-