Class View

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable, Accessible

    public class View
    extends CPanel
    View Panel
    Version:
    $Id: View.java,v 1.2 2006/07/30 00:53:02 jjanke Exp $
    Author:
    Jorg Janke, Teo Sarca, www.arhipac.ro
  • FR [ 2539927 ] Display Zoom combobox https://sourceforge.net/tracker/?func=detail&atid=879335&aid=2539927&group_id=176962
  • See Also:
    Serialized Form
    • Field Detail

      • ZOOM_OPTIONS

        public static final String[] ZOOM_OPTIONS
        Zoom Options
      • MARGIN

        public static int MARGIN
        Margin around paper
    • Constructor Detail

      • View

        public View​(LayoutEngine layout)
        Print Preview
        Parameters:
        layout - Layout
    • Method Detail

      • getMarginSize

        public int getMarginSize​(boolean doScale)
      • isArchivable

        public boolean isArchivable()
        Is Archivable
        Returns:
        true if archivable
      • setZoomLevel

        public void setZoomLevel​(int level)
        Set Zoom Level
        Parameters:
        level - zoom level
      • setZoomLevel

        public void setZoomLevel​(String levelString)
        Set Zoom Level
        Parameters:
        levelString - zoom level string
      • getZoomLevel

        public int getZoomLevel()
        Get Zoom Level
        Returns:
        zoom level
      • getRectangleOfPage

        public Rectangle getRectangleOfPage​(int pageNo)
        Get Rectange of Page
        Parameters:
        pageNo - page no
        Returns:
        rectangle
      • getRectangleOfPage

        public Rectangle getRectangleOfPage​(int pageNo,
                                            boolean doScale)
      • getPageNoAt

        public float getPageNoAt​(Point p)
        Get Page at Point
        Parameters:
        p - Point
        Returns:
        page as float to determine also position on page
      • getPageCount

        public int getPageCount()
        Get Page Count
        Returns:
        page count
      • getPageInfo

        public String getPageInfo​(int pageNo)
        Get Page Info for Multi-Page tables
        Parameters:
        pageNo - page
        Returns:
        info e.g. (1,1)
      • getPageInfoMax

        public String getPageInfoMax()
        Get Max Page Info for Multi-Page tables
        Returns:
        info e.g. (3,2)
      • getPaper

        public CPaper getPaper()
        Get Paper
        Returns:
        paper
      • getPaperHeight

        public int getPaperHeight()
        Get Paper Height
        Returns:
        paper height
      • getPaperHeight

        public int getPaperHeight​(boolean doScale)
      • getPaperWidth

        public int getPaperWidth()
        Get Paper Height
        Returns:
        paper height
      • getPaperWidth

        public int getPaperWidth​(boolean doScale)
      • getDrillDown

        public MQuery getDrillDown​(Point absolutePoint)
        Get Drill Down
        Parameters:
        absolutePoint - point
        Returns:
        Drill Down
      • getDrillAcross

        public MQuery getDrillAcross​(Point absolutePoint)
        Get Drill Across
        Parameters:
        absolutePoint - point
        Returns:
        Drill Across