Adempiere 3.5.2a

org.compiere.print.layout
Class Page

java.lang.Object
  extended by 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
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 Emgine
static String CONTEXT_REPORTNAME
          Report Name (set in Layout Engine)
static String CONTEXT_TIME
          Current Time (set in Layout Engine)
 
Constructor Summary
Page(Properties ctx, int pageNo)
          Layout for Page
 
Method Summary
 void addElement(PrintElement element)
          Add Print Element to Page
 MQuery getDrillAcross(Point relativePoint)
          Get DrillAcross value
 MQuery getDrillDown(Point relativePoint)
          Get DrillDown value
 String getPageInfo()
          Get Page Info
 int getPageNo()
          Get Page No
 void paint(Graphics2D g2D, Rectangle bounds, boolean isView, boolean isCopy)
          Paint Page on Graphics in Bounds
 void setPageCount(int pageCount)
          Set Page Info
 void setPageInfo(String pageInfo)
          Set Page Info.
 String toString()
          String Representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 - page
ctx - 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

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 - graphics
bounds - page bounds
isView - 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

toString

public String toString()
String Representation

Overrides:
toString in class Object
Returns:
info

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.