Class Page

java.lang.Object
org.compiere.print.layout.Page

public class Page extends Object
Report Page
Version:
$Id: Page.java,v 1.2 2006/07/30 00:53:02 jjanke Exp $
Author:
Jorg Janke
  • Field Details

  • Constructor Details

    • Page

      public Page(Properties ctx, int pageNo)
      Parameters:
      ctx - context
      pageNo - page number
  • Method Details

    • 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 Count
      Parameters:
      pageCount - page count
    • getPageCount

      public int getPageCount()
      Get page count
      Returns:
      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 Query
      Parameters:
      relativePoint - point to find print element
      Returns:
      drill down query for print element or null
    • getDrillAcross

      public MQuery getDrillAcross(Point relativePoint)
      Get DrillAcross Query
      Parameters:
      relativePoint - point to find print element
      Returns:
      drill across query for print element or null
    • setBackgroundImage

      public void setBackgroundImage(Image image)
      set Background Image
      Parameters:
      image -
    • getBackgroundImage

      public Image getBackgroundImage()
      get Background Image
      Returns:
      image
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class Object
      Returns:
      info