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 Details

  • Constructor Details

    • Page

      public Page(Properties ctx, int pageNo)
      Layout for Page
      Parameters:
      pageNo - page
      ctx - context
  • 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 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 - 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
    • setBackgroundImage

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

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

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